DataStoreItem.ItemId Property

Custom XML Data ID.Represents the attribte in schema: ds:itemID

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

Syntax

'Declaration
<SchemaAttrAttribute(, "itemID")> _
Public Property ItemId As StringValue
    Get
    Set
'Usage
Dim instance As DataStoreItem
Dim value As StringValue

value = instance.ItemId

instance.ItemId = value
[SchemaAttrAttribute(, "itemID")]
public StringValue ItemId { get; set; }

Property Value

Type: DocumentFormat.OpenXml.StringValue
Returns StringValue.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

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.

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.

The possible values for this attribute are defined by the ST_Guid simple type.

See Also

Reference

DataStoreItem Class

DataStoreItem Members

DocumentFormat.OpenXml.CustomXmlDataProperties Namespace