KeyTypeAttribute クラス

定義

メンバーを .. として KeyDataViewTypeマークすることを許可します。

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class KeyTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type KeyTypeAttribute = class
    inherit Attribute
Public NotInheritable Class KeyTypeAttribute
Inherits Attribute
継承
KeyTypeAttribute
属性

注釈

次の型のメンバーにのみ適用できます。 ByteUInt16UInt32UInt64

コンストラクター

KeyTypeAttribute()

メンバーを . として KeyDataViewTypeマークします。

KeyTypeAttribute(UInt64)

メンバーをカーディナリティとして KeyDataViewType マークし、カーディナリティを指定します KeyDataViewType 。 int 型で使用されている属性の場合は、 count 1 から始まるカウントを考慮するために最大値より 1 つ多く設定する必要があります (0 は、不足している KeyType 用に予約されています)。 たとえば、0 から 9 の範囲のカーディナリティは 10 です。 指定したカーディナリティの範囲外の値は、欠損値表現 0 にマップされます。

適用対象