Share via


ContentSelector Class (BCL)

Invokes Content Selection Framework (CSF) pipelines.

System.Object
**** Microsoft.CommerceServer.Runtime.Targeting.ContentSelector

Public Instance Methods

Method Description
Dispose Releases resources used by this object.
GetContent Primary method of the ContentSelector object. 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 object.
GetEnumerator Returns an enumerator allowing the keys of the ContentSelector dictionary to be enumerated.

 

Public Instance Properties

Property Description
AllContentItems Returns a ContentItemCollection object containing all of the content items that were retrieved from the cache during the last call to the GetContent method.
Item(String) Gets or sets a value in the ContentSelector dictionary of name/value pairs.
ItemsRequested Gets or sets the number of items desired for return from the GetContent method.
Name Gets the name of the ContentSelector object, which is the same as the name of the ContentSelectionContext object that created this object.
PageHistory Gets or sets a String that represents the history of ads already selected on the page.
Profiles Gets the collection of profiles (Profiles or Commerce.IDictionary objects) that should be targeted when the GetContent method call is made.
SelectedContentItems Returns a ContentItemCollection consisting of the raw content items that were last selected using the GetContent method.
Size Gets or sets the size of the content that should be returned.
TraceMessages Gets an array of StringCollection objects containing the trace messages that describe the scoring of the content items. This property will always return null if the TraceMode property is not set to True.
TraceMode Gets or sets a Boolean that determines whether tracing of content item scoring should be enabled.

 

Protected Instance Methods

Method Description
CheckState Verifies that the object has not already been disposed.
Dispose(Boolean) Releases the unmanaged resources used by this class and optionally releases the managed resources.

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.