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
featureId
Type: System.GuidID do recurso
compatibilityLevel
Type: System.Int32Nível de compatibilidade do recurso
force
Type: System.BooleanForçar esse recurso seja ativado
featdefScope
Type: Microsoft.SharePoint.SPFeatureDefinitionScopeSPFeatureDefinitionScope
Valor retornado
Type: Microsoft.SharePoint.SPFeature