SPAppPrincipalPermissionsManager.UpdateAppOnlyPolicy method
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub UpdateAppOnlyPolicy ( _
appPrincipal As SPAppPrincipal, _
allowAppOnlyPolicy As Boolean _
)
'用途
Dim instance As SPAppPrincipalPermissionsManager
Dim appPrincipal As SPAppPrincipal
Dim allowAppOnlyPolicy As Boolean
instance.UpdateAppOnlyPolicy(appPrincipal, _
allowAppOnlyPolicy)
public void UpdateAppOnlyPolicy(
SPAppPrincipal appPrincipal,
bool allowAppOnlyPolicy
)
參數
appPrincipal
Type: Microsoft.SharePoint.SPAppPrincipal應用程式主體中。
allowAppOnlyPolicy
Type: System.Boolean指出是否允許應用程式專用的原則。如果這個參數為true,則允許應用程式專用的原則。如果這個參數為false,不允許應用程式專用的原則。
請參閱
參照
SPAppPrincipalPermissionsManager class