SPServiceApplication.SetAdministrationAccessControl method
適用於將服務應用程式的管理存取控制設定。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Sub SetAdministrationAccessControl ( _
security As SPCentralAdministrationSecurity _
)
'用途
Dim instance As SPServiceApplication
Dim security As SPCentralAdministrationSecurity
instance.SetAdministrationAccessControl(security)
public virtual void SetAdministrationAccessControl(
SPCentralAdministrationSecurity security
)
參數
security
Type: Microsoft.SharePoint.Administration.AccessControl.SPCentralAdministrationSecurity套用至服務應用程式的安全性設定。
Exceptions
Exception | Condition |
---|---|
SecurityException | 目前的使用者沒有寫入權限。 |
ArgumentNullException | 做為引數傳遞給security參數的物件是a null reference (Nothing in Visual Basic)。 |