ISchemaItemCollection Interface

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SOM Reference

ISchemaItemCollection Interface

Stores collections of objects returned from various properties of the SOM interfaces. You can use the methods of the ISchemaItemCollection interface to search and browse these collections.

Different types of objects are returned for different interfaces. For example, elements return objects that invoke the ISchemaElement interface, attributes return objects that invoke the ISchemaAttribute interface, and so on.

The following is a list of the interface property for each property that returns an item collection.

Property Collection contents
ISchema.types types
ISchema.elements elements
ISchema.attributes attributes
ISchema.attributeGroups attribute groups
ISchema.modelGroups model groups
ISchema.notations notations
ISchemaAttributeGroup.attributes attributes
ISchemaElement.identityConstraints constraints
ISchemaItem.baseTypes base types
ISchemaComplexType.attributes attributes
ISchemaModelGroup.particles particles

Properties

item Retrieves ISchemaItem objects by the index.
length Retrieves the number of schema items in the collection.

Methods

itemByName Retrieves ISchemaItem objects by name.
itemByQName Retrieves ISchemaItem objects by name, along with the specified QName.

[Script]

Implementation Syntax

var oISchemaElements = ISchema.elements; or
var oISchemaIdentityConstraint = ISchemaElement.identityConstraints;
[Visual Basic]

Implementation Syntax

Set oISchemaElements = ISchema.elements or
Set oISchemaIdentityConstraint = ISchemaElement.identityConstraints
[C/C++]

Implementation Syntax

HRESULT get_elements (ISchemaItemCollection** elements); or
HRESULT identityConstraints(ISchemaItemCollection** identityConstraints);

Versioning

MSXML 4.0 and later

Requirements

[Visual Basic, C/C++]

Implementation: msxml5.dll, msxml2.lib

[C/C++]

Header and LIB files: msxml2.h, msxml2.lib, msxml2.idl

Inheritance: None

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

ISchemaItem Interface | SOM Reference