UserProfileManager.GetUserProfile Method (Boolean)
Gets the UserProfile object of the current user or creates one if the UserProfile object does not already exist.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function GetUserProfile ( _
bCreateIfNotExist As Boolean _
) As UserProfile
'Usage
Dim instance As UserProfileManager
Dim bCreateIfNotExist As Boolean
Dim returnValue As UserProfile
returnValue = instance.GetUserProfile(bCreateIfNotExist)
public UserProfile GetUserProfile(
bool bCreateIfNotExist
)
Parameters
bCreateIfNotExist
Type: System.Booleantrue if a user profile is created because it does not already exist in the user profile database; otherwise, false.
Return Value
Type: Microsoft.Office.Server.UserProfiles.UserProfile
that represents the user profile of the current user.