Comparteix a través de


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

Definición

Obtiene el elemento en el índice especificado.

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

Parámetros de tipo

T

Tipo del vector de entrada.

Parámetros

vector
Vector128<T>

Vector del que se obtiene el elemento.

index
Int32

Índice del elemento que se va a obtener.

Devoluciones

T

Valor del elemento situado en index.

Excepciones

No se admite el tipo de vector (T).

index era menor que cero o mayor que el número de elementos.

Se aplica a