ReadOnlyAttribute.Default 字段

定义

指定默认值 ReadOnlyAttributeNo 即此属性绑定到的属性为读/写)。 此 static 字段为只读。

public: static initonly System::ComponentModel::ReadOnlyAttribute ^ Default;
public static readonly System.ComponentModel.ReadOnlyAttribute Default;
 staticval mutable Default : System.ComponentModel.ReadOnlyAttribute
Public Shared ReadOnly Default As ReadOnlyAttribute 

字段值

注解

使用此值标记属性时,此属性设置为常量成员 No。 因此,如果要检查属性是否在代码中设置为此值,则必须将属性指定为 ReadOnlyAttribute.No

适用于

另请参阅