Share via


GetContent Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

It sets up the Order and Pipe Context dictionaries and executes the CSF pipeline that selects content. The formatted content is returned in a StringCollection.

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

Syntax

'Declaration
Public Function GetContent As StringCollection
'Usage
Dim instance As ContentSelector
Dim returnValue As StringCollection

returnValue = instance.GetContent()
public StringCollection GetContent()
public:
StringCollection^ GetContent()
public function GetContent() : StringCollection

Return Value

Type: System.Collections.Specialized..::.StringCollection
A StringCollection containing the formatted content.

Remarks

This is the primary method of ContentSelector. If the pipeline didn't return any formatted content (e.g. if no content was available for selection or if no formatting component was configured in the CSF pipeline), then an empty StringCollection is returned

(Backward compatibility) If a profile named TargetingContext is passed in the profiles collection, then the properties in the profile are copied to the ContentSelector dictionary, which is passed through the pipeline as ContextProfile.

If a profile named User is provided, then the profile is passed through the pipeline as ContextProfile.UserProfile.

Permissions

See Also

Reference

ContentSelector Class

ContentSelector Members

Microsoft.CommerceServer.Runtime.Targeting Namespace