ParenthesizePropertyNameAttribute 构造函数
定义
初始化 ParenthesizePropertyNameAttribute 类的新实例,该实例指示关联属性显示时不应带括号。Initializes a new instance of the ParenthesizePropertyNameAttribute class that indicates that the associated property should not be shown with parentheses.
重载
| ParenthesizePropertyNameAttribute() |
初始化 ParenthesizePropertyNameAttribute 类的新实例,该实例指示关联属性显示时不应带括号。Initializes a new instance of the ParenthesizePropertyNameAttribute class that indicates that the associated property should not be shown with parentheses. |
| ParenthesizePropertyNameAttribute(Boolean) |
通过使用指定值来指示该特性显示时是否带有括号,初始化 ParenthesizePropertyNameAttribute 类的新实例。Initializes a new instance of the ParenthesizePropertyNameAttribute class, using the specified value to indicate whether the attribute is displayed with parentheses. |
ParenthesizePropertyNameAttribute()
初始化 ParenthesizePropertyNameAttribute 类的新实例,该实例指示关联属性显示时不应带括号。Initializes a new instance of the ParenthesizePropertyNameAttribute class that indicates that the associated property should not be shown with parentheses.
public:
ParenthesizePropertyNameAttribute();
public ParenthesizePropertyNameAttribute ();
Public Sub New ()
适用于
ParenthesizePropertyNameAttribute(Boolean)
通过使用指定值来指示该特性显示时是否带有括号,初始化 ParenthesizePropertyNameAttribute 类的新实例。Initializes a new instance of the ParenthesizePropertyNameAttribute class, using the specified value to indicate whether the attribute is displayed with parentheses.
public:
ParenthesizePropertyNameAttribute(bool needParenthesis);
public ParenthesizePropertyNameAttribute (bool needParenthesis);
new System.ComponentModel.ParenthesizePropertyNameAttribute : bool -> System.ComponentModel.ParenthesizePropertyNameAttribute
Public Sub New (needParenthesis As Boolean)
参数
- needParenthesis
- Boolean
如果名称应括在括号中,则为 true;否则为 false。true if the name should be enclosed in parentheses; otherwise, false.