Compartir a través de


DataStoreItem Class

Custom XML Data Properties. It is the root element of CustomXmlPropertiesPart.When the object is serialized out as xml, its qualified name is ds:datastoreItem.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.OpenXmlPartRootElement
        DocumentFormat.OpenXml.CustomXmlDataProperties.DataStoreItem

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

Syntax

'Declaración
<ChildElementInfoAttribute(GetType(SchemaReferences))> _
Public Class DataStoreItem _
    Inherits OpenXmlPartRootElement
'Uso
Dim instance As DataStoreItem
[ChildElementInfoAttribute(typeof(SchemaReferences))]
public class DataStoreItem : OpenXmlPartRootElement

Remarks

The following table lists the possible child types:

  • SchemaReferences <ds:schemaRefs>

[ISO/IEC 29500-1 1ª edición]

22.5.2.1 datastoreItem (Custom XML Data Properties)

This element specifies the properties for a single custom XML part inside of an Office Open XML document. The set of properties specified within this element are attached to the custom XML part that specifies a relationship to this part.

[Example: Consider the following content for a custom XML part properties part:

<ds:datastoreItem ds:itemID="{A67AC88A-A164-4ADE-8889-8826CE44DE6E}">
<ds:schemaRefs>
<ds:schemaRef ds:uri="http://www.example.com/exampleSchema" />
</ds:schemaRefs>
</ds:datastoreItem>

The datastoreItem element contains the properties for the custom XML part that referenced it; specifically, a part ID of A67AC88A-A164-4ADE-8889-8826CE44DE6E, and a single XML Schema reference to a schema with a target namespace of http://www.example.com/exampleSchema. end example]

Parent Elements

Root element of Shared Custom XML Data Storage Properties part

Child Elements

Subclause

schemaRefs (Set of Associated XML Schemas)

§22.5.2.3

Attributes

Description

itemID (Custom XML Data ID)

Specifies a globally unique identifier (GUID) that uniquely identifies a single custom XML part within an Office Open XML document.

Each itemID value shall be unique among all custom XML data parts in this document. If a document contains duplicate itemID values, then the first value should be persisted, and subsequent values should be reassigned.

[Example: Consider the following content for a custom XML part properties part:

<w:datastoreItem w:itemID="{A67AC88A-A164-4ADE-8889-
8826CE44DE6E}">
…
</w:datastoreItem>

The itemID attribute specifies that the ID associated with the parent custom XML part is A67AC88A-A164-4ADE-8889-8826CE44DE6E. end example]

The possible values for this attribute are defined by the ST_Guid simple type (§22.9.2.4).

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

© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.

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

DataStoreItem Members

DocumentFormat.OpenXml.CustomXmlDataProperties Namespace