KeyTypeAttribute Classe

Definizione

Consente di contrassegnare un membro come .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
Ereditarietà
KeyTypeAttribute
Attributi

Commenti

Può essere applicato solo per i membri dei tipi seguenti: Byte, UInt16, UInt32, UInt64

Costruttori

Nome Descrizione
KeyTypeAttribute()

Contrassegna il membro come KeyDataViewType.

KeyTypeAttribute(UInt64)

Contrassegna il membro come KeyDataViewType e specifica KeyDataViewType la cardinalità. Nel caso dell'attributo usato con tipi int, l'oggetto count deve essere impostato su un valore maggiore del valore massimo per tenere conto del conteggio a partire da 1 (0 è riservato per il KeyType mancante). Ad esempio, la cardinalità dell'intervallo da 0 a 9 è 10. Se i valori non rientrano nella cardinalità specificata, verranno mappati alla rappresentazione del valore mancante: 0.

Si applica a