Share via


GetProfiles Method (String, String)

Retrieves a profile object collection of the specified profile type by the specified key member name, using the current property value(s) as the values for the primary key.

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

Syntax

'Declaration
Public Function GetProfiles ( _
    keyName As String, _
    profileType As String _
) As ProfileCollection
'Usage
Dim instance As ProfileProperty
Dim keyName As String
Dim profileType As String
Dim returnValue As ProfileCollection

returnValue = instance.GetProfiles(keyName, _
    profileType)
public ProfileCollection GetProfiles(
    string keyName,
    string profileType
)
public:
ProfileCollection^ GetProfiles(
    String^ keyName, 
    String^ profileType
)
public function GetProfiles(
    keyName : String, 
    profileType : String
) : ProfileCollection

Parameters

Return Value

Type: Microsoft.CommerceServer.Runtime.Profiles..::.ProfileCollection
A profile object collection of the specified profile type.

Remarks

Use this method to retrieve a profile object collection of the specified profile type by the specified key member name, using the current property values as the values for the primary key.

Permissions

See Also

Reference

ProfileProperty Class

ProfileProperty Members

GetProfiles Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace