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
Metodo protetto 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
Proprietà pubblica Count Gets the number of elements actually contained in the ReadOnlyObservableSet<T>.

In alto

Metodi

  Nome Descrizione
Metodo protetto AddItem Adds the specified element to a set.
Metodo protetto ClearItems Removes all elements from a ReadOnlyObservableSet<T> object.
Metodo pubblico Contains(Object) Determines whether an element is in the ReadOnlyObservableSet<T>.
Metodo pubblico Contains(T) Determines whether an element is in the ReadOnlyObservableSet<T>.
Metodo pubblico Equals Determina se l'oggetto specificato equivale all'oggetto corrente. (Ereditato da Object)
Metodo protetto 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)
Metodo pubblico GetEnumerator Returns an enumerator that iterates through the ReadOnlyObservableSet<T>.
Metodo pubblico GetHashCode Funge da funzione hash per un determinato tipo. (Ereditato da Object)
Metodo pubblico GetType Ottiene l'oggetto Type dell'istanza corrente. (Ereditato da Object)
Metodo protetto MemberwiseClone Consente di creare una copia dei riferimenti dell'oggetto Object corrente. (Ereditato da Object)
Metodo protetto OnCollectionChanged Invoked when the collection is changed.
Metodo protetto OnItemAdded Invoked when an element is added to the set.
Metodo protetto OnItemRemoved Invoked when an element is removed from the set.
Metodo protetto OnItemsCleared Invoked when the set is cleared.
Metodo protetto RemoveItem Removes the specified element from a ReadOnlyObservableSet<T> object.
Metodo pubblico ToString Restituisce una stringa che rappresenta l'oggetto corrente. (Ereditato da Object)

In alto

Eventi

  Nome Descrizione
Evento pubblico CollectionChanged Occurs when an item is added, removed, changed, moved, or the entire set is refreshed.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato 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.

Vedere anche

Riferimenti

Spazio dei nomi Microsoft.VisualStudio.Shell