Block (Node Property of All Schemas)

 

Use the Block property to prevent or restrict the types of derivations that can be used in instance messages for the element(s) corresponding to the selected Record node.

Applies to Nodes of Type

Record

Category

General

Allowed Values

Drop-down list choice Description
(Default) Removes the block attribute, if present, specifying that there are no restrictions on particular types of derivations unless otherwise specified by the BlockDefault property.
All Sets the block attribute to "#all", specifying that no derivations are allowed.
Restriction Adds "restriction" to the value of the block attribute, specifying that derivations by restriction are not allowed.
Extension Adds "extension" to the value of the block attribute, specifying that derivations by extension are not allowed.
Substitution Adds "substitution" to the value of the block attribute, specifying that derivations by substitution are not allowed.

Default Value

(Default)

XSD Persistence

As the value of the block attribute of the complexType element that is a child of the element that corresponds to the selected Record node.

Remarks

You can examine and set this property in the Visual Studio Properties window when you select a Record node (including a root Record node) in BizTalk Editor.

This property represents a standard XSD construct. For additional information about the corresponding XSD construct, see XSD Resources on the Web.

The values Restriction, Extension, and Substitution can be set in combination with each other by selecting their corresponding check boxes in the Block property drop-down list. The corresponding values of the block attribute are space-separated.

In corresponding instance messages, other derived data types can be used for a particular element unless explicitly prevented by the settings of the Block and/or BlockDefault properties, as follows:

<RecordName   
            xmlns:xsi="http://www.w3c.org/2001/XMLSchema-instance>"  
  

In the example above, "BaseOrDerivedTypeName" is the name of a complex type that is derived from the data type specified by the Data Structure Type property of the corresponding Record node by some allowed type of derivation (a type of derivation that is not blocked by this property or the BlockDefault property). For more information about different types of derivations, see Type Reuse and Derivations.

See Also

Node Properties of All Schemas
BlockDefault (Node Property of All Schemas)