disallowedSubstitutions Property

MSXML 5.0 SDK

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

disallowedSubstitutions Property

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.
[Script]

Implementation 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]

Implementation 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++]

Implementation 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.

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

ISchemaItem Interface

Applies to: ISchemaElement Interface