Partager via


disallowedSubstitutions Property

 

[This feature was only implemented for MSXML 6.0.]

Returns an enumerated value from the SCHEMADERIVATIONMETHOD declarations. The possible values are SCHEMADERIVATIONMETHOD_SUBSTITUTION, SCHEMADERIVATIONMETHOD_EXTENSION, and SCHEMADERIVATIONMETHOD_RESTRICTION. The returned valued specifies whether an element declaration that appears in a content model will be prevented from additionally validating elements.

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 the disallowed substitution group. This group has had a substitution performed against it using the element that has a declaration with the disallowedSubstitution attribute.

JScript Syntax

var oDisallowedSubstitutions = oISchemaAttribute.disallowedSubstitutions;  

Parameters

None.

Return Values

oDisallowedSubstitutions
An enumerated value. The result is a combination of the following values.

SCHEMADERIVATIONMETHOD_SUBSTITUTION

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

Visual Basic Syntax

oDisallowedSubstitutions = oISchemaAttribute.DisallowedSubstitutions  

Parameters

None.

Return Values

oDisallowedSubstitutions
An enumerated value. The result is a combination of the following values.

SCHEMADERIVATIONMETHOD_SUBSTITUTION

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

C/C++ Syntax

HRESULT get_disallowedSubstitutions (SCHEMADERIVATIONMETHOD* disallowedSubstitutions);  

Parameters

disallowedSubstitutions[out,retval]
An enumerated value. The result is a combination of the following values.

SCHEMADERIVATIONMETHOD_SUBSTITUTION

SCHEMADERIVATIONMETHOD_EXTENSION

SCHEMADERIVATIONMETHOD_RESTRICTION

SCHEMADERIVATIONMETHOD_ALL

Return Values

S_OK
The value returned if successful.

E_POINTER
The value returned if the disallowedSubstitution parameter is NULL.

Versioning

Implemented in: MSXML 6.0

Applies to

ISchemaElement Interface

See Also

ISchemaItem Interface