NameAttribute Class

Definition

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

C++
public ref class NameAttribute sealed : Attribute
Inheritance
NameAttribute
Attributes

Constructors

NameAttribute(String)

Class constructor. Initializes a new instance of the NameAttribute class with the specified connection property name.

Properties

Name

Retrieves the string literal name of a given connection property.

Methods

Equals(Object)

Returns a value indicating whether the value of the current object instance is equal to a specified object.

GetHashCode()

Returns the has code for the current object instance.

Applies to

Produit Versions
Visual Studio SDK 2017, 2019, 2022