다음을 통해 공유


SPAcl<T>.MigrateUserAccount Method

Changes the access control list (ACL) to use the newPrincipalName name in place of oldPrincipalName.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function MigrateUserAccount ( _
    oldPrincipalName As String, _
    newPrincipalName As String _
) As Boolean
'Usage
Dim instance As SPAcl
Dim oldPrincipalName As String
Dim newPrincipalName As String
Dim returnValue As Boolean

returnValue = instance.MigrateUserAccount(oldPrincipalName, _
    newPrincipalName)
public bool MigrateUserAccount(
    string oldPrincipalName,
    string newPrincipalName
)

Parameters

  • oldPrincipalName
    Type: System.String

    The name of the old principal.

  • newPrincipalName
    Type: System.String

    The name of the new principal.

Return Value

Type: System.Boolean
true if user account has been migrated; otherwise false.

See Also

Reference

SPAcl<T> Class

SPAcl<T> Members

Microsoft.SharePoint.Administration Namespace