Freigeben über


DataStoreItem-Klasse

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.

Vererbungshierarchie

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

'Declaration
<ChildElementInfoAttribute(GetType(SchemaReferences))> _
Public Class DataStoreItem _
    Inherits OpenXmlPartRootElement
'Usage
Dim instance As DataStoreItem
[ChildElementInfoAttribute(typeof(SchemaReferences))]
public class DataStoreItem : OpenXmlPartRootElement

Hinweise

The following table lists the possible child types:

  • SchemaReferences <ds:schemaRefs>

[ISO/IEC 29500-1 1. Ausgabe]

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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

DataStoreItem-Member

DocumentFormat.OpenXml.CustomXmlDataProperties-Namespace