Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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

Namespace:  Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

public sealed class ManagementUserInfoCollection : Collection<ManagementUserInfo>

The ManagementUserInfoCollection type exposes the following members.

  NameDescription
Public methodManagementUserInfoCollectionInitializes a new instance of the ManagementUserInfoCollection class.
Top

  NameDescription
Public propertyCount (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public propertyItem (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Protected propertyItems (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Top

  NameDescription
Public methodAdd (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodClear (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Protected methodClearItems (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodContains (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodCopyTo (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodInsert (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Protected methodInsertItem (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodRemoveAt (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Protected methodRemoveItem (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Protected methodSetItem (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIList..::..Add (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate methodIList..::..Contains (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate methodICollection..::..CopyTo (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate methodIEnumerable..::..GetEnumerator (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate methodIList..::..IndexOf (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate methodIList..::..Insert (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate propertyIList..::..IsFixedSize (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate propertyICollection<(Of <<'(T>)>>)..::..IsReadOnly (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate propertyIList..::..IsReadOnly (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate propertyICollection..::..IsSynchronized (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate propertyIList..::..Item (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate methodIList..::..Remove (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Explicit interface implemetationPrivate propertyICollection..::..SyncRoot (Inherited from Collection<(Of <(<'ManagementUserInfo>)>)>.)
Top

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;
    }
}


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2015 Microsoft