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

Definición

Crea Vector64<T> con el elemento en el índice especificado establecido en el valor especificado y los elementos restantes establecidos en el mismo valor que en el vector especificado.Creates a new Vector64<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::Vector64<T> WithElement(System::Runtime::Intrinsics::Vector64<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector64<T> WithElement<T> (this System.Runtime.Intrinsics.Vector64<T> vector, int index, T value) where T : struct;
static member WithElement : System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> * int * 'T -> System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector64(Of T), index As Integer, value As T) As Vector64(Of 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 van a obtener los elementos restantes.The vector to get the remaining elements from.

index
Int32

Índice del elemento que se va a establecer.The index of the element to set.

value
T

Valor en el que se va a establecer el elemento.The value to set the element to.

Devoluciones

Vector64<T>

Vector64<T> con el valor del elemento en index establecido en value y los elementos restantes establecidos en el mismo valor que en vector.A Vector64<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.

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