次の方法で共有


SPAcl<T>.MigrateUserAccount method (String, String, IEnumerable<Byte[]>)

Changes the ACLs to use newPrincipalName name in place of oldPrincipalName.

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

Syntax

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

returnValue = instance.MigrateUserAccount(oldPrincipalName, _
    newPrincipalName, allowedOldBinaryIds)
public bool MigrateUserAccount(
    string oldPrincipalName,
    string newPrincipalName,
    IEnumerable<byte[]> allowedOldBinaryIds
)

Parameters

  • oldPrincipalName
    Type: System.String

    Logon name of the old principal

  • newPrincipalName
    Type: System.String

    Logon name of the new principal

Return value

Type: System.Boolean
true if user was migrated, false otherwise.

See also

Reference

SPAcl<T> class

SPAcl<T> members

MigrateUserAccount overload

Microsoft.SharePoint.Administration namespace