EditorBrowsableState 枚举

定义

在编辑器中指定属性或方法的可浏览状态。Specifies the browsable state of a property or method from within an editor.

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

字段

Advanced 2

该属性或方法是只有高级用户才可以看到的功能。The property or method is a feature that only advanced users should see. 编辑器可以显示或隐藏这些属性。An editor can either show or hide such properties.

Always 0

该属性或方法在编辑器中始终是可浏览的。The property or method is always browsable from within an editor.

Never 1

该属性或方法始终不能在编辑器中浏览。The property or method is never browsable from within an editor.

示例

有关使用EditorBrowsableState枚举器的示例, 请参阅类中EditorBrowsableAttribute的示例代码。For an example of using the EditorBrowsableState enumerator, see the sample code in EditorBrowsableAttribute class.

注解

可视化设计器使用此类来确定对用户可见的内容。This class is used by a visual designer to determine what is visible to the user. 例如, Visual Studio 中的 IntelliSense 引擎从不显示标记为 "从不" 的方法或属性。For example, the IntelliSense engine in Visual Studio never shows methods or properties that are marked as Never. 使用EditorBrowsableAttribute为成员EditorBrowsableState指定。Use EditorBrowsableAttribute to specify the EditorBrowsableState for a member.

适用于

另请参阅