ManagementAuthorization.GetAuthorizedUsers Method (String, Boolean, Int32, Int32)

IIS 7.0
 

Retrieves a collection of authorized users for the specified configuration path.

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

public static ManagementAuthorizationInfoCollection GetAuthorizedUsers(
	string configurationPath,
	bool includeChildren,
	int itemIndex,
	int itemsPerPage
)

Parameters

configurationPath
Type: System.String

The configuration path.

includeChildren
Type: System.Boolean

true to include in the returned collection all authorized users who are in child elements of the path specified in the configurationPath parameter; otherwise, false.

itemIndex
Type: System.Int32

The index of the first ManagementAuthorizationInfo object to be displayed.

itemsPerPage
Type: System.Int32

The maximum number of additional ManagementAuthorizationInfo objects to display after the one specified in the itemIndex parameter.

This method returns a collection of authorized users for the specified configuration path. The collection starts with the itemIndex parameter value and contains the number of objects specified by the itemsPerPage parameter. Set itemsPerPage to -1 to retrieve all the ManagementAuthorizationInfo objects beyond the itemIndex parameter value. This method retrieves the specified collection from the full list of users on the IIS Manager Permissions page in IIS Manager.

The following example demonstrates the GetAuthorizedUsers method. This code example is part of a larger example provided for the ManagementAuthorization class.

Return to top
Show: