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

ISchemaModelGroup Interface

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.

Properties

particles Retrieves the group model, based on the schema item type. This type is retrieved by calling ISchemaItem::itemType.

[Script]

Implementation Syntax

var oSchemaModelGroups = oSchema.modelGroups
var oSchemaModelGroup = oSchemaModelGroups.item(index);

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.
[Visual Basic]

Implementation Syntax

Set oSchemaModelGroups = oSchema.modelGroups
Set oSchemaModelGroup = oSchemaModelGroups.item(index)

Parameters

index
A long integer. An index of the item within the collection. The first item is zero.
[C/C++]

Implementation Syntax

HRESULT get_modelGroups(ISchemaItemCollection** particles);
HRESULT particles->get_item(long index, ISchemaModelGroup** modelGroup);

Parameters

index [in]
A long integer. An index of the item within the collection. The first item is zero.
particles [out,retval]
An object. The ISchemaItemCollection object of one or more of the following objects: ISchemaElement, ISchemaModelGroup, and ISchemaAny, if any.

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: Inherits from the ISchemaParticle interface.

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

ISchemaElement Interface | ISchemaComplexType contentModel Property | ISchemaAny Interface | ISchemaItem itemType Property | SOM Reference