Поделиться через


KeyAttribute Класс

Определение

Обозначает ключевое свойство или свойства сущности.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
public sealed class KeyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
type KeyAttribute = class
    inherit Attribute
Public NotInheritable Class KeyAttribute
Inherits Attribute
Наследование
KeyAttribute
Атрибуты

Конструкторы

KeyAttribute(String)

Инициализирует новый экземпляр класса KeyAttribute.

KeyAttribute(String[])

Инициализирует новый экземпляр класса KeyAttribute.

Свойства

KeyNames

Возвращает имена ключевых атрибутов.

Применяется к