SPServiceApplication.SetAdministrationAccessControl method
Applies control settings for administration access to the service application.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overridable Sub SetAdministrationAccessControl ( _
security As SPCentralAdministrationSecurity _
)
'Usage
Dim instance As SPServiceApplication
Dim security As SPCentralAdministrationSecurity
instance.SetAdministrationAccessControl(security)
public virtual void SetAdministrationAccessControl(
SPCentralAdministrationSecurity security
)
Parameters
security
Type: Microsoft.SharePoint.Administration.AccessControl.SPCentralAdministrationSecurityThe security settings to apply to the service application.
Exceptions
Exception | Condition |
---|---|
SecurityException | Current user does not have write permission. |
ArgumentNullException | The object passed as an argument to the security parameter is a null reference (Nothing in Visual Basic). |