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
'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.Int32

    A numerical identifier for the node to remove.

  • noDiscard
    Type: System.Boolean

    Specifies 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

See Also

Reference

IVsDataViewHierarchy Interface

IVsDataViewHierarchy Members

RemoveItem Overload

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace

DiscardItem