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
類型:Int32節點的數值識別項可以移除。
noDiscard
類型:Boolean指定是否要捨棄節點 (true) (false)。
傳回值
類型:Boolean
true ,如果移除節點,否則, false。
備註
如果 noDiscard 參數設定為, true項目保持配置和可重複使用。 移除項目上放置在伺服器總管中。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。