Share via


UserProfileManager.CreateUserProfile Method (String, String)

NOTE: This API is now obsolete.

Obsolete.

Namespace:  Microsoft.SharePoint.Portal.UserProfiles
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<ObsoleteAttribute("Microsoft.SharePoint.Portal.UserProfiles.UserProfileManager is obsolete; use class "Microsoft.Office.Server.UserProfiles.UserProfileManager" instead")> _
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)
[ObsoleteAttribute("Microsoft.SharePoint.Portal.UserProfiles.UserProfileManager is obsolete; use class "Microsoft.Office.Server.UserProfiles.UserProfileManager" instead")]
public UserProfile CreateUserProfile(
    string strAccountName,
    string strPreferredName
)

Parameters

Return Value

Type: Microsoft.SharePoint.Portal.UserProfiles.UserProfile

See Also

Reference

UserProfileManager Class

UserProfileManager Members

CreateUserProfile Overload

Microsoft.SharePoint.Portal.UserProfiles Namespace