ImmutableObjectAttribute 类

指定对象没有可以被编辑的子属性。无法继承此类。

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

语法

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

备注

通常在“属性”窗口中使用此属性来确定是否将可扩展对象呈现为只读。同样地,该属性只在设计时使用。

有关使用属性的更多信息,请参见 利用属性扩展元数据

继承层次结构

System.Object
   System.Attribute
    System.ComponentModel.ImmutableObjectAttribute

线程安全

此类型的任何公共静态(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

请参见

参考

ImmutableObjectAttribute 成员
System.ComponentModel 命名空间