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)

public UserProfile GetUserProfile(
	bool bCreateIfNotExist


Type: System.Boolean

true 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.