ManagementUserInfoCollection Class
IIS 7.0
Represents a collection of IIS Manager users.
System..::..Object
System.Collections.ObjectModel..::..Collection<(Of <(<'ManagementUserInfo>)>)>
Microsoft.Web.Management.Server..::..ManagementUserInfoCollection
System.Collections.ObjectModel..::..Collection<(Of <(<'ManagementUserInfo>)>)>
Microsoft.Web.Management.Server..::..ManagementUserInfoCollection
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
The ManagementUserInfoCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ManagementUserInfoCollection | Initializes a new instance of the ManagementUserInfoCollection class. |
| Name | Description | |
|---|---|---|
![]() | Count | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | Item | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | Items | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
| Name | Description | |
|---|---|---|
![]() | Add | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | Clear | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | ClearItems | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | Contains | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | CopyTo | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetEnumerator | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | IndexOf | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | Insert | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | InsertItem | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | RemoveAt | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | RemoveItem | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | SetItem | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IList..::..Add | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IList..::..Contains | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | ICollection..::..CopyTo | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IEnumerable..::..GetEnumerator | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IList..::..IndexOf | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IList..::..Insert | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IList..::..IsFixedSize | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | ICollection<(Of <<'(T>)>>)..::..IsReadOnly | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IList..::..IsReadOnly | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | ICollection..::..IsSynchronized | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IList..::..Item | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | IList..::..Remove | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
![]() ![]() | ICollection..::..SyncRoot | (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.) |
This collection contains ManagementUserInfo objects, which are granted permissions to perform management services on the server. Use the ManagementAuthentication..::..GetUsers(Int32, Int32) method to populate the collection with IIS Manager users. The users in this collection are displayed in the IIS Manager Users page and in the <authentication> section of the Administration.config file. This class cannot be inherited.
The following example displays a collection of ManagementUserInfo objects and displays the property values for each element of the collection.
// Create a new ManagementUser. string managementusername = "SuperManager"; string managementuserpassword = "password"; string message = null; string display = null; ManagementUserInfoCollection managementUserInfoCollection = ManagementAuthentication.GetUsers(0, -1); message = "\nUsers count: " + managementUserInfoCollection.Count.ToString(); display = display + message; bool isInCollection = false; message = null; foreach (ManagementUserInfo userInfo in managementUserInfoCollection) { message = message + "\nName: " + userInfo.Name; message = message + " Enabled: " + userInfo.Enabled; message = message + " ToString: " + userInfo.ToString(); // Check to see if the management user is already in the collection. if (managementusername.Equals(userInfo.Name)) { isInCollection = true; } }

