Compartilhar via


SPFeatureCollection.Add method (Guid, Int32, Boolean, SPFeatureDefinitionScope)

Adiciona um recurso à coleção.

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

Syntax

'Declaração
Public Function Add ( _
    featureId As Guid, _
    compatibilityLevel As Integer, _
    force As Boolean, _
    featdefScope As SPFeatureDefinitionScope _
) As SPFeature
'Uso
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
)

Parâmetros

  • compatibilityLevel
    Type: System.Int32

    Nível de compatibilidade do recurso

Valor retornado

Type: Microsoft.SharePoint.SPFeature

Ver também

Referência

SPFeatureCollection class

SPFeatureCollection members

Add overload

Microsoft.SharePoint namespace