Vector64.GetElement<T>(Vector64<T>, Int32) Método

Definición

Obtiene el elemento en el índice especificado.Gets the element at the specified index.

public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static T GetElement(System::Runtime::Intrinsics::Vector64<T> vector, int index);
public static T GetElement<T> (this System.Runtime.Intrinsics.Vector64<T> vector, int index) where T : struct;
static member GetElement : System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> * int -> 'T (requires 'T : struct)
<Extension()>
Public Function GetElement(Of T As Structure) (vector As Vector64(Of T), index As Integer) As T

Parámetros de tipo

T

Tipo del vector de entrada.The type of the input vector.

Parámetros

vector
Vector64<T>

Vector del que se obtiene el elemento.The vector to get the element from.

index
Int32

Índice del elemento que se va a obtener.The index of the element to get.

Devoluciones

T

Valor del elemento situado en index.The value of the element at index.

Excepciones

No se admite el tipo de vector (T).The type of vector (T) is not supported.

index era menor que cero o mayor que el número de elementos.index was less than zero or greater than the number of elements.

Se aplica a