Share via


DataStoreItem.ItemId Property

Definition

Custom XML Data ID

Represents the following attribute in the schema: ds:itemID

[DocumentFormat.OpenXml.SchemaAttr(20, "itemID")]
public DocumentFormat.OpenXml.StringValue ItemId { get; set; }
public DocumentFormat.OpenXml.StringValue ItemId { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(20, "itemID")]
public DocumentFormat.OpenXml.StringValue? ItemId { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("ds:itemID")]
public DocumentFormat.OpenXml.StringValue? ItemId { get; set; }
public DocumentFormat.OpenXml.StringValue? ItemId { get; set; }
member this.ItemId : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(20, "itemID")>]
member this.ItemId : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("ds:itemID")>]
member this.ItemId : DocumentFormat.OpenXml.StringValue with get, set
Public Property ItemId As StringValue

Property Value

Returns StringValue.

Attributes

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.

Applies to