UserProfileManager.GetUserProfile UserProfileManager.GetUserProfile UserProfileManager.GetUserProfile Method

Definition

Overloads

GetUserProfile(String, Boolean) GetUserProfile(String, Boolean) GetUserProfile(String, Boolean)

Retrieves the requested user's profile.

GetUserProfile(Int64, Boolean) GetUserProfile(Int64, Boolean) GetUserProfile(Int64, Boolean)
GetUserProfile(String) GetUserProfile(String) GetUserProfile(String)

Gets the UserProfile object for the specified account name.

GetUserProfile(Byte[]) GetUserProfile(Byte[]) GetUserProfile(Byte[])

Gets the UserProfile object for the specified SID in byte[] format.

GetUserProfile(Guid) GetUserProfile(Guid)

Gets the UserProfile object for the specified GUID.

GetUserProfile(Int64) GetUserProfile(Int64) GetUserProfile(Int64)

Gets the UserProfile object for the specified record identifier.

GetUserProfile(Boolean) GetUserProfile(Boolean) GetUserProfile(Boolean)

Gets the UserProfile object of the current user or creates one if the UserProfile object does not already exist.

GetUserProfile(String, Boolean) GetUserProfile(String, Boolean) GetUserProfile(String, Boolean)

Retrieves the requested user's profile.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ GetUserProfile(System::String ^ strAccountName, bool doNotResolveToMasterAccount);
public Microsoft.Office.Server.UserProfiles.UserProfile GetUserProfile (string strAccountName, bool doNotResolveToMasterAccount);
Public Function GetUserProfile (strAccountName As String, doNotResolveToMasterAccount As Boolean) As UserProfile
Parameters
strAccountName
String String String
doNotResolveToMasterAccount
Boolean Boolean Boolean
Returns

GetUserProfile(Int64, Boolean) GetUserProfile(Int64, Boolean) GetUserProfile(Int64, Boolean)

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ GetUserProfile(long recordId, bool doNotResolveToMasterAccount);
public Microsoft.Office.Server.UserProfiles.UserProfile GetUserProfile (long recordId, bool doNotResolveToMasterAccount);
Public Function GetUserProfile (recordId As Long, doNotResolveToMasterAccount As Boolean) As UserProfile
Parameters
recordId
Int64 Int64 Int64
doNotResolveToMasterAccount
Boolean Boolean Boolean
Returns

GetUserProfile(String) GetUserProfile(String) GetUserProfile(String)

Gets the UserProfile object for the specified account name.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ GetUserProfile(System::String ^ strAccountName);
public Microsoft.Office.Server.UserProfiles.UserProfile GetUserProfile (string strAccountName);
Public Function GetUserProfile (strAccountName As String) As UserProfile
Parameters
strAccountName
String String String

The account name of the user profile.

Returns

that represents a user profile.

GetUserProfile(Byte[]) GetUserProfile(Byte[]) GetUserProfile(Byte[])

Gets the UserProfile object for the specified SID in byte[] format.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ GetUserProfile(cli::array <System::Byte> ^ rgbySID);
public Microsoft.Office.Server.UserProfiles.UserProfile GetUserProfile (byte[] rgbySID);
Public Function GetUserProfile (rgbySID As Byte()) As UserProfile
Parameters
rgbySID
Byte[]

The SID of the user profile.

Returns

that represents the user profile for the specified in byte[] format.

GetUserProfile(Guid) GetUserProfile(Guid)

Gets the UserProfile object for the specified GUID.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ GetUserProfile(Guid guid);
public Microsoft.Office.Server.UserProfiles.UserProfile GetUserProfile (Guid guid);
Parameters
guid
Guid Guid Guid

The unique identifier.

Returns

that represents a user profile.

GetUserProfile(Int64) GetUserProfile(Int64) GetUserProfile(Int64)

Gets the UserProfile object for the specified record identifier.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ GetUserProfile(long recordId);
public Microsoft.Office.Server.UserProfiles.UserProfile GetUserProfile (long recordId);
Public Function GetUserProfile (recordId As Long) As UserProfile
Parameters
recordId
Int64 Int64 Int64

..

Returns

GetUserProfile(Boolean) GetUserProfile(Boolean) GetUserProfile(Boolean)

Gets the UserProfile object of the current user or creates one if the UserProfile object does not already exist.

public:
 Microsoft::Office::Server::UserProfiles::UserProfile ^ GetUserProfile(bool bCreateIfNotExist);
public Microsoft.Office.Server.UserProfiles.UserProfile GetUserProfile (bool bCreateIfNotExist);
Public Function GetUserProfile (bCreateIfNotExist As Boolean) As UserProfile
Parameters
bCreateIfNotExist
Boolean Boolean Boolean

true if a user profile is created because it does not already exist in the user profile database; otherwise, false.

Returns

that represents the user profile of the current user.

Applies to