Freigeben über


IVsDataViewHierarchy.DiscardItem-Methode

Entfernt den angegebenen Knoten aus dem Server-Explorer und gibt das entsprechende Objekt aus dem Arbeitsspeicher frei.

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

Parameter

  • itemId
    Typ: Int32

    Ein numerischer Bezeichner, sodass der Knoten von entfernt.

Rückgabewert

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

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsDataViewHierarchy Schnittstelle

Microsoft.VisualStudio.Data.Services.SupportEntities-Namespace