SPFeatureCollection.Add method (Guid, Int32, Boolean, SPFeatureDefinitionScope)
將功能加入至集合。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function Add ( _
featureId As Guid, _
compatibilityLevel As Integer, _
force As Boolean, _
featdefScope As SPFeatureDefinitionScope _
) As SPFeature
'用途
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
)
參數
featureId
Type: System.Guid功能識別碼
compatibilityLevel
Type: System.Int32功能的相容性層級
force
Type: System.Boolean強制啟動這項功能
featdefScope
Type: Microsoft.SharePoint.SPFeatureDefinitionScopeSPFeatureDefinitionScope
傳回值
Type: Microsoft.SharePoint.SPFeature