Partajați prin


GetMultipleProfiles Method

Retrieves multiple profiles from the server.

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

Syntax

'Declaration
Public Function GetMultipleProfiles ( _
    primaryKeyList As String(), _
    profileType As String _
) As XmlElement
'Usage
Dim instance As ProfileManagementContext
Dim primaryKeyList As String()
Dim profileType As String
Dim returnValue As XmlElement

returnValue = instance.GetMultipleProfiles(primaryKeyList, _
    profileType)
public XmlElement GetMultipleProfiles(
    string[] primaryKeyList,
    string profileType
)
public:
XmlElement^ GetMultipleProfiles(
    array<String^>^ primaryKeyList, 
    String^ profileType
)
public function GetMultipleProfiles(
    primaryKeyList : String[], 
    profileType : String
) : XmlElement

Parameters

  • primaryKeyList
    Type: array<System..::.String>[]()[]
    A list of the values of the primary key property of the profile instances to retrieve.
  • profileType
    Type: System..::.String
    The type of profile to get (i.e. UserObject, Address).

Return Value

Type: System.Xml..::.XmlElement
XML representing the retrieved profile instance.

Exceptions

Exception Condition
ArgumentNullException

Any of the parameters provided is nullNothingnullptra null reference (Nothing in Visual Basic).

ArgumentException

The key value provided is not the correct type.

AuthenticationException

User has not been authenticated.

NotAuthorizedException

User is not authorized to perform this task.

DefinitionDoesNotExistException

The profile definition named in the profileType does not exist.

ProfileDoesNotExistException

No profile exists with the provided key value.

Remarks

Retrieves the XML representing multiple profile instances in the profile system.

This method will throw a ProfileDoesNotExistException if any of the profiles identified by the primaryKeyList cannot be retrieved.

Permissions

See Also

Reference

ProfileManagementContext Class

ProfileManagementContext Members

Microsoft.CommerceServer.Profiles Namespace