SPFeatureDefinition.Properties Property

Gets a standardized property bag object that contains per-Feature settings that are specified in the Feature definition.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableForceNewKeywordAttribute> _
Public ReadOnly Property Properties As SPFeaturePropertyCollection
    Get
'Usage
Dim instance As SPFeatureDefinition
Dim value As SPFeaturePropertyCollection

value = instance.Properties
[SubsetCallableForceNewKeywordAttribute]
public SPFeaturePropertyCollection Properties { get; }

Property Value

Type: Microsoft.SharePoint.SPFeaturePropertyCollection
An SPFeaturePropertyCollection object that represents the Feature properties.

Remarks

The settings returned by this property are not updatable; they reflect the state of the properties that are defined in the Feature definition XML file. For this reason, properties in a Feature definition are read-only. Calls to the Update method from the Feature properties object throw an InvalidOperationException exception, stating “Properties on a Feature definition can not be updated.”

See Also

Reference

SPFeatureDefinition Class

SPFeatureDefinition Members

Microsoft.SharePoint.Administration Namespace