NameAttribute 类

定义

指定在连接字符串中指定的给定连接属性的字符串名称。

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
继承
NameAttribute
属性

构造函数

NameAttribute(String)

类构造函数。 NameAttribute使用指定的连接属性名称初始化类的新实例。

属性

Name

检索给定连接属性的字符串名称。

方法

Equals(Object)

返回一个值,该值指示当前对象实例的值是否等于指定的对象。

GetHashCode()

返回具有当前对象实例的代码。

适用于