Jaa


ExtensionDataItem element

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

A custom data item that is associated with the SharePoint project item, in key/value format. Both the key and value must be strings.

Syntax

<ExtensionDataItem Key = "Key of the data item"
    Value = "Value of the data item" />

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
Key Required xs: string attribute.

The key that is used to store and retrieve the data item.
Value Required xs:string attribute.

The value of the data item.

Child elements

None.

Parent elements

Element Description
ExtensionData Represents a collection of custom data items that are associated with the SharePoint project item.

Remarks

When you associate custom data with a SharePoint project item by using the ExtensionData property of an ISharePointProjectItem object, Visual Studio saves the data to a new ExtensionDataItem element in the .spdata file for the project item. For more information, see Save data in extensions of the SharePoint project system.

Element information

Property Value
Namespace http://schemas.microsoft.com/VisualStudio/
2010/SharePointTools/SharePointProjectItemModel
Schema name SharePoint Project Item Schema
Validation file ProjectItemModelSchema.xsd
Can be empty No

See also