ParenthesizePropertyNameAttribute.NeedParenthesis 属性

获取一个值,该值指示在“属性”窗口中显示属性的名称时是否带有括号。

**命名空间:**System.ComponentModel
**程序集:**System(在 system.dll 中)

语法

声明
Public ReadOnly Property NeedParenthesis As Boolean
用法
Dim instance As ParenthesizePropertyNameAttribute
Dim value As Boolean

value = instance.NeedParenthesis
public bool NeedParenthesis { get; }
public:
property bool NeedParenthesis {
    bool get ();
}
/** @property */
public boolean get_NeedParenthesis ()
public function get NeedParenthesis () : boolean

属性值

如果属性显示时带有括号,则为 true;否则为 false

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

ParenthesizePropertyNameAttribute 类
ParenthesizePropertyNameAttribute 成员
System.ComponentModel 命名空间