MergablePropertyAttribute.Default 字段

定义

指定默认值 Yes,它可以与“属性”窗口中属于其他对象的属性组合。Specifies the default value, which is Yes, that is a property can be combined with properties belonging to other objects in a Properties window. static 字段是只读的。This static field is read-only.

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

字段值

MergablePropertyAttribute

注解

使用此值标记属性时,此属性设置为常量成员 NoWhen you mark a property with this value, this attribute is set to the constant member No. 因此,当您要检查您的代码中是否将该属性设置为此值时,您必须将属性指定为 MergablePropertyAttribute.NoTherefore, when you want to check whether the attribute is set to this value in your code, you must specify the attribute as MergablePropertyAttribute.No.

适用于

另请参阅