FeatureCollection.Remove 方法

从功能的集合中删除功能。

命名空间:  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 Sub Remove ( _
    featureId As Guid, _
    force As Boolean _
)
用法
Dim instance As FeatureCollection
Dim featureId As Guid
Dim force As Boolean

instance.Remove(featureId, force)
public void Remove(
    Guid featureId,
    bool force
)

参数

  • featureId
    类型:System.Guid

    要删除的功能的功能标识符。

    它不能空引用(无 在 Visual Basic 中)。

  • force
    类型:System.Boolean

    指定是否要强制要继续即使有错误的操作。

    如果没有错误,则忽略此参数。

异常

异常 条件
InvalidOperationException

功能激活的功能或不能停用功能并不force参数未设置为true。错误代码:-1。

UnauthorizedAccessException

当前用户没有足够的权限。错误代码 ︰ 为-2147024891。

另请参阅

引用

FeatureCollection 类

FeatureCollection 成员

Microsoft.SharePoint.Client 命名空间