GetUserProfile(Boolean) Method

The GetUserProfile method of the UserProfileManager class gets the UserProfile object of the current user or creates one if the UserProfile object does not already exist.

Parameters

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

Return Value

Microsoft.SharePoint.Portal.UserProfiles.UserProfileUserProfile that represents the user profile of the current user.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security