SPWebApplication.MigrateUsersToClaims method (NTAccount, Boolean, SPWebApplication.SPMigrateUserParameters)
Migrates users from legacy authentication to claims-based authentication.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function MigrateUsersToClaims ( _
account As NTAccount, _
removePermissionsAfter As Boolean, _
parameters As SPWebApplication.SPMigrateUserParameters _
) As Boolean
'Usage
Dim instance As SPWebApplication
Dim account As NTAccount
Dim removePermissionsAfter As Boolean
Dim parameters As SPWebApplication.SPMigrateUserParameters
Dim returnValue As Boolean
returnValue = instance.MigrateUsersToClaims(account, _
removePermissionsAfter, parameters)
public bool MigrateUsersToClaims(
NTAccount account,
bool removePermissionsAfter,
SPWebApplication.SPMigrateUserParameters parameters
)
Parameters
account
Type: System.Security.Principal.NTAccountThe NTAccount that will perform the operation.
removePermissionsAfter
Type: System.BooleanThe account is given the correct permissions to perform the operation. Indicates whether the permission should be removed when the operation is completed.
parameters
Type: Microsoft.SharePoint.Administration.SPWebApplication.SPMigrateUserParametersThis defines the scope and type of migration operation to be performed.
Return value
Type: System.Boolean
true if successful; otherwise, false.