System.Diagnostics.DebuggerBrowsableAttribute Class

Determines if and how a member is displayed in the debugger variable windows. This class cannot be inherited.

See Also: DebuggerBrowsableAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.All)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class DebuggerBrowsableAttribute : Attribute

Remarks

Note:

In .NET Framework version 2.0, the System.Diagnostics.DebuggerBrowsableAttribute class is not supported by Visual Basic. Using C#, you can add expansions for custom data using the System.Diagnostics.DebuggerTypeProxyAttribute, System.Diagnostics.DebuggerDisplayAttribute, and System.Diagnostics.DebuggerBrowsableAttribute. Visual Basic supports the System.Diagnostics.DebuggerDisplayAttribute attribute but not the System.Diagnostics.DebuggerBrowsableAttribute attribute.

This attribute can be applied only as a single instance to properties and fields. It cannot be applied to assemblies.

The constructor for this attribute takes one of the System.Diagnostics.DebuggerBrowsableState enumeration values, which specifies one of the following states:

For an example of the use of this attribute and the System.Diagnostics.DebuggerDisplayAttribute and System.Diagnostics.DebuggerTypeProxyAttribute attributes, see the example provided for the System.Diagnostics.DebuggerDisplayAttribute class.

Requirements

Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0