/// <summary> /// Initializes a new instance of the ManageMsolUserModel class. /// </summary> public ManageUsersViewModel() { IMsolCmdlet msolCmdlet = new GetUser() { All = true }; PipelineReader <object> errors; ICollection <PSObject> result; result = MsolCmdletWrapper.Instance.PipelineInvoke(msolCmdlet, out errors); if (result != null) { foreach (PSObject item in result) { User user = TypeExtension.ToObject <User>(item.BaseObject); ListUser.Add(user); } } }