Jaa


IVector<T>.GetView Method

Definition

Returns an immutable view of the vector.

public:
 IVectorView<T> ^ GetView();
IVectorView<T> GetView();
public IReadOnlyList<T> GetView();
Public Function GetView () As IReadOnlyList(Of T)

Returns

The view of the vector.

Remarks

When programming with .NET, this interface is hidden, and you should use the System.Collections.Generic.IList<T> interface.

If changes are made to the vector, such as adding, modifying, or deleting elements, then the vector view is permitted to raise an exception for all future operations.

Applies to

See also