GetProfileDefinitions Method

Retrieves a set of profile definitions available to the campaigns system.

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

Syntax

'Declaration
Public Function GetProfileDefinitions ( _
    profileDefinitionNames As String() _
) As XmlElement
'Usage
Dim instance As ProfileDefinitionReader
Dim profileDefinitionNames As String()
Dim returnValue As XmlElement

returnValue = instance.GetProfileDefinitions(profileDefinitionNames)
public XmlElement GetProfileDefinitions(
    string[] profileDefinitionNames
)
public:
XmlElement^ GetProfileDefinitions(
    array<String^>^ profileDefinitionNames
)
public function GetProfileDefinitions(
    profileDefinitionNames : String[]
) : XmlElement

Parameters

  • profileDefinitionNames
    Type: array<System..::.String>[]()[]
    An optional array of the ProfileDefinition names to retrieve. If nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string list is passed, then all profile definitions available to the campaigns system are returned, including the catalog product schema as a profile definition from Catalog System.

Return Value

Type: System.Xml..::.XmlElement
An XML document containing a set of ProfileDefinition values available.

Exceptions

Exception Condition
NotAuthorizedException

The user is not authorized to perform the requested operation.

EntityDoesNotExistException

One or more user specified ProfileDefinition name(s) does not exist in the Profile System.

Remarks

To get the catalog product schema, the user can either specify a special profile definition named, “Product”, or pass nullNothingnullptra null reference (Nothing in Visual Basic) or empty string list to get all the available profile definitions. GetProfileDefinitions internally uses the Profile system to get a ProfileDefinition and also interacts with the Catalog system to retrieve the catalog schema as a ProfileDefinition.

Permissions

See Also

Reference

ProfileDefinitionReader Class

ProfileDefinitionReader Members

Microsoft.CommerceServer.Marketing Namespace