Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Throws an exception if the current user does not have the specified administration 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 Sub DemandAdministrationAccess ( _
accessRights As SPCentralAdministrationRights _
)
'Usage
Dim accessRights As SPCentralAdministrationRights
Me.DemandAdministrationAccess(accessRights)
protected virtual void DemandAdministrationAccess(
SPCentralAdministrationRights accessRights
)
Parameters
accessRights
Type: Microsoft.SharePoint.Administration.AccessControl.SPCentralAdministrationRightsThe administration access rights to demand.
Exceptions
Exception | Condition |
---|---|
SecurityException | The current user does not have the specified administration rights for the service application. |