Share via


ContentSelector.GetContent Method (BCL)

Use this method to set up the Order and Pipe Context dictionaries and execute the Content Selection Framework (CSF) pipeline that selects content. The formatted content is returned in a StringCollection object.

Definition

[Visual Basic .NET]

Public Function GetContent( _) As System.Collections.Specialized.StringCollection

[C#]

public System.Collections.Specialized.StringCollection GetContent();

Return Value

A StringCollection object containing the formatted content.

Remarks

If the pipeline does not return any formatted content (if no content was available for selection or if no formatting component was configured in the CSF pipeline), then an empty StringCollection object****is returned.

Throws a CommerceTargetingException if the profiles collection contains profiles other than User and TargetingContext.

For backward compatibility, if a profile named TargetingContext is passed in the collection, then the properties in the profile are copied to the ContentSelector dictionary, which is passed through the pipeline as a ContextProfile object. If a profile named User is provided, then the profile is passed through the pipeline as the ContextProfile.UserProfile object.

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Targeting

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

See Also

Code to Display Targeted Advertisements on an ASP.NET Web Form

Copyright © 2005 Microsoft Corporation.
All rights reserved.