System.Diagnostics


.NET Framework Class Library
DebuggerVisualizerAttribute Class

Note: This class is new in the .NET Framework version 2.0.

Specifies that the type has a visualizer. This class cannot be inherited.

Namespace: System.Diagnostics
Assembly: mscorlib (in mscorlib.dll)

Syntax

Visual Basic (Declaration)
<ComVisibleAttribute(True)> _
<AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Class Or AttributeTargets.Struct, AllowMultiple:=True)> _
Public NotInheritable Class DebuggerVisualizerAttribute
    Inherits Attribute
Visual Basic (Usage)
Dim instance As DebuggerVisualizerAttribute
C#
[ComVisibleAttribute(true)] 
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple=true)] 
public sealed class DebuggerVisualizerAttribute : Attribute
C++
[ComVisibleAttribute(true)] 
[AttributeUsageAttribute(AttributeTargets::Assembly|AttributeTargets::Class|AttributeTargets::Struct, AllowMultiple=true)] 
public ref class DebuggerVisualizerAttribute sealed : public Attribute
J#
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple=true) */ 
public final class DebuggerVisualizerAttribute extends Attribute
JScript
ComVisibleAttribute(true) 
AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple=true) 
public final class DebuggerVisualizerAttribute extends Attribute
Remarks

This attribute can be used at the assembly level. Typically the attribute constructors take two types. The two types are a visualizer and a visualizer object source, specified as types or as fully qualified assembly type names. The second option is provided so that the visualizer assembly does not need to be referenced by the assembly containing the DebuggerVisualizerAttribute. This allows a component creator to ship the visualizer in a DLL to be called only at debug time. The Description property specifies the visualizer description that appears in the drop-down box. The target parameters specify the type that is the target of the visualizer.

Note   Visualizer and visualizer object source implementation is dependent upon the hosting debugger. For information on creating a visualizer for Visual Studio 2005, see How to: Write a Visualizer.

Inheritance Hierarchy

System.Object
   System.Attribute
    System.Diagnostics.DebuggerVisualizerAttribute
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Framework

Supported in: 2.0
See Also

Tags :


Page view tracker