# Vector256<T>Vector256<T>Vector256<T>Vector256<T> Struct

## 定義

``````generic <typename T>
where T : value classpublic value class Vector256 : IEquatable<System::Runtime::Intrinsics::Vector256<T>>``````
``public struct Vector256<T> : IEquatable<System.Runtime.Intrinsics.Vector256<T>> where T : struct``
``type Vector256<'T (requires 'T : struct)> = struct``
``````Public Structure Vector256(Of T)
Implements IEquatable(Of Vector256(Of T))``````

#### 類型參數

T

Vector256<T>Vector256<T>Vector256<T>Vector256<T>

## 屬性

 Count Count Count Count 取得位在 Vector256 中的 `T` 數目。Gets the number of `T` that are in a Vector256. Zero Zero Zero Zero 取得所有項目皆初始化為零的新 Vector256。Gets a new Vector256 with all elements initialized to zero.

## 方法

 Equals(Object) Equals(Object) Equals(Object) Equals(Object) 判斷指定的物件是否和目前的執行個體相等。Determines whether the specified object is equal to the current instance. Equals(Vector256) Equals(Vector256) Equals(Vector256) Equals(Vector256) 判斷指定的 Vector256 和目前的執行個體是否相等。Determines whether the specified Vector256 is equal to the current instance. GetHashCode() GetHashCode() GetHashCode() GetHashCode() 取得執行個體的雜湊碼。Gets the hash code for the instance. ToString() ToString() ToString() ToString() 將目前的執行個體轉換為對等字串表示。Converts the current instance to an equivalent string representation.

## 擴充方法

 As(Vector256) As(Vector256) As(Vector256) As(Vector256) 會將 `T` 類型的 Vector256 重新解譯為 `U` 類型新的 Vector256。Reinterprets a Vector256 of type `T` as a new Vector256 of type `U`. AsByte(Vector256) AsByte(Vector256) AsByte(Vector256) AsByte(Vector256) 會將 Vector256 重新解譯為 Byte 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type Byte. AsDouble(Vector256) AsDouble(Vector256) AsDouble(Vector256) AsDouble(Vector256) 會將 Vector256 重新解譯為 Double 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type Double. AsInt16(Vector256) AsInt16(Vector256) AsInt16(Vector256) AsInt16(Vector256) 會將 Vector256 重新解譯為 Int16 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type Int16. AsInt32(Vector256) AsInt32(Vector256) AsInt32(Vector256) AsInt32(Vector256) 會將 Vector256 重新解譯為 Int32 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type Int32. AsInt64(Vector256) AsInt64(Vector256) AsInt64(Vector256) AsInt64(Vector256) 會將 Vector256 重新解譯為 Int64 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type Int64. AsSByte(Vector256) AsSByte(Vector256) AsSByte(Vector256) AsSByte(Vector256) 會將 Vector256 重新解譯為 SByte 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type SByte. AsSingle(Vector256) AsSingle(Vector256) AsSingle(Vector256) AsSingle(Vector256) 會將 Vector256 重新解譯為 Single 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type Single. AsUInt16(Vector256) AsUInt16(Vector256) AsUInt16(Vector256) AsUInt16(Vector256) 會將 Vector256 重新解譯為 UInt16 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type UInt16. AsUInt32(Vector256) AsUInt32(Vector256) AsUInt32(Vector256) AsUInt32(Vector256) 會將 Vector256 重新解譯為 UInt32 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type UInt32. AsUInt64(Vector256) AsUInt64(Vector256) AsUInt64(Vector256) AsUInt64(Vector256) 會將 Vector256 重新解譯為 UInt64 類型新的 Vector256。Reinterprets a Vector256 as a new Vector256 of type UInt64. GetElement(Vector256, Int32) GetElement(Vector256, Int32) GetElement(Vector256, Int32) GetElement(Vector256, Int32) 取得位在指定索引處的元素。Gets the element at the specified index. GetLower(Vector256) GetLower(Vector256) GetLower(Vector256) GetLower(Vector256) 取得下層 128 位元值作為新的 Vector128。Gets the value of the lower 128-bits as a new Vector128. GetUpper(Vector256) GetUpper(Vector256) GetUpper(Vector256) GetUpper(Vector256) 取得上層 128 位元值作為新的 Vector128。Gets the value of the upper 128-bits as a new Vector128. ToScalar(Vector256) ToScalar(Vector256) ToScalar(Vector256) ToScalar(Vector256) 將指定向量轉換成包含第一個項目值的純量。Converts the given vector to a scalar containing the value of the first element. WithElement(Vector256, Int32, T) WithElement(Vector256, Int32, T) WithElement(Vector256, Int32, T) WithElement(Vector256, Int32, T) 建立新的 Vector256，其中指定索引處的項目設為指定值，且其餘項目設定為與指定向量中值的相同值。Creates a new Vector256 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. WithLower(Vector256, Vector128) WithLower(Vector256, Vector128) WithLower(Vector256, Vector128) WithLower(Vector256, Vector128) 建立新的 Vector256，其中下層 128 位元設定為指定值，且上層 128 位元則設定為與指定向量中值的相同值。Creates a new Vector256 with the lower 128-bits set to the specified value and the upper 128-bits set to the same value as that in the given vector. WithUpper(Vector256, Vector128) WithUpper(Vector256, Vector128) WithUpper(Vector256, Vector128) WithUpper(Vector256, Vector128) 建立新的 Vector256，其中上層 128 位元設定為指定值，且上層 128 位元則設定為與指定向量中值的相同值。Creates a new Vector256 with the upper 128-bits set to the specified value and the upper 128-bits set to the same value as that in the given vector.