XmlSchemaElement.BlockResolved Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the post-compilation value of the Block property.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public XmlSchemaDerivationMethod BlockResolved { get; }

Property Value

Type: System.Xml.Schema.XmlSchemaDerivationMethod

The post-compilation value of the Block property. The default is the BlockDefault value on the schema element.

This value indicates how the type is enforced when xsi:type is used in the instance document. For example, if the value is restricted, only the specific defined type can be used, not types derived by restriction from the specific defined type.

This property can contain the values shown in the following table. The default is None. List and union derivation methods are not allowed on this property.

Enum

Description

Empty

There are no restrictions on replacements of this element.

Substitution

This element cannot be replaced by a type derived by Substitution.

Extension

This element cannot be replaced by a type derived by Extension.

Restriction

This element cannot be replaced by a type derived by Restriction.

All

#all. This element cannot be replaced by any type regardless of derivation method.

.NET Framework
Available since 1.1
Return to top
Show: