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
'Usage
Dim instance As IVsDataViewHierarchy
Dim itemId As Integer
Dim noDiscard As Boolean
Dim returnValue As Boolean
returnValue = instance.RemoveItem(itemId, _
noDiscard)
bool RemoveItem(
int itemId,
bool noDiscard
)
bool RemoveItem(
int itemId,
bool noDiscard
)
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