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.Int32A numerical identifier for the node to remove.
Return Value
Type: System.Boolean
true if node is removed; otherwise, false.
.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