Поделиться через


IVector<T> interface

Represents a random-access collection of elements.

Template parameters

  • T
    The type of the values in the vector.

Members

The IVector<T> interface inherits from IInspectable. IVector also has these types of members:

  • Methods

Methods

The IVector<T> interface has these methods.

Method Description
Append

Appends an item to the end of the IVector<T>.

Clear

Removes all items from the IVector<T>.

get_Size

Gets the number of items in the IVector<T>.

GetAt

Returns the item at the specified index in the IVector<T>.

GetView

Returns an immutable view of the IVector<T>.

IndexOf

Determines the index of a specified item in the IVector<T>.

InsertAt

Inserts an item at the specified location in the IVector<T>.

RemoveAt

Removes the item at the specified index in the IVector<T>.

RemoveAtEnd

Removes the last item in the IVector<T>.

SetAt

Sets the value at the specified index of the IVector<T>.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.Collections.h