다음을 통해 공유


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

‘선언
Function RemoveItem ( _
    itemId As Integer, _
    noDiscard As Boolean _
) As Boolean
bool RemoveItem(
    int itemId,
    bool noDiscard
)
bool RemoveItem(
    int itemId, 
    bool noDiscard
)
abstract RemoveItem : 
        itemId:int * 
        noDiscard:bool -> bool 
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

RemoveItem Overload

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace

DiscardItem