IVsDataViewHierarchy.RemoveItem Method (Int32, Boolean)
Removes the specified node from Server Explorer. Optionally, discards the specified node.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
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
Parameters
itemId
Type: System.Int32A numerical identifier for the node to remove.
noDiscard
Type: System.BooleanSpecifies whether to discard the node (true) or not (false).
Return Value
Type: System.Boolean
true if the node is removed; otherwise, false.
Remarks
If the noDiscard parameter is set to true, the item remains allocated and can be re-used. Only the placement of the item in Server Explorer is removed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataViewHierarchy Interface
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace