EditorBrowsableState 列舉

定義

指定編輯器中之屬性或方法的可瀏覽狀態。

public enum class EditorBrowsableState
public enum EditorBrowsableState
type EditorBrowsableState = 
Public Enum EditorBrowsableState
繼承
EditorBrowsableState

欄位

Advanced 2

屬性或方法是只有進階使用者能看到的功能。 編輯器可以顯示或是隱藏這樣的屬性。

Always 0

屬性或方法可以從編輯器中瀏覽。

Never 1

屬性或方法永遠無法從編輯器中瀏覽。

範例

如需使用 EditorBrowsableState 列舉值的範例,請參閱 類別中的範例程式 EditorBrowsableAttribute 代碼。

備註

視覺化設計工具會使用此類別來判斷使用者看得見的內容。 例如,Visual Studio中的 IntelliSense 引擎永遠不會顯示標示為 Never 的方法或屬性。 使用 EditorBrowsableAttribute 來指定 EditorBrowsableState 成員的 。

適用於

另請參閱