Share via


UserProfileManager.CreateUserProfile Method (String)

Creates a user profile with the specified account name.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Function CreateUserProfile ( _
    strAccountName As String _
) As UserProfile
'Usage
Dim instance As UserProfileManager
Dim strAccountName As String
Dim returnValue As UserProfile

returnValue = instance.CreateUserProfile(strAccountName)
public UserProfile CreateUserProfile(
    string strAccountName
)

Parameters

  • strAccountName
    Type: System.String
    A string containing the account name of the user profile.

Return Value

Type: Microsoft.Office.Server.UserProfiles.UserProfile
A UserProfile object that represents a user profile with the specified account name.

See Also

Reference

UserProfileManager Class

UserProfileManager Members

CreateUserProfile Overload

Microsoft.Office.Server.UserProfiles Namespace