This documentation is archived and is not being maintained.

ImmutableObjectAttribute Class

Specifies that an object has no subproperties capable of being edited.

For a list of all members of this type, see ImmutableObjectAttribute Members.

System.Object
   System.Attribute
      System.ComponentModel.ImmutableObjectAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.All)>
NotInheritable Public Class ImmutableObjectAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.All)]
public sealed class ImmutableObjectAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::All)]
public __gc __sealed class ImmutableObjectAttribute : public
   Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.All)
class ImmutableObjectAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

This attribute is typically used in the Properties window to determine whether to render an expandable object as read-only. As such, this property is used only at design time.

For more information about using attributes, see Extending Metadata Using Attributes.

Requirements

Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

ImmutableObjectAttribute Members | System.ComponentModel Namespace

Show: