EditorBrowsableState 枚举

定义

从编辑器内指定属性或方法的可浏览状态。

C#
public enum EditorBrowsableState
继承
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

另请参阅