FeatureCollection.Add 方法
将功能添加到激活的功能集,并返回添加功能。
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Function Add ( _
featureId As Guid, _
force As Boolean, _
featdefScope As FeatureDefinitionScope _
) As Feature
用法
Dim instance As FeatureCollection
Dim featureId As Guid
Dim force As Boolean
Dim featdefScope As FeatureDefinitionScope
Dim returnValue As Feature
returnValue = instance.Add(featureId, _
force, featdefScope)
public Feature Add(
Guid featureId,
bool force,
FeatureDefinitionScope featdefScope
)
参数
featureId
类型:System.Guid要添加的功能的功能标识符。
它不能空引用(无 在 Visual Basic 中)。
force
类型:System.Boolean指定是否具有相同的功能标识符覆盖现有功能。
如果没有错误,则忽略此参数。
featdefScope
类型:Microsoft.SharePoint.Client.FeatureDefinitionScope此功能的功能范围。
它必须 FeatureDefinitionScope.Site 或 FeatureDefinitionScope.Farm 的值。
返回值
类型:Microsoft.SharePoint.Client.Feature
返回表示功能添加到激活的功能集Feature实例并返回添加功能。