共用方式為


SPServiceApplication.MigrateUserAccount method

移轉使用者。

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

Syntax

'宣告
Protected Friend Overridable Function MigrateUserAccount ( _
    subscriptionId As Guid, _
    oldPrincipalName As String, _
    newPrincipalName As String, _
    allowedOldBinaryIds As IEnumerable(Of Byte()), _
    newBinaryId As Byte() _
) As Boolean
'用途
Dim subscriptionId As Guid
Dim oldPrincipalName As String
Dim newPrincipalName As String
Dim allowedOldBinaryIds As IEnumerable(Of Byte())
Dim newBinaryId As Byte()
Dim returnValue As Boolean

returnValue = Me.MigrateUserAccount(subscriptionId, _
    oldPrincipalName, newPrincipalName, _
    allowedOldBinaryIds, newBinaryId)
protected internal virtual bool MigrateUserAccount(
    Guid subscriptionId,
    string oldPrincipalName,
    string newPrincipalName,
    IEnumerable<byte[]> allowedOldBinaryIds,
    byte[] newBinaryId
)

參數

  • subscriptionId
    Type: System.Guid

    目標的訂閱識別碼或 Guid.Empty 目標所有訂閱

  • allowedOldBinaryIds
    Type: System.Collections.Generic.IEnumerable<[]>

    有效的二進位識別碼清單。移轉只有的二進位識別碼的清單中的項目。如果是 null,沒有限制的舊的二進位識別碼。

  • newBinaryId
    Type: []

    新的二進位識別碼。

傳回值

Type: System.Boolean
如果服務,則為 true 移轉使用者,則為 false 否則。

請參閱

參照

SPServiceApplication class

SPServiceApplication members

Microsoft.SharePoint.Administration namespace