UserProfileManager.RemoveLeader Method
Removes the specified leader from the user profile database.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Sub RemoveLeader ( _
accountName As String _
)
'Usage
Dim instance As UserProfileManager
Dim accountName As String
instance.RemoveLeader(accountName)
public void RemoveLeader(
string accountName
)
Parameters
accountName
Type: System.StringThe account name of the leader to remove.
Exceptions
Exception | Condition |
---|---|
ArgumentException | accountName is null or empty. |
RemoveUserFailedException | The remove operation failed. |
Remarks
This method removes the leader specified by the accoutnName parameter from the user profile database.