KeyTypeAttribute Classe

Definição

Permitir que o membro seja marcado como um 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
Herança
KeyTypeAttribute
Atributos

Comentários

Pode ser aplicado somente para membros dos seguintes tipos: Byte, , UInt16, , UInt32UInt64

Construtores

KeyTypeAttribute()

Marca membro como KeyDataViewType.

KeyTypeAttribute(UInt64)

Marca membro como KeyDataViewType e especifica KeyDataViewType cardinalidade. No caso do atributo que está sendo usado com tipos int, o count valor deve ser definido como um a mais do que o valor máximo a ser contabilizado para a contagem a partir de 1 (0 é reservado para o KeyType ausente). Por exemplo, a cardinalidade do intervalo de 0 a 9 é 10. Se os valores estiverem fora da cardinalidade especificada, eles serão mapeados para a representação de valor ausente: 0.

Aplica-se a