Share via


UserProfileManager.CreateUserProfile Method (String, String)

Creates a user profile with the specified account name and preferred name.

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

Syntax

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

returnValue = instance.CreateUserProfile(strAccountName, _
    strPreferredName)
public UserProfile CreateUserProfile(
    string strAccountName,
    string strPreferredName
)

Parameters

  • strAccountName
    Type: System.String
    A string containing the account name of the user profile.
  • strPreferredName
    Type: System.String
    A string containing the preferred 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 and preferred name.

See Also

Reference

UserProfileManager Class

UserProfileManager Members

CreateUserProfile Overload

Microsoft.Office.Server.UserProfiles Namespace