共用方式為


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
)

參數

  • allowAppOnlyPolicy
    Type: System.Boolean

    指出是否允許應用程式專用的原則。如果這個參數為true,則允許應用程式專用的原則。如果這個參數為false,不允許應用程式專用的原則。

請參閱

參照

SPAppPrincipalPermissionsManager class

SPAppPrincipalPermissionsManager members

Microsoft.SharePoint namespace