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)

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