IObservableVector<T> Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies listeners of changes to the vector.
public interface class IObservableVector : IVector<T>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1494739795, 20660, 18957, 179, 9, 101, 134, 43, 63, 29, 188)]
template <typename T>
struct IObservableVector : IVector<T>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(1494739795, 20660, 18957, 179, 9, 101, 134, 43, 63, 29, 188)]
public interface IObservableVector<T> : IList<T>
Public Interface IObservableVector(Of T)
Implements IList(Of T)
- T
- Derived
- Attributes
- Implements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.FoundationContract (introduced in v1.0)
|
The IObservableVector<T> interface enables clients to register for notification events for IVector<T> objects. For example, use notification events when you need to keep two data structures synchronized. In this scenario, you can use the IObservableVector<T> interface to receive notification of changes, so that the associated data structure can be updated.
Observable collections are mainly useful for XAML data binding scenarios. For more info, see Data binding in depth.
IObservableVector<T> inherits IVector<T> and IIterable<T>. Types that implement IObservableMap<T> also implement the interface members of IVector<T> and IIterable<T>.
IObservableVector<T> isn't hidden for .NET usage. However, it's more common to use the .NET ObservableCollection<T> type as a base class, or implement a List type or interface (generic or nongeneric) and INotifyCollectionChanged separately. If you do use IObservableVector<T> for .NET code, the base interfaces (and their members) project as IList<T> and IEnumerable<T>.
Vector |
Occurs when the vector changes. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |