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.

PropertyCollection contents
ISchema.typestypes
ISchema.elementselements
ISchema.attributesattributes
ISchema.attributeGroupsattribute groups
ISchema.modelGroupsmodel groups
ISchema.notationsnotations
ISchemaAttributeGroup.attributesattributes
ISchemaElement.identityConstraintsconstraints
ISchemaItem.baseTypesbase types
ISchemaComplexType.attributesattributes
ISchemaModelGroup.particlesparticles
itemRetrieves ISchemaItem objects by the index.
lengthRetrieves the number of schema items in the collection.
itemByNameRetrieves ISchemaItem objects by name.
itemByQNameRetrieves ISchemaItem objects by name, along with the specified QName.
var oISchemaElements = ISchema.elements; or  
var oISchemaIdentityConstraint = ISchemaElement.identityConstraints;  

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

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

Implementation: msxml6.dll, msxml6.lib

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

Inheritance: Inherits from the ISchemaItem interface.

Implemented in: MSXML 6.0

ISchemaItem Interface
SOM Reference

Show: