Classe ReadOnlyObservableSet<T>
Provides the base class for a generic IReadOnlyObservableSet<T>.
Gerarchia di ereditarietà
System.Object
Microsoft.VisualStudio.Shell.ReadOnlyObservableSet<T>
Spazio dei nomi: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Sintassi
'Dichiarazione
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
Parametri di tipo
- T
The type of items stored in the set.
Il tipo ReadOnlyObservableSet<T> espone i seguenti membri.
Costruttori
Nome | Descrizione | |
---|---|---|
![]() |
ReadOnlyObservableSet<T> | Initializes a new instance of the ReadOnlyObservableSet<T> class that is empty and uses the specified equality comparer for the set type.. |
In alto
Proprietà
Nome | Descrizione | |
---|---|---|
![]() |
Count | Gets the number of elements actually contained in the ReadOnlyObservableSet<T>. |
In alto
Metodi
Nome | Descrizione | |
---|---|---|
![]() |
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 | Determina se l'oggetto specificato equivale all'oggetto corrente. (Ereditato da Object) |
![]() |
Finalize | Consente a un oggetto di provare a liberare risorse ed eseguire altre operazioni di pulitura prima che l'oggetto stesso venga recuperato dalla procedura di Garbage Collection. (Ereditato da Object) |
![]() |
GetEnumerator | Returns an enumerator that iterates through the ReadOnlyObservableSet<T>. |
![]() |
GetHashCode | Funge da funzione hash per un determinato tipo. (Ereditato da Object) |
![]() |
GetType | Ottiene l'oggetto Type dell'istanza corrente. (Ereditato da Object) |
![]() |
MemberwiseClone | Consente di creare una copia dei riferimenti dell'oggetto Object corrente. (Ereditato da 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 | Restituisce una stringa che rappresenta l'oggetto corrente. (Ereditato da Object) |
In alto
Eventi
Nome | Descrizione | |
---|---|---|
![]() |
CollectionChanged | Occurs when an item is added, removed, changed, moved, or the entire set is refreshed. |
In alto
Implementazioni esplicite dell'interfaccia
Nome | Descrizione | |
---|---|---|
![]() ![]() |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through the ReadOnlyObservableSet<T>. |
In alto
Codice thread safe
Qualsiasi membro static (Shared in Visual Basic) pubblico di questo tipo è thread-safe. I membri di istanza non sono garantiti come thread-safe.