Udostępnij za pośrednictwem


Klasa ReadOnlyObservableSet<T>

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

Hierarchia dziedziczenia

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

Przestrzeń nazw:  Microsoft.VisualStudio.Shell
Zestaw:  Microsoft.VisualStudio.Shell.11.0 (w Microsoft.VisualStudio.Shell.11.0.dll)

Składnia

'Deklaracja
Public MustInherit Class ReadOnlyObservableSet(Of T) _
    Implements IReadOnlyObservableSet(Of T), IReadOnlyObservableSet, INotifyCollectionChanged,  _
    IEnumerable(Of T), IEnumerable
public abstract class ReadOnlyObservableSet<T> : IReadOnlyObservableSet<T>, 
    IReadOnlyObservableSet, INotifyCollectionChanged, IEnumerable<T>, IEnumerable

Parametry typów

  • T
    The type of items stored in the set.

Typ ReadOnlyObservableSet<T> uwidacznia następujące elementy członkowskie.

Konstruktorzy

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

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna Count Gets the number of elements actually contained in the ReadOnlyObservableSet<T>.

Początek

Metody

  Nazwa Opis
Metoda chroniona AddItem Adds the specified element to a set.
Metoda chroniona ClearItems Removes all elements from a ReadOnlyObservableSet<T> object.
Metoda publiczna Contains(Object) Determines whether an element is in the ReadOnlyObservableSet<T>.
Metoda publiczna Contains(T) Determines whether an element is in the ReadOnlyObservableSet<T>.
Metoda publiczna Equals Określa, czy określony obiekt jest równa bieżącego obiektu. (Odziedziczone z Object).
Metoda chroniona Finalize Umożliwia obiekt spróbuj zwolnić zasoby i wykonywania innych operacji oczyszczania, zanim jest odzyskane w procesie wyrzucania elementów bezużytecznych. (Odziedziczone z Object).
Metoda publiczna GetEnumerator Returns an enumerator that iterates through the ReadOnlyObservableSet<T>.
Metoda publiczna GetHashCode Służy jako funkcja mieszania dla określonego typu. (Odziedziczone z Object).
Metoda publiczna GetType Pobiera Type bieżącej instancji. (Odziedziczone z Object).
Metoda chroniona MemberwiseClone Tworzy kopię płytkie bieżące Object. (Odziedziczone z Object).
Metoda chroniona OnCollectionChanged Invoked when the collection is changed.
Metoda chroniona OnItemAdded Invoked when an element is added to the set.
Metoda chroniona OnItemRemoved Invoked when an element is removed from the set.
Metoda chroniona OnItemsCleared Invoked when the set is cleared.
Metoda chroniona RemoveItem Removes the specified element from a ReadOnlyObservableSet<T> object.
Metoda publiczna ToString Zwraca ciąg, który reprezentuje bieżącego obiektu. (Odziedziczone z Object).

Początek

Zdarzenia

  Nazwa Opis
Zdarzenie publiczne CollectionChanged Occurs when an item is added, removed, changed, moved, or the entire set is refreshed.

Początek

Jawne implementacje interfejsu

  Nazwa Opis
Jawna implementacja interfejsuMetoda prywatna IEnumerable.GetEnumerator Returns an enumerator that iterates through the ReadOnlyObservableSet<T>.

Początek

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualStudio.Shell