Share via


NameAttribute Class

Definition

Specifies the actual name of a connection property that may contain spaces, punctuation etc.

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