Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use this method to create a new Profile object instance with the specified primary key value (as a string), profile definition, XML string describing the initial state of the profile object, and the XML format type.
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, _
xmlData As String, _
xmlFormat As ProfileXmlFormat _
) As Profile
'Usage
Dim instance As ProfileContext
Dim keyValue As String
Dim profileType As String
Dim xmlData As String
Dim xmlFormat As ProfileXmlFormat
Dim returnValue As Profile
returnValue = instance.CreateProfile(keyValue, _
profileType, xmlData, xmlFormat)
public Profile CreateProfile(
string keyValue,
string profileType,
string xmlData,
ProfileXmlFormat xmlFormat
)
public:
Profile^ CreateProfile(
String^ keyValue,
String^ profileType,
String^ xmlData,
ProfileXmlFormat xmlFormat
)
public function CreateProfile(
keyValue : String,
profileType : String,
xmlData : String,
xmlFormat : ProfileXmlFormat
) : Profile
Parameters
- keyValue
Type: System..::.String
Value of the primary key property
- profileType
Type: System..::.String
Profile definition of interest
- xmlData
Type: System..::.String
XML blob specifying initial state of the profile object
- xmlFormat
Type: Microsoft.CommerceServer.Runtime.Profiles..::.ProfileXmlFormat
Is xmlData specified in attribute centric or element centric format?
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), profile definition, XML string describing the initial state of the profile object, and the XML format type.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.