다음을 통해 공유


GetProfile Method (String, Int32, String)

Retrieve the Profile object with the specified primary key name, 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 GetProfile ( _
    keyName As String, _
    keyValue As Integer, _
    profileType As String _
) As Profile
'Usage
Dim instance As ProfileContext
Dim keyName As String
Dim keyValue As Integer
Dim profileType As String
Dim returnValue As Profile

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

Parameters

  • keyValue
    Type: System..::.Int32
    Value of the key property specified in keyName

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 name, key value (as an integer) and profile definition.

Permissions

See Also

Reference

ProfileContext Class

ProfileContext Members

GetProfile Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace