Freigeben über


SPFeatureCollection.Add-Methode (Guid, Int32, Boolean, SPFeatureDefinitionScope)

Die Auflistung wird ein Feature hinzugefügt.

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

Syntax

'Declaration
Public Function Add ( _
    featureId As Guid, _
    compatibilityLevel As Integer, _
    force As Boolean, _
    featdefScope As SPFeatureDefinitionScope _
) As SPFeature
'Usage
Dim instance As SPFeatureCollection
Dim featureId As Guid
Dim compatibilityLevel As Integer
Dim force As Boolean
Dim featdefScope As SPFeatureDefinitionScope
Dim returnValue As SPFeature

returnValue = instance.Add(featureId, _
    compatibilityLevel, force, featdefScope)
public SPFeature Add(
    Guid featureId,
    int compatibilityLevel,
    bool force,
    SPFeatureDefinitionScope featdefScope
)

Parameter

  • force
    Typ: System.Boolean

    Erzwingen, dass dieses Feature aktiviert werden

Rückgabewert

Typ: Microsoft.SharePoint.SPFeature

Siehe auch

Referenz

SPFeatureCollection Klasse

SPFeatureCollection-Member

Add-Überladung

Microsoft.SharePoint-Namespace