KeyTypeAttribute Classe

Definizione

Consenti di contrassegnare il KeyDataViewTypemembro come .

[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
Ereditarietà
KeyTypeAttribute
Attributi

Commenti

Può essere applicato solo per i tipi seguenti: Byte, , UInt16, UInt32UInt64

Costruttori

KeyTypeAttribute()

Contrassegna il membro come KeyDataViewType.

KeyTypeAttribute(UInt64)

Contrassegna KeyDataViewType il membro come KeyDataViewType e specifica la cardinalità. Nel caso dell'attributo usato con tipi int, è count necessario impostare su uno più del valore massimo per il conteggio a partire da 1 (0 è riservato per keytype mancante). Ad esempio, la cardinalità dell'intervallo 0-9 è 10. Se i valori sono esterni alla cardinalità specificata, verranno mappati alla rappresentazione del valore mancante: 0.

Si applica a