ContentListFactory Object

Ee797551.c++_off(en-US,CS.10).gifEe797551.vb_on(en-US,CS.10).gif

Use this object to efficiently maintain lists of content items that compete with each other to be selected for display on a Web page by a Content Selection pipeline (CSP).

ProgID:   Commerce.ContentListFactory (Externally creatable)
COM Class Name:   ContentListFactory
COM Interface Name:   IContentListFactory
Interface ID Constant:   IID_IContentListFactory
Header File:   cacheint.h, mspu_guids.h
Type Library Name:   Microsoft Commerce 2000 Cache Manager Type Library
DLL Name:   mscscache.dll
Threading Model:   Both

The properties of the ContentListFactory object are shown in the following table.

Property Type Description
AllRows IRowCollection The collection of all rows in the ContentListFactory object.

This property is read-only.

Count long The number of rows in the ContentListFactory object.

This property is read/write.

Fields Fields The Fields collection for a particular row in the ContentListFactory object.

This property is read-only.

Schema IContentListSchema Stores a reference to the ContentListSchema object used by this ContentListFactory object.

This property is read/write.

The methods of the ContentListFactory object are shown in the following table.

Method Description
BuildIndex Builds an index on the specified column.
ConstructFromRecordset Initializes a ContentListFactory object, and creates and initializes a new ContentListSchema object, from an ADO Recordset object. The ContentListFactory object is populated with the data from the Recordset object.
CreateNewContentList Creates a new ContentList object based on the schema in use by this ContentListFactory object. The new ContentList object has access to the shared data in the ContentListFactory object that created it.
GetData Gets data from a specified row and column in a ContentListFactory object in a high-performance, non-scriptable manner.
Search Returns a RowCollection object containing the collection of content items that match the search criteria.
SetData Sets data at a specified row and column in a ContentListFactory object in a high-performance, non-scriptable manner.

Remarks

Ee797551.important(en-US,CS.10).gif Important

  • The ContentList and the ContentListFactory objects are designed to be run in-process with their clients. The GetData and SetData methods assume direct memory access for performance reasons.

Both the ContentList object and the ContentListFactory object implement a common interface, IDataContainer. Therefore they share the following methods and properties, which are functionally identical on both objects:

Properties:

  • AllRows

  • Count

  • Fields

Methods:

  • BuildIndex

  • GetData

  • Search

  • SetData


All rights reserved.