共用方式為


SPWebApplication.MigrateUsersToClaims method (NTAccount, Boolean)

將使用者從傳統驗證移轉至宣告式驗證。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function MigrateUsersToClaims ( _
    account As NTAccount, _
    removePermissionsAfter As Boolean _
) As Boolean
'用途
Dim instance As SPWebApplication
Dim account As NTAccount
Dim removePermissionsAfter As Boolean
Dim returnValue As Boolean

returnValue = instance.MigrateUsersToClaims(account, _
    removePermissionsAfter)
public bool MigrateUsersToClaims(
    NTAccount account,
    bool removePermissionsAfter
)

參數

  • removePermissionsAfter
    Type: System.Boolean

    account授與正確的權限,若要執行此作業。會指出當作業完成時,是否移除權限。

傳回值

Type: System.Boolean
true如果成功 ;否則,請false。

請參閱

參照

SPWebApplication class

SPWebApplication members

MigrateUsersToClaims overload

Microsoft.SharePoint.Administration namespace