Share via


SPFeaturePropertyCollection.Add method

Adds the specified Feature property object to the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub Add ( _
    property As SPFeatureProperty _
)
'Usage
Dim instance As SPFeaturePropertyCollection
Dim property As SPFeatureProperty

instance.Add(property)
public void Add(
    SPFeatureProperty property
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The Name property of property is null .

ArgumentException

The value of the value() property of property already exists in the collection.

Remarks

This method adds the specified Feature property to the collection.

See also

Reference

SPFeaturePropertyCollection class

SPFeaturePropertyCollection members

Microsoft.SharePoint namespace