NameAttribute Class

Definition

Specifies the string literal name of a given connection property when specified in a connection string.

public ref class NameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property)]
public sealed class NameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property)>]
type NameAttribute = class
    inherit Attribute
Public NotInheritable Class NameAttribute
Inherits Attribute
Inheritance
NameAttribute
Attributes

Constructors

NameAttribute(String)

Initializes a new instance of NameAttribute, specifying the connection property name.

Properties

Name

Gets the string literal name of a given connection property.

Applies to