Items Collection

The Items collection is a dispinterface on a class List object. The list is intended to contain IItem dispinterfaces. Each interface associates an Item object as a subordinate to the parent Channel object.

Type

IList (VT_DISPATCH)

Contains

IItem (VT_DISPATCH)

Remarks

Interfaces can be added to this collection in one of two ways:

  1. Use the parent object’s AddItem method.

  2. Explicitly assign the object to the List object using the Add method.

Each IItem dispinterface in this collection has GetCDFString invoked on it when the parent Channel object receives an invocation of GetCDFString or GetCDFStringForItems.

Example

‘ VBScript and Windows Scripting Host
Set Channel = CreateObject(“Push.Channel”)
Set Item = CreateObject(“Push.Item”)
call Channel.Items.Add(Item)

or

Set Channel = CreateObject(“Push.Channel”)
Set Item = Channel.AddItem

The second version is more compact.

See Also

Class Item


© 1997-1998 Microsoft Corporation. All rights reserved.