다음을 통해 공유


ManagementAuthorization.GetAuthorizedUsers 메서드

정의

지정된 구성 경로에 대해 권한이 부여된 사용자의 컬렉션을 검색합니다.

public:
 static Microsoft::Web::Management::Server::ManagementAuthorizationInfoCollection ^ GetAuthorizedUsers(System::String ^ configurationPath, bool includeChildren, int itemIndex, int itemsPerPage);
public static Microsoft.Web.Management.Server.ManagementAuthorizationInfoCollection GetAuthorizedUsers (string configurationPath, bool includeChildren, int itemIndex, int itemsPerPage);
static member GetAuthorizedUsers : string * bool * int * int -> Microsoft.Web.Management.Server.ManagementAuthorizationInfoCollection
Public Shared Function GetAuthorizedUsers (configurationPath As String, includeChildren As Boolean, itemIndex As Integer, itemsPerPage As Integer) As ManagementAuthorizationInfoCollection

매개 변수

configurationPath
String

구성 경로입니다.

includeChildren
Boolean

true 반환된 컬렉션에 매개 변수에 지정된 configurationPath 경로의 자식 요소에 있는 모든 권한 있는 사용자를 포함하려면 이고, false그렇지 않으면 입니다.

itemIndex
Int32

표시할 첫 번째 ManagementAuthorizationInfo 개체의 인덱스입니다.

itemsPerPage
Int32

매개 변수에 ManagementAuthorizationInfo 지정된 개체 다음에 표시할 추가 개체의 itemIndex 최대 수입니다.

반환

ManagementAuthorizationInfoCollection 권한 있는 각 사용자에 ManagementAuthorizationInfo 대한 개체를 포함하는 개체입니다.

예제

다음 예제는 GetAuthorizedUsers 메서드. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 ManagementAuthorization 클래스입니다.

// Get a collection of authorized users.
ManagementAuthorizationInfoCollection authorizedCollection =
    ManagementAuthorization.GetAuthorizedUsers(path, true, 0, -1);
message = "\nAuthorizedUsers count: " +
    authorizedCollection.Count.ToString() + "\n  ";

설명

이 메서드는 지정된 구성 경로에 대해 권한이 부여된 사용자 컬렉션을 반환합니다. 컬렉션은 매개 변수 값으로 itemIndex 시작하고 매개 변수로 지정된 itemsPerPage 개체 수를 포함합니다. 매개 변수 값 이외의 모든 개체를 ManagementAuthorizationInfo 검색하려면 -1로 itemIndex 설정합니다itemsPerPage. 이 메서드는 IIS 관리자의 IIS 관리자 권한 페이지에 있는 전체 사용자 목록에서 지정된 컬렉션을 검색합니다.

적용 대상