UserProfileManager.GetUserProfile Method (String, Boolean)
Returns the user profile associated with the specified account name and optionally resolves it to the master account.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Function GetUserProfile ( _
strAccountName As String, _
doNotResolveToMasterAccount As Boolean _
) As UserProfile
'Usage
Dim instance As UserProfileManager
Dim strAccountName As String
Dim doNotResolveToMasterAccount As Boolean
Dim returnValue As UserProfile
returnValue = instance.GetUserProfile(strAccountName, _
doNotResolveToMasterAccount)
public UserProfile GetUserProfile(
string strAccountName,
bool doNotResolveToMasterAccount
)
Parameters
- strAccountName
Type: System.String
The account name of the user profile.
- doNotResolveToMasterAccount
Type: System.Boolean
true to resolve the user profile to the master account; otherwise, false.
Return Value
Type: Microsoft.Office.Server.UserProfiles.UserProfile
A UserProfile object representing the user profile.