共用方式為


ExtensionData Element

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

<ExtensionData>
  <ExtensionDataItem.../>
</ExtensionData>

Attributes and Elements

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

Attributes

None.

Child Elements

Element

Description

ExtensionDataItem

Optional element.

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

Parent Elements

Element

Description

ProjectItem

Represents a SharePoint project item. This is the required root element of the .spdata file.

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 the ExtensionData element in the .spdata file for the project item. For more information, see Saving Data in Extensions of the SharePoint Project System.

Element Information

Namespace

https://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel

Schema name

SharePoint Project Item Schema

Validation file

ProjectItemModelSchema.xsd

Can be empty

No

See Also

Concepts

SharePoint Project Item Schema Reference