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

获取给定连接属性的字符串文本名称。

适用于