Represents a random-access collection of elements.
This interface appears to .NET code as System.Collections.Generic.IList due to .NET language projection. In any case where a Windows Runtime type has implemented IVector;, .NET code can use the APIs of IList instead.
When programming with .NET, this interface is hidden and developers should use the System.Collections.Generic.IList interface if they want to implement a vector/list type. In any case where a Windows Runtime type has implemented IVector;, .NET code can use the APIs of IList instead. This includes all the existing Windows Runtime API and also scenarios such as using the APIs of Windows Runtime components originally implemented in Visual C++ component extensions (C++/CX) from a C# or Visual Basic app.
The IVector; interface represents a collection of objects of a specified type that can be individually accessed by index. Properties and methods of IVector; support list-type functionality, such as getting the size of the collection, and adding and removing items at specified locations in the collection. Additionally, the GetView method provides a snapshot of the vector whose observable state does not change. The snapshot is useful when you need a view of the collection to refer to in subsequent operations that involve IVector;.