ReadOnlyObservableSet<T> 类
Provides the base class for a generic IReadOnlyObservableSet<T>.
继承层次结构
System.Object
Microsoft.VisualStudio.Shell.ReadOnlyObservableSet<T>
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
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
类型参数
- T
The type of items stored in the set.
ReadOnlyObservableSet<T> 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ReadOnlyObservableSet<T> | Initializes a new instance of the ReadOnlyObservableSet<T> class that is empty and uses the specified equality comparer for the set type.. |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Count | Gets the number of elements actually contained in the ReadOnlyObservableSet<T>. |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
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 | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetEnumerator | Returns an enumerator that iterates through the ReadOnlyObservableSet<T>. |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 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 | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
CollectionChanged | Occurs when an item is added, removed, changed, moved, or the entire set is refreshed. |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through the ReadOnlyObservableSet<T>. |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。