BrowsableAttribute.No 欄位

定義

指定在設計階段不可以修改的屬性或事件。Specifies that a property or event cannot be modified at design time. 這個 static 欄位是唯讀的。This static field is read-only.

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

欄位值

BrowsableAttribute

備註

當您使用值的函式 BrowsableAttribute 來標記屬性時 false ,這個屬性會設定為常數成員 NoWhen you mark a property with the BrowsableAttribute constructor of the value false, this attribute is set to the constant member No. 因此,當您在程式碼中檢查屬性是否設定為這個值時,您必須將屬性指定為 BrowsableAttribute.NoTherefore, when you check whether the attribute is set to this value in your code, you must specify the attribute as BrowsableAttribute.No.

適用於

另請參閱