Vector128.WithElement(Vector128<T>, Int32, T) Vector128.WithElement(Vector128<T>, Int32, T) Vector128.WithElement(Vector128<T>, Int32, T) Vector128.WithElement(Vector128<T>, Int32, T) Method

Definição

Cria um Vector128<T> com o elemento no índice especificado definido com o valor especificado e os elementos restantes definidos com o mesmo valor do vetor especificado.Creates a new Vector128<T> with the element at the specified index set to the specified value and the remaining elements set to the same value as that in the given vector.

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

Parâmetros de tipo

T

O tipo do vetor de entrada.The type of the input vector.

Parâmetros

vector
Vector128<T> Vector128<T> Vector128<T> Vector128<T>

O vetor do qual os elementos restantes serão obtidos.The vector to get the remaining elements from.

index
Int32 Int32 Int32 Int32

O índice do elemento a ser definido.The index of the element to set.

value
T T T T

O valor para o qual definir o elemento.The value to set the element to.

Retornos

Um Vector128<T> com o valor do elemento em index definido como value e os elementos restantes definidos com o mesmo valor do vector.A Vector128<T> with the value of the element at index set to value and the remaining elements set to the same value as that in vector.

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.

Aplica-se a