Language

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
属性

注釈

Byte、UInt16、UInt32、UInt64

コンストラクター

名前 説明
KeyTypeAttribute()

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

KeyTypeAttribute(UInt64)

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

適用対象