SPServiceApplication.MigrateGroupAccount method
Migrates group.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Friend Overridable Function MigrateGroupAccount ( _
subscriptionId As Guid, _
oldPrincipalName As String, _
newPrincipalName As String, _
allowedOldBinaryIds As IEnumerable(Of Byte()), _
newBinaryId As Byte() _
) As Boolean
'Usage
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.MigrateGroupAccount(subscriptionId, _
oldPrincipalName, newPrincipalName, _
allowedOldBinaryIds, newBinaryId)
protected internal virtual bool MigrateGroupAccount(
Guid subscriptionId,
string oldPrincipalName,
string newPrincipalName,
IEnumerable<byte[]> allowedOldBinaryIds,
byte[] newBinaryId
)
Parameters
subscriptionId
Type: System.GuidTargeted subscription ID or Guid.Empty to target all subscriptions
oldPrincipalName
Type: System.StringOld logon name
newPrincipalName
Type: System.StringNew logon name
allowedOldBinaryIds
Type: System.Collections.Generic.IEnumerable<[]>A list of valid binary IDs. Migrate only the items which binary IDs are in the list. If it is null, there is no restriction for the old binary ID.
newBinaryId
Type: []New binary ID.
Return value
Type: System.Boolean
true if service migrated group, false otherwise.