Share via


ParenthesizePropertyNameAttribute 类

指示关联属性的名称在“属性”窗口中显示时是否带有括号。无法继承此类。

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

语法

声明
<AttributeUsageAttribute(AttributeTargets.All)> _
Public NotInheritable Class ParenthesizePropertyNameAttribute
    Inherits Attribute
用法
Dim instance As ParenthesizePropertyNameAttribute
[AttributeUsageAttribute(AttributeTargets.All)] 
public sealed class ParenthesizePropertyNameAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::All)] 
public ref class ParenthesizePropertyNameAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.All) */ 
public final class ParenthesizePropertyNameAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.All) 
public final class ParenthesizePropertyNameAttribute extends Attribute

备注

NeedParenthesis 值为 trueParenthesizePropertyNameAttribute 向“属性”窗口指示在显示关联属性时其名称两侧应带有括号。“属性”窗口将名称中带有括号的属性以字母顺序模式显示在列表顶部附近,如果“属性”窗口处于分类模式,则显示在其类别顶部附近。

继承层次结构

System.Object
   System.Attribute
    System.ComponentModel.ParenthesizePropertyNameAttribute

线程安全

此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。

平台

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 成员
System.ComponentModel 命名空间