FilteredObservableCollection<T> 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示筛选的可观测集合。
generic <typename T>
public ref class FilteredObservableCollection : System::Collections::Generic::ICollection<T>, System::Collections::Generic::IEnumerable<T>, System::Collections::Generic::IList<T>, System::Collections::IList, System::Collections::Specialized::INotifyCollectionChangedpublic class FilteredObservableCollection<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.IList, System.Collections.Specialized.INotifyCollectionChangedtype FilteredObservableCollection<'T> = class
    interface IList
    interface ICollection
    interface IEnumerable
    interface IList<'T>
    interface ICollection<'T>
    interface seq<'T>
    interface INotifyCollectionChangedPublic Class FilteredObservableCollection(Of T)
Implements ICollection(Of T), IEnumerable(Of T), IList, IList(Of T), INotifyCollectionChanged类型参数
- T
集合的类型。
- 继承
- 
				FilteredObservableCollection<T>
- 实现
注解
此类的基础集合必须实现 IList 和 INotifyCollectionChanged。
构造函数
| FilteredObservableCollection<T>(IList<T>) | 初始化 FilteredObservableCollection<T> 的新实例。 | 
属性
| Count | 获取集合中的项数。 | 
| IsFixedSize | 确定此集合是否具有固定大小。 | 
| IsReadOnly | 确定此集合是否为只读。 | 
| IsSynchronized | 确定是否同步集合。 | 
| Item[Int32] | 获取位于指定位置的项。 | 
| SyncRoot | 获取用于同步集合的对象。 | 
方法
| Add(Object) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| Add(T) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| Clear() | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| Contains(Object) | 确定集合中是否包含指定的对象。 | 
| Contains(T) | 确定集合中是否包含指定的项。 | 
| CopyTo(Array, Int32) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| CopyTo(T[], Int32) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| Filter(Predicate<T>) | 按指定的谓词筛选集合。 | 
| GetEnumerator() | 获取枚举器。 | 
| IndexOf(Object) | 获取指定项的位置。 | 
| IndexOf(T) | 获取指定项的位置。 | 
| Insert(Int32, Object) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| Insert(Int32, T) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| Remove(Object) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| Remove(T) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| RemoveAt(Int32) | 由于此集合是只读的,因此会 InvalidOperationException引发 。 | 
| StopFiltering() | 删除集合的筛选器。 | 
事件
| CollectionChanged | 集合更改时引发。 | 
显式接口实现
| IEnumerable.GetEnumerator() | 获取枚举器。 | 
| IList.Item[Int32] | 获取位于指定位置的项。 | 
扩展方法
| EmptyIfNull<T>(IEnumerable<T>) | 如果枚举不为 null,则返回此枚举。 如果为 null,则返回空枚举。 |