ReadOnlyObservableSet<T> Class
Provides the base class for a generic IReadOnlyObservableSet<T>.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Shell.ReadOnlyObservableSet<T>
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
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
Type Parameters
- T
The type of items stored in the set.
The ReadOnlyObservableSet<T> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReadOnlyObservableSet<T> | Initializes a new instance of the ReadOnlyObservableSet<T> class that is empty and uses the specified equality comparer for the set type.. |
Top
Properties
Name | Description | |
---|---|---|
Count | Gets the number of elements actually contained in the ReadOnlyObservableSet<T>. |
Top
Methods
Name | Description | |
---|---|---|
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 | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator | Returns an enumerator that iterates through the ReadOnlyObservableSet<T>. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from 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 | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
CollectionChanged | Occurs when an item is added, removed, changed, moved, or the entire set is refreshed. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator | Returns an enumerator that iterates through the ReadOnlyObservableSet<T>. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.