KeyTypeAttribute 建構函式

定義

多載

KeyTypeAttribute()

將成員標示為 KeyDataViewType

KeyTypeAttribute(UInt64)

將成員標示為 KeyDataViewType ,並指定 KeyDataViewType 基數。 如果是與 int 類型搭配使用的屬性, count 應該設定為一個以上的最大值,以考慮從 1 開始的計數, (0 會保留給遺漏的 KeyType) 。 例如 0-9 範圍的基數是 10。 如果值不在指定的基數之外,則會對應至遺漏的值標記法:0。

KeyTypeAttribute()

將成員標示為 KeyDataViewType

public KeyTypeAttribute ();
Public Sub New ()

備註

KeyDataViewType 基數會是成員類型的最大合法值。

適用於

KeyTypeAttribute(UInt64)

將成員標示為 KeyDataViewType ,並指定 KeyDataViewType 基數。 如果是與 int 類型搭配使用的屬性, count 應該設定為一個以上的最大值,以考慮從 1 開始的計數, (0 會保留給遺漏的 KeyType) 。 例如 0-9 範圍的基數是 10。 如果值不在指定的基數之外,則會對應至遺漏的值標記法:0。

public KeyTypeAttribute (ulong count);
new Microsoft.ML.Data.KeyTypeAttribute : uint64 -> Microsoft.ML.Data.KeyTypeAttribute
Public Sub New (count As ULong)

參數

count
UInt64

KeyDataViewType 基數。

適用於