共用方式為


FilteredObservableCollection<T> Class

Represents a filtered observable collection.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Language.Intellisense.FilteredObservableCollection<T>

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'宣告
Public Class FilteredObservableCollection(Of T) _
    Implements IList, ICollection, IList(Of T),  _
    ICollection(Of T), IEnumerable(Of T), IEnumerable, INotifyCollectionChanged
public class FilteredObservableCollection<T> : IList, 
    ICollection, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, 
    INotifyCollectionChanged
generic<typename T>
public ref class FilteredObservableCollection : IList, 
    ICollection, IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, 
    INotifyCollectionChanged
type FilteredObservableCollection<'T> =  
    class
        interface IList
        interface ICollection
        interface IList<'T>
        interface ICollection<'T>
        interface IEnumerable<'T>
        interface IEnumerable
        interface INotifyCollectionChanged
    end
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the collection.

The FilteredObservableCollection<T> type exposes the following members.

Constructors

  Name Description
Public method FilteredObservableCollection<T> Initializes a new instance of FilteredObservableCollection<T>.

Top

Properties

  Name Description
Public property Count Gets the number of items in the collection.
Public property IsFixedSize Determines whether this collection has a fixed size.
Public property IsReadOnly Determines whether this collection is read-only.
Public property IsSynchronized Determines whether the collection is synchronized.
Public property Item Gets the item at the specified location.
Public property SyncRoot Gets the object used to synchronize the collection.

Top

Methods

  Name Description
Public method Add(Object) Since this collection is read-only, throws an InvalidOperationException.
Public method Add(T) Since this collection is read-only, throws an InvalidOperationException.
Public method Clear Since this collection is read-only, throws an InvalidOperationException.
Public method Contains(Object) Determines whether the collection contains the specified object.
Public method Contains(T) Determines whether the collection contains the specified item.
Public method CopyTo(Array, Int32) Since this collection is read-only, throws an InvalidOperationException.
Public method CopyTo(array<T[], Int32) Since this collection is read-only, throws an InvalidOperationException.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Filter Filters the collection by the specified predicate.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Gets the enumerator.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf(Object) Gets the location of the specified item.
Public method IndexOf(T) Gets the location of the specified item.
Public method Insert(Int32, Object) Since this collection is read-only, throws an InvalidOperationException.
Public method Insert(Int32, T) Since this collection is read-only, throws an InvalidOperationException.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove(Object) Since this collection is read-only, throws an InvalidOperationException.
Public method Remove(T) Since this collection is read-only, throws an InvalidOperationException.
Public method RemoveAt Since this collection is read-only, throws an InvalidOperationException.
Public method StopFiltering Removes the filter for the collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event CollectionChanged Raised when the collection has changed.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets the enumerator.
Explicit interface implemetationPrivate property IList.Item Gets the item at the specified location.

Top

Remarks

The underlying collection for this class must implement IList and INotifyCollectionChanged.

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.

See Also

Reference

Microsoft.VisualStudio.Language.Intellisense Namespace