SPServiceApplication.MigrateGroupAccount Method
Migrates a group account in SharePoint Foundation to a new login name.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Friend Overridable Function MigrateGroupAccount ( _
oldPrincipalName As String, _
newPrincipalName As String _
) As Boolean
'Usage
Dim oldPrincipalName As String
Dim newPrincipalName As String
Dim returnValue As Boolean
returnValue = Me.MigrateGroupAccount(oldPrincipalName, _
newPrincipalName)
protected internal virtual bool MigrateGroupAccount(
string oldPrincipalName,
string newPrincipalName
)
Parameters
oldPrincipalName
Type: System.StringA string that contains the old login name.
newPrincipalName
Type: System.StringA string that contains the new login name.
Return Value
Type: System.Boolean
Returns a Boolean value of true if the migration was successful, otherwise false.