This document is archived and information here might be outdated.  Recommended version.


IPermissionsManager.CheckPermission Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Server)  

IPermissionsManager.CheckPermission Method

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IPermissionsManager Interface