Provides a collection of some combination of the following objects: ISchemaElement
, ISchemaModelGroup
, and ISchemaAny
. The ISchemaModelGroup
object is returned from the modelGroups
property of the ISchema
interface or from the contentModel
property of the ISchemaComplexType
interface.
The types of items in the collection are specified in the itemType
property of the ISchemaItem
interface. The following table shows each itemType
and its corresponding collection content.
ISchema.itemType value | Content objects |
---|---|
SOMITEM_ALL | A collection of one or more ISchemaElement objects. |
SOMITEM_CHOICE | A collection of one or more of the following objects: ISchemaElement , ISchemaModelGroup , and ISchemaAny . Each of these objects can occur zero or more times in the collection. |
SOMITEM_SEQUENCE | A collection of one or more of the following objects: ISchemaElement , ISchemaModelGroup , and ISchemaAny . Each of these objects can occur zero or more times in the collection. |
SOMITEM_EMPTYPARTICLE | An empty particle which contains a collection of zero particles. ISchemaComplexType.contentModel will return an empty particle when ISchemaComplexType.contentType = SCHEMACONTENTTYPE_EMPTY . |
particles | Retrieves the group model, based on the schema item type. This type is retrieved by calling ISchemaItem::itemType . |
var oSchemaModelGroups = oSchema.modelGroups var oSchemaModelGroup = oSchemaModelGroups.item(index);
Set oSchemaModelGroups = oSchema.modelGroups Set oSchemaModelGroup = oSchemaModelGroups.item(index)
HRESULT get_modelGroups(ISchemaItemCollection** particles); HRESULT particles->get_item(long index, ISchemaModelGroup** modelGroup);
ISchemaItemCollection
object of one or more of the following objects: ISchemaElement
, ISchemaModelGroup
, and ISchemaAny
, if any.MSXML 4.0 and later
Implementation: msxml5.dll, msxml2.lib
Header and LIB files: msxml2.h, msxml2.lib, msxml2.idl
Inheritance: Inherits from the ISchemaParticle interface.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
ISchemaElement Interface | ISchemaComplexType contentModel Property | ISchemaAny Interface | ISchemaItem itemType Property | SOM Reference