This document is archived and information here might be outdated. Recommended version. |
Enumerates all principals having permission to perform the specified operation on the given resource.
[Visual Basic .NET] Public Function GetPrincipalsWithPermissionOnResource ( _ ByVal resource As String, _ ByVal operation As String _ ) As IEnumBSTR
[C#] public IEnumBSTR GetPrincipalsWithPermissionOnResource ( string resource, string operation );
[C++]
HRESULT GetPrincipalsWithPermissionOnResource(
BSTR resource,
BSTR operation
);
[C++]
Parameters resource [in]
resource is a parameter of type BSTR operation [in]
operation is a parameter of type BSTR
Use the GetPrincipalsWithPermissionsOnResource method to query the server object manager for the roles that have permissions for all operations on the indicated resource.