This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IP > IPermissionsManager Interface > IPermissionsManager.CheckPermission Method (ArcObjects .NET 10.4 SDK) |
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,
VARIANT_BOOL* pbRes
);
[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 pbRes [out, retval] pbRes is a parameter of type VARIANT_BOOL
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.