DataBinding Class

XML Mapping.When the object is serialized out as xml, its qualified name is x:DataBinding.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Spreadsheet.DataBinding

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class DataBinding _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As DataBinding
public class DataBinding : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

[ISO/IEC 29500-1 1st Edition]

18.16.1 DataBinding (XML Mapping)

This element contains properties which specify how the XML mapping should work.

[Example:

<DataBinding ConnectionID="1" FileBinding="true" DataBindingLoadMode="1"/>

end example]

[Note: This element is not intended to reintroduce transitional schema into the strict conformance class. end note]

Parent Elements

Map (§18.16.2)

Child Elements

Subclause

Any element in any namespace

n/a

Attributes

Description

ConnectionID (Reference to Connection ID)

Specifies the Connection ID to the external connection in the External Data Connections part.

Required if FileBinding is true. 

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

DataBindingLoadMode (XML Data Loading Behavior)

Specifies the mode for loading XML data related to this DataBinding.

Supported values are as follows:

0 - None

1 - Normal

2 - Delay Load

3 - Asynchronous

4 - Object Model

The possible values for this attribute are defined by the W3C XML Schema unsignedInt datatype.

DataBindingName (Unique Identifer)

Specifies the data binding name. These shall be unique for each DataBinding.

[Example:

<DataBinding DataBindingName="Binding1" FileBinding="true"
FileBindingName="Binding1" DataBindingLoadMode="1"/>

end example]

The possible values for this attribute are defined by the W3C XML Schema string datatype.

FileBinding (Binding to External File)

Specifies whether the data should be retrieved directly from an XML file. The path to the file is in the corresponding connection element

The possible values for this attribute are defined by the W3C XML Schema boolean datatype.

FileBindingName (File Binding Name)

Specifies the file binding name. These shall be unique for each DataBinding.

[Example:

<DataBinding DataBindingName="Binding1" FileBinding="true"
FileBindingName="Binding1" DataBindingLoadMode="1"/>

end example]

The possible values for this attribute are defined by the W3C XML Schema string datatype.

[Note: The W3C XML Schema definition of this element’s content model (CT_DataBinding) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DataBinding Members

DocumentFormat.OpenXml.Spreadsheet Namespace