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

modelGroups Property

Returns an ISchemaItemCollection that contains ISchemaModelGroup objects. The model group will contain any combination of the following objects: ISchemaElement, ISchemaModelGroup, and ISchemaAny.

To obtain information about the objects returned in the collection, use the itemType property to determine the correct interface to use. For more information about the use of model groups in an XML schema, see Content Models and Named Model Groups, in the XML Schema Developer's Guide.

[Script]

Implementation Syntax

var oModelGroups = oISchema.modelGroups;

Parameters

None.

Return Values

oModelGroups
An object. The collection of <modelGroup> declarations. This collection contains objects that implement the ISchemaModelGroup interface.
[Visual Basic]

Implementation Syntax

Set oModelGroups = oISchema.modelGroups

Parameters

None.

Return Values

oModelGroups
An object. The collection of <modelGroup> declarations. This collection contains objects that implement the ISchemaModelGroup interface.
[C/C++]

Implementation Syntax

HRESULT get_modelGroups (ISchemaItemCollection** modelGroups);

Parameters

modelGroups [out,retval]
An object. The collection of <modelGroup> declarations.

Return Values

S_OK
The value returned if successful.
E_POINTER
The value returned if the modelGroups collection is NULL.
E_FAIL
The value returned if something else is wrong.

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

ISchemaItemCollection Interface | ISchemaModelGroup Interface

Applies to: ISchema Interface