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 an integer) and profile definition.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function CreateProfile ( _
keyValue As Integer, _
profileType As String _
) As Profile
'Usage
Dim instance As ProfileContext
Dim keyValue As Integer
Dim profileType As String
Dim returnValue As Profile
returnValue = instance.CreateProfile(keyValue, _
profileType)
public Profile CreateProfile(
int keyValue,
string profileType
)
public:
Profile^ CreateProfile(
int keyValue,
String^ profileType
)
public function CreateProfile(
keyValue : int,
profileType : String
) : Profile
Parameters
- keyValue
Type: System..::.Int32
Value of the primary key property
- profileType
Type: System..::.String
Profile definition of interest
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 an integer) and profile definition.
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.