NameAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定在连接字符串中指定的给定连接属性的字符串名称。
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() |
返回具有当前对象实例的代码。 |