Share via


IVsDataViewHierarchy.DiscardItem Method

Removes the specified node from Server Explorer and de-allocates its corresponding object from memory.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Function DiscardItem ( _
    itemId As Integer _
) As Boolean
bool DiscardItem(
    int itemId
)
bool DiscardItem(
    int itemId
)
abstract DiscardItem : 
        itemId:int -> bool
function DiscardItem(
    itemId : int
) : boolean

Parameters

  • itemId
    Type: System.Int32

    A numerical identifier for the node to remove.

Return Value

Type: System.Boolean
true if node is removed; otherwise, false.

.NET Framework Security

See Also

Reference

IVsDataViewHierarchy Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace