Connection class
Defines the Connection Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is x14:connection.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.Excel.Connection
Namespace: DocumentFormat.OpenXml.Office2010.Excel
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.4.21 connection
Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2009/9/main
A connection element is a CT_Connection type element, as specified in section 2.6.34, that specifies the extended properties of an external connection, as specified in [ISO/IEC-29500-1] section 18.13. If this element exists, the type attribute of the ancestor CT_Connection element, as specified in [ISO/IEC-29500-4] section A.2, MUST be equal to "5". See section 2.2.4.1 for how this element integrates with the Office Open XML file formats specified in [ISO/IEC-29500-1].
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.
<xsd:element name="connection" type="CT_Connection"/>
See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
2.6.34 CT_Connection
Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2009/9/main
Referenced by: connection
A complex type that specifies the extended properties of an external connection ([ISO/IEC-29500-1] section 18.13).
Child Elements:
calculatedMembers: A CT_CalculatedMembers ([ISO/IEC-29500-4] section A.2) element that specifies a list of PivotTable ([ISO/IEC-29500-1] section 18.10) OLAP-calculated members associated with this external connection ([ISO/IEC-29500-1] section 18.13). If this external connection ([ISO/IEC-29500-1] section 18.13) is associated with a PivotTable ([ISO/IEC-29500-1] section 18.10) PivotCache, the list MUST NOT exist. If this element exists, the ancestor CT_connection ([ISO/IEC-29500-4] section A.2) element of this element MUST have a child CT_OlapPr ([ISO/IEC-29500-1] section 18.13.5) element.
Attributes:
culture: An ST_Xstring ([ISO/IEC-29500-1] section 22.9.2.19) attribute that specifies the language associated with this external connection ([ISO/IEC-29500-1] section 18.13). The length of this string MUST be less than 85 characters. If the length of this string is greater than 0, the contents of this string MUST<51> be a language tag as specified by [RFC3066]. If this attribute is not present, the data connection is using the server language.
embeddedDataId: An ST_Xstring ([ISO/IEC-29500-1] section 22.9.2.19) attribute that specifies an embedded Custom Data part. The length of this value MUST be less than 65,536 characters. If the length of this string is greater than 0, the contents of this string MUST be equal to the id attribute of a CT_DatastoreItem element, in a Custom Data Properties part in this package ([ISO/IEC-29500-1] section 9).
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_Connection">
<xsd:sequence>
<xsd:element name="calculatedMembers" type="x:CT_CalculatedMembers" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="culture" use="optional" type="x:ST_Xstring"/>
<xsd:attribute name="embeddedDataId" use="optional" type="x:ST_Xstring"/>
</xsd:complexType>
See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).