Returns a variant of type VT_BSTR that indicates the maximum number of times an item can occur in the current context of a document. If MaxOccurs
returns 0, the schema item should not appear. If maxOccurs
returns UNBOUNDED(-1), the number of appearances of the schema item is unlimited.
The following is an example of the maxOccurs
attribute used in a schema.
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="someelement">
<choice>
<element name="book" minOccurs="1" maxOccurs
="4"/>
<element name="magazine" minOccurs="1" maxOccurs="1"/>
</choice>
</complexType>
</schema>
var varMaxOccurs = oISchemaParticle.maxOccurs;
None.
maxOccurs
property is unbounded (-1), there is no limit to the number of occurrences.varMaxOccurs = oISchemaParticle.maxOccurs
None.
maxOccurs
property is unbounded (-1), there is no limit to the number of occurrences.HRESULT get_maxOccurs(VARIANT* maxOccurs);
maxOccurs
parameter is NULL.To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
ISchemaParticle minOccurs Property | element Element
Applies to: ISchemaParticle Interface