FeatureProperty element
Applies to: Visual Studio Visual 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
Represents 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.
Syntax
<FeatureProperty Key = "Key of the property value"
Value = "Property value" />
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 property value. Each property must have a key that is unique within the Feature. |
Value | Required xs:string attribute. The property value. |
Child elements
None.
Parent elements
Element | Description |
---|---|
FeatureProperties | Represents a collection of property values that are included with a Feature when it is deployed to SharePoint. |
Remarks
For more information about Feature properties, see Providing package and deployment information in project items.
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 |