Partager via


ISchemaItemCollection Interface

 

[This feature was only implemented for MSXML 6.0.]

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.

JScript Syntax

var oISchemaElements = ISchema.elements; or  
var oISchemaIdentityConstraint = ISchemaElement.identityConstraints;  

Visual Basic Syntax

Set oISchemaElements = ISchema.elements or  
Set oISchemaIdentityConstraint = ISchemaElement.identityConstraints  

C/C++ Syntax

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

Requirements

Implementation: msxml6.dll, msxml6.lib

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

Inheritance: Inherits from the ISchemaItem interface.

Versioning

Implemented in: MSXML 6.0

See Also

ISchemaItem Interface
SOM Reference