共用方式為


Vector128.GetElement<T>(Vector128<T>, Int32) 方法

定義

取得位在指定索引處的元素。

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

類型參數

T

輸入向量的型別。

參數

vector
Vector128<T>

要從其中取得項目的向量。

index
Int32

要取得的項目索引。

傳回

T

位於 index 的項目值。

例外狀況

不支援 vector (T) 的類型。

index 小於零或大於項目的數目。

適用於