EditorBrowsableState 枚举
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从编辑器内指定属性或方法的可浏览状态。
public enum class EditorBrowsableState
C#
public enum EditorBrowsableState
type EditorBrowsableState =
Public Enum EditorBrowsableState
- 继承
名称 | 值 | 说明 |
---|---|---|
Advanced | 2 | 该属性或方法是只有高级用户才可以看到的功能。 编辑器可以显示或隐藏这些属性。 |
Always | 0 | 该属性或方法在编辑器中始终是可浏览的。 |
Never | 1 | 该属性或方法始终不能在编辑器中浏览。 |
有关使用 EditorBrowsableState 枚举器的示例,请参阅 类中的 EditorBrowsableAttribute 示例代码。
可视化设计器使用此类来确定用户可见的内容。 例如,Visual Studio 中的 IntelliSense 引擎永远不会显示标记为 EditorBrowsableState.Never的方法或属性。 使用 EditorBrowsableAttribute 指定 EditorBrowsableState 成员的 。
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |