Previous in Contents Next in Contents

Elements Collection

This collection is a dispinterface on a class List object that contains definitions for custom XML elements not natively supported by Push classes.

Type

IList (VT_DISPATCH)

Contains

IDictionary (VT_DISPATCH)

Default

Empty

Remarks

The Elements collection is available to define special XML elements needed by a particular Push application that is not defined within the Active Channel Server classes. The collection is a List class object that should contain Dictionary class objects. Each Dictionary object defines an XML element through a set of key/value pairs. When an object that has an Elements collection is assembling its CDF string, it enumerates each object in the collection and adds the XML element defined by each.

You normally add elements to the Elements collection by using the AddElement method. This method automatically creates a Dictionary object and assigns the appropriate keys and values. For a full description on how to define a custom XML element, see Defining a Custom XML Element.

See Also

Defining A Custom XML Element

Class List

Class Dictionary


© 1997-2000 Microsoft Corporation. All rights reserved.