KeyTypeAttribute Class

Definition

Allow member to be marked as a 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
Inheritance
KeyTypeAttribute
Attributes

Remarks

Can be applied only for member of following types: Byte, UInt16, UInt32, UInt64

Constructors

KeyTypeAttribute()

Marks member as KeyDataViewType.

KeyTypeAttribute(UInt64)

Marks member as KeyDataViewType and specifies KeyDataViewType cardinality. In case of the attribute being used with int types, the count should be set to one more than the maximum value to account for counting starting at 1 (0 is reserved for the missing KeyType). E.g the cardinality of the 0-9 range is 10. If the values are outside of the specified cardinality they will be mapped to the missing value representation: 0.

Applies to