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 | |
---|---|---|
![]() |
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 | |
---|---|---|
![]() |
Count | Gets the number of elements actually contained in the ReadOnlyObservableSet<T>. |
Początek
Metody
Nazwa | Opis | |
---|---|---|
![]() |
AddItem | Adds the specified element to a set. |
![]() |
ClearItems | Removes all elements from a ReadOnlyObservableSet<T> object. |
![]() |
Contains(Object) | Determines whether an element is in the ReadOnlyObservableSet<T>. |
![]() |
Contains(T) | Determines whether an element is in the ReadOnlyObservableSet<T>. |
![]() |
Equals | Określa, czy określony obiekt jest równa bieżącego obiektu. (Odziedziczone z Object). |
![]() |
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). |
![]() |
GetEnumerator | Returns an enumerator that iterates through the ReadOnlyObservableSet<T>. |
![]() |
GetHashCode | Służy jako funkcja mieszania dla określonego typu. (Odziedziczone z Object). |
![]() |
GetType | Pobiera Type bieżącej instancji. (Odziedziczone z Object). |
![]() |
MemberwiseClone | Tworzy kopię płytkie bieżące Object. (Odziedziczone z Object). |
![]() |
OnCollectionChanged | Invoked when the collection is changed. |
![]() |
OnItemAdded | Invoked when an element is added to the set. |
![]() |
OnItemRemoved | Invoked when an element is removed from the set. |
![]() |
OnItemsCleared | Invoked when the set is cleared. |
![]() |
RemoveItem | Removes the specified element from a ReadOnlyObservableSet<T> object. |
![]() |
ToString | Zwraca ciąg, który reprezentuje bieżącego obiektu. (Odziedziczone z Object). |
Początek
Zdarzenia
Nazwa | Opis | |
---|---|---|
![]() |
CollectionChanged | Occurs when an item is added, removed, changed, moved, or the entire set is refreshed. |
Początek
Jawne implementacje interfejsu
Nazwa | Opis | |
---|---|---|
![]() ![]() |
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.