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
'Dichiarazione
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 | |
---|---|---|
FilteredObservableCollection<T> | Initializes a new instance of FilteredObservableCollection<T>. |
Top
Properties
Name | Description | |
---|---|---|
Count | Gets the number of items in the collection. | |
IsFixedSize | Determines whether this collection has a fixed size. | |
IsReadOnly | Determines whether this collection is read-only. | |
IsSynchronized | Determines whether the collection is synchronized. | |
Item | Gets the item at the specified location. | |
SyncRoot | Gets the object used to synchronize the collection. |
Top
Methods
Name | Description | |
---|---|---|
Add(Object) | Since this collection is read-only, throws an InvalidOperationException. | |
Add(T) | Since this collection is read-only, throws an InvalidOperationException. | |
Clear | Since this collection is read-only, throws an InvalidOperationException. | |
Contains(Object) | Determines whether the collection contains the specified object. | |
Contains(T) | Determines whether the collection contains the specified item. | |
CopyTo(Array, Int32) | Since this collection is read-only, throws an InvalidOperationException. | |
CopyTo(array<T[], Int32) | Since this collection is read-only, throws an InvalidOperationException. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Filter | Filters the collection by the specified predicate. | |
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 | Gets the enumerator. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf(Object) | Gets the location of the specified item. | |
IndexOf(T) | Gets the location of the specified item. | |
Insert(Int32, Object) | Since this collection is read-only, throws an InvalidOperationException. | |
Insert(Int32, T) | Since this collection is read-only, throws an InvalidOperationException. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(Object) | Since this collection is read-only, throws an InvalidOperationException. | |
Remove(T) | Since this collection is read-only, throws an InvalidOperationException. | |
RemoveAt | Since this collection is read-only, throws an InvalidOperationException. | |
StopFiltering | Removes the filter for the collection. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
CollectionChanged | Raised when the collection has changed. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IEnumerable.GetEnumerator | Gets the enumerator. | |
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.