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
featureId
Typ: System.GuidFeature-ID
compatibilityLevel
Typ: System.Int32Wert des Features
force
Typ: System.BooleanErzwingen, dass dieses Feature aktiviert werden
featdefScope
Typ: Microsoft.SharePoint.SPFeatureDefinitionScopeSPFeatureDefinitionScope
Rückgabewert
Typ: Microsoft.SharePoint.SPFeature