Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
[System::Runtime::CompilerServices::Extension]
static System::Runtime::Intrinsics::Vector128<T> WithElement(System::Runtime::Intrinsics::Vector128<T> vector, int index, T value);
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);
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> * int * 'T -> System.Runtime.Intrinsics.Vector128<'T>
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) (vector As Vector128(Of T), index As Integer, value As T) As Vector128(Of T)
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector128(Of T), index As Integer, value As T) As Vector128(Of T)
The type of the input vector.
The vector to get the remaining elements from.
The index of the element to set.
The value to set the element to.
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
.
The type of vector
(T
) is not supported.
index
was less than zero or greater than the number of elements.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in