Share via


prohibitedSubstitution Property

 

[This feature was only implemented for MSXML 6.0.]

Returns a value from the SCHEMADERIVATIONMETHOD enumeration. The possible values are SCHEMADERIVATIONMETHOD_EXTENSION and SCHEMADERIVATIONMETHOD_RESTRICTION. The returned value specifies whether an <element> declaration that appears in a content model will be prevented from additionally validating elements.

See XML SOM Enumerated Constants for the integer values.

Validation might be prevented for one or both of the following two reasons.

  • The additional element contains an xsi:type attribute that identifies an extension or restriction for the type of the declared element.

  • The element is in a substitution group. This group has had a substitution performed against it using the element that has a declaration with the prohibitedSubstitution attribute.

JScript Syntax

var conProhibitedSubstitution = oISchemaComplexType.prohibitedSubstitution;  

Parameters

None.

Return Values

conProhibitedSubstitution
An integer. The prohibited substitution for this complexType. The prohibited substitution can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

Visual Basic Syntax

conProhibitedSubstitution = oISchemaComplexType.prohibitedSubstitution  

Parameters

None.

Return Values

conProhibitedSubstitution
An integer. The prohibited substitution for this complexType. The prohibited substitution can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

C/C++ Syntax

HERESULT get_prohibitedSubstitution (SCHEMAFILTER* prohibitedSubstitution);  

Parameters

prohibitedSubstitution[out,retval]
An integer. The prohibited substitutions for this complexType. The prohibited substitution can be one of the following:

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the prohibitedSubstitution parameter is NULL.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaComplexType Interface