This document is archived and information here might be outdated. Recommended version. |
Checks whether the specified principal has permission to perform the given operation on the indicated resource.
[Visual Basic .NET] Public Function CheckPermission ( _ ByVal Principal As String, _ ByVal resource As String, _ ByVal operation As String _ ) As Boolean
[C#] public bool CheckPermission ( string Principal, string resource, string operation );
[C++]
HRESULT CheckPermission(
BSTR Principal,
BSTR resource,
BSTR operation
);
[C++]
Parameters Principal [in]
Principal is a parameter of type BSTR resource [in]
resource is a parameter of type BSTR operation [in]
operation is a parameter of type BSTR
Use the CheckPermissions method to query the server object manager for whether the given roles have permissions to perform all operations on an indicated resource.