Bagikan melalui


FeatureProperty Element

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.

<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 Packaging and Deployment Information in Project Items.

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

Providing Packaging and Deployment Information in Project Items