System.Xml.Schema.XmlSchemaElement.Block Property

Gets or sets a Block derivation.

Syntax

[System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[System.Xml.Serialization.XmlAttribute("block")]
public XmlSchemaDerivationMethod Block { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This attribute can contain the following values:

None

Use the derivation restriction defined by the BlockDefault property of the schema, if it exists.

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.

This property does not prevent derivation, but prevents derivation from replacing the type in an instance. List and union values are not supported for the block property.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0