从服务器资源管理器中移除指定的节点。 参数为 。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。