共用方式為


SPFeaturePropertyCollection.Add Method

Adds the specified Feature property object to the collection.

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

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