KeyDataViewType 构造函数

定义

重载

KeyDataViewType(Type, Int32)

初始化 KeyDataViewType 类的新实例。 这与假设的更通用 KeyDataViewType(Type, UInt64) 的构造函数不同,它采用 Int32count,以更自然地促进将键值用作对某种形式的数组或列表的枚举的最常见情况。

KeyDataViewType(Type, UInt64)

初始化 KeyDataViewType 类的新实例。

KeyDataViewType(Type, Int32)

Source:
KeyDataViewType.cs
Source:
KeyDataViewType.cs
Source:
KeyDataViewType.cs

初始化 KeyDataViewType 类的新实例。 这与假设的更通用 KeyDataViewType(Type, UInt64) 的构造函数不同,它采用 Int32count,以更自然地促进将键值用作对某种形式的数组或列表的枚举的最常见情况。

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

基础表示形式类型。 应为 、、 UInt16UInt32 () 或 UInt64的最常见选择之一Byte

count
Int32

基础集的基数。 这不能超过表示形式类型的关联最大值。 例如,如果 typeUInt32,则不能超过 MaxValue

适用于

KeyDataViewType(Type, UInt64)

Source:
KeyDataViewType.cs
Source:
KeyDataViewType.cs
Source:
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

基础表示形式类型。 应为 、、 UInt16UInt32 () 或 UInt64的最常见选择之一Byte

count
UInt64

基础集的基数。 这不能超过表示形式类型的关联最大值。 例如,如果 typeUInt32,则不能超过 MaxValue

适用于