Vector128.GetElement<T>(Vector128<T>, Int32) Método
Definição
Obtém o elemento no í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::Vector128<T> vector, int index);
public static T GetElement<T> (this System.Runtime.Intrinsics.Vector128<T> vector, int index) where T : struct;
static member GetElement : System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> * int -> 'T (requires 'T : struct)
<Extension()>
Public Function GetElement(Of T As Structure) (vector As Vector128(Of T), index As Integer) As T
Parâmetros de tipo
- T
O tipo do vetor de entrada.The type of the input vector.
Parâmetros
- vector
- Vector128<T>
O vetor do qual o elemento será obtido.The vector to get the element from.
- index
- Int32
O índice do elemento a ser obtido.The index of the element to get.
Retornos
- T
O valor do elemento em index.The value of the element at index.
Exceções
Não há suporte para o tipo de vector (T).The type of vector (T) is not supported.
index era menor que zero ou maior que o número de elementos.index was less than zero or greater than the number of elements.