共用方式為


KeyDataViewType 建構函式

定義

多載

KeyDataViewType(Type, Int32)

初始化 KeyDataViewType 類別的新執行個體。 這與假設較通用 KeyDataViewType(Type, UInt64) 的建構函式不同,方法是採用 Int32 for count ,以更自然地協助使用索引鍵值做為陣列或某種形式清單的列舉最常見的案例。

KeyDataViewType(Type, UInt64)

初始化 KeyDataViewType 類別的新執行個體。

KeyDataViewType(Type, Int32)

來源:
KeyDataViewType.cs
來源:
KeyDataViewType.cs
來源:
KeyDataViewType.cs

初始化 KeyDataViewType 類別的新執行個體。 這與假設較通用 KeyDataViewType(Type, UInt64) 的建構函式不同,方法是採用 Int32 for count ,以更自然地協助使用索引鍵值做為陣列或某種形式清單的列舉最常見的案例。

public KeyDataViewType(Type type, int count);
new Microsoft.ML.Data.KeyDataViewType : Type * int -> Microsoft.ML.Data.KeyDataViewType
Public Sub New (type As Type, count As Integer)

參數

type
Type

基礎資料表示類型。 應該是 Byte 、、 UInt16UInt32 (最常見的選擇) 或 UInt64

count
Int32

基礎集的基數。 這不能超過表示類型的相關聯最大值。 例如,如果 typeUInt32 ,則不能超過 MaxValue

適用於

KeyDataViewType(Type, UInt64)

來源:
KeyDataViewType.cs
來源:
KeyDataViewType.cs
來源:
KeyDataViewType.cs

初始化 KeyDataViewType 類別的新執行個體。

public KeyDataViewType(Type type, ulong count);
new Microsoft.ML.Data.KeyDataViewType : Type * uint64 -> Microsoft.ML.Data.KeyDataViewType
Public Sub New (type As Type, count As ULong)

參數

type
Type

基礎資料表示類型。 應該是 Byte 、、 UInt16UInt32 (最常見的選擇) 或 UInt64

count
UInt64

基礎集的基數。 這不能超過表示類型的相關聯最大值。 例如,如果 typeUInt32 ,則不能超過 MaxValue

適用於