ReadOnlyObservableSet<T> Class

 

Provides the base class for a generic IReadOnlyObservableSet<T>.

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

System.Object
  Microsoft.VisualStudio.Shell.ReadOnlyObservableSet<T>

public abstract class ReadOnlyObservableSet<T> : IReadOnlyObservableSet<T>, 
	IReadOnlyObservableSet, IEnumerable, INotifyCollectionChanged, 
	IEnumerable<T>

Type Parameters

T

The type of items stored in the set.

NameDescription
System_CAPS_protmethodReadOnlyObservableSet<T>(IEqualityComparer<T>)

Initializes a new instance of the ReadOnlyObservableSet<T> class that is empty and uses the specified equality comparer for the set type..

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements actually contained in the ReadOnlyObservableSet<T>.

NameDescription
System_CAPS_protmethodAddItem(T)

Adds the specified element to a set.

System_CAPS_protmethodClearItems()

Removes all elements from a ReadOnlyObservableSet<T> object.

System_CAPS_pubmethodContains(T)

Determines whether an element is in the ReadOnlyObservableSet<T>.

System_CAPS_pubmethodContains(Object)

Determines whether an element is in the ReadOnlyObservableSet<T>.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through the ReadOnlyObservableSet<T>.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnCollectionChanged(NotifyCollectionChangedEventArgs)

Invoked when the collection is changed.

System_CAPS_protmethodOnItemAdded(T)

Invoked when an element is added to the set.

System_CAPS_protmethodOnItemRemoved(T)

Invoked when an element is removed from the set.

System_CAPS_protmethodOnItemsCleared(IEnumerable<T>)

Invoked when the set is cleared.

System_CAPS_protmethodRemoveItem(T)

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

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventCollectionChanged

Occurs when an item is added, removed, changed, moved, or the entire set is refreshed.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator that iterates through the ReadOnlyObservableSet<T>.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: