Share via


CreateProfile Method (String, String)

Use this method to create a new Profile object instance with the specified primary key value (as a string) and profile definition.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Function CreateProfile ( _
    keyValue As String, _
    profileType As String _
) As Profile
'Usage
Dim instance As ProfileContext
Dim keyValue As String
Dim profileType As String
Dim returnValue As Profile

returnValue = instance.CreateProfile(keyValue, _
    profileType)
public Profile CreateProfile(
    string keyValue,
    string profileType
)
public:
Profile^ CreateProfile(
    String^ keyValue, 
    String^ profileType
)
public function CreateProfile(
    keyValue : String, 
    profileType : String
) : Profile

Parameters

Return Value

Type: Microsoft.CommerceServer.Runtime.Profiles..::.Profile
Handle to newly created Profile object.

Remarks

Creates and returns a new Profile object instance with the specified primary key value (as a string) and profile definition.

Permissions

See Also

Reference

ProfileContext Class

ProfileContext Members

CreateProfile Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace