SharePoint Project Item Schema Reference

 

Visual Studio uses the SharePoint project item schema to validate the contents of .spdata files. An .spdata file specifies the contents and behavior of a SharePoint project item. For more information about the contents of SharePoint project items, see Creating Item Templates and Project Templates for SharePoint Project Items.

The SharePoint project item schema is named ProjectItemModelSchema.xsd and is installed by default in %Program Files (x86)%\Microsoft Visual Studio 11.0\Xml\Schemas.

The root element is the ProjectItem element. The following table describes all of the elements defined by the schema.

ElementDescription
ExtensionDataRepresents a collection of custom data items that are associated with the SharePoint project item.
ExtensionDataItemRepresents a custom data item that is associated with the SharePoint project item, in key/value format. Both the key and value must be strings.
FeaturePropertiesRepresents a collection of property values that are included with a Feature when it is deployed to SharePoint. After a Feature is deployed, you can access the property values in your code.
FeaturePropertyRepresents a custom property that is included with a Feature when it is deployed to SharePoint. After a Feature is deployed, you can access the property in your code.
FilesSpecifies the files to deploy with the SharePoint project item, such as a Feature element file or the output of a project.
ProjectItemRepresents a SharePoint project item.
ProjectItemFileRepresents a SharePoint file, such as Feature element file, to include with the project item when it is deployed to SharePoint.
ProjectItemFolderRepresents a mapped folder.
ProjectOutputFileRepresents the output of a project to include with the project item when it is deployed to SharePoint.
SafeControlRepresents an ASPX control or Web Part that is designated as secure for any user to access on any ASPX page on the SharePoint site.
SafeControlsRepresents a collection of ASPX controls and Web Parts that are designated as secure for any user to access on any ASPX page on the SharePoint site.

Creating Item Templates and Project Templates for SharePoint Project Items

Show: