KeyAttribute Class

Definition

Denotes the key property or properties of an entity.

[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
Inheritance
KeyAttribute
Attributes

Constructors

KeyAttribute(String)

Initializes a new instance of the KeyAttribute class.

KeyAttribute(String[])

Initializes a new instance of the KeyAttribute class.

Properties

KeyNames

Gets the names of key attributes.

Applies to