Share via


ReadOnlyObservableSet<T>.RemoveItem Method

Removes the specified element from a ReadOnlyObservableSet<T> object.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Protected Function RemoveItem ( _
    item As T _
) As Boolean
protected bool RemoveItem(
    T item
)
protected:
bool RemoveItem(
    T item
)
member RemoveItem : 
        item:'T -> bool
protected function RemoveItem(
    item : T
) : boolean

Parameters

  • item
    Type: T

    The element to remove from the set.

Return Value

Type: Boolean
true if the element is successfully found and removed, otherwise false. This method returns false if item is not found in the ReadOnlyObservableSet(T) object.

.NET Framework Security

See Also

Reference

ReadOnlyObservableSet<T> Class

Microsoft.VisualStudio.Shell Namespace