UserProfileManager.GetUserProfile Method (Boolean)
Creates a user profile if one does not exist.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.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.Boolean
true to create a user profile if one does not exist; otherwise, false.
Return Value
Type: Microsoft.Office.Server.UserProfiles.UserProfile
A UserProfile object that represents the user profile.