SPServiceApplication.CheckAdministrationAccess Method
Determines whether the current user has the specified administration access rights for the service application.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Overridable Function CheckAdministrationAccess ( _
rights As SPCentralAdministrationRights _
) As Boolean
'Usage
Dim rights As SPCentralAdministrationRights
Dim returnValue As Boolean
returnValue = Me.CheckAdministrationAccess(rights)
protected virtual bool CheckAdministrationAccess(
SPCentralAdministrationRights rights
)
Parameters
rights
Type: Microsoft.SharePoint.Administration.AccessControl.SPCentralAdministrationRightsThe administration access rights to check.
Return Value
Type: System.Boolean
true if the current user has the specified administration access rights for the current service application; otherwise, false.