ImmutableObjectAttribute(Boolean) 构造函数

定义

初始化 ImmutableObjectAttribute 类的新实例。

public:
 ImmutableObjectAttribute(bool immutable);
public ImmutableObjectAttribute(bool immutable);
new System.ComponentModel.ImmutableObjectAttribute : bool -> System.ComponentModel.ImmutableObjectAttribute
Public Sub New (immutable As Boolean)

参数

immutable
Boolean

true 如果对象不可变,则为 ;否则,为 false.

注解

此属性通常用于 “属性” 窗口中,以确定是否将可扩展对象呈现为只读对象。

适用于