IVsDataViewHierarchy.RemoveItem 方法 (Int32, Boolean)

从服务器资源管理器中移除指定的节点。 参数为 。

命名空间:  Microsoft.VisualStudio.Data.Services.SupportEntities
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function RemoveItem ( _
    itemId As Integer, _
    noDiscard As Boolean _
) As Boolean
bool RemoveItem(
    int itemId,
    bool noDiscard
)
bool RemoveItem(
    int itemId, 
    bool noDiscard
)
abstract RemoveItem : 
        itemId:int * 
        noDiscard:bool -> bool 
function RemoveItem(
    itemId : int, 
    noDiscard : boolean
) : boolean

参数

  • itemId
    类型:System.Int32
    节点的数值标识符可以移除。
  • noDiscard
    类型:System.Boolean
    指定是否放弃节点(true) (false)。

返回值

类型:System.Boolean
true if the node is removed; otherwise, false.

备注

如果 noDiscard 参数设置为 true,该项目保持分配可重用。移除项的位置在服务器资源管理器中。

.NET Framework 安全性

请参见

参考

IVsDataViewHierarchy 接口

RemoveItem 重载

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空间

DiscardItem