Share via


GetProfile Method (String, String)

Retrieve the Profile object 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 GetProfile ( _
    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.GetProfile(keyValue, _
    profileType)
public Profile GetProfile(
    string keyValue,
    string profileType
)
public:
Profile^ GetProfile(
    String^ keyValue, 
    String^ profileType
)
public function GetProfile(
    keyValue : String, 
    profileType : String
) : Profile

Parameters

Return Value

Type: Microsoft.CommerceServer.Runtime.Profiles..::.Profile
Retrieved Profile object, or null (if the object does not exist).

Remarks

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

Permissions

See Also

Reference

ProfileContext Class

ProfileContext Members

GetProfile Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace