Share via


VisualizerObjectSource Class

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.DebuggerVisualizers.VisualizerObjectSource

Namespace:  Microsoft.VisualStudio.DebuggerVisualizers
Assembly:  Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)

Syntax

'Declaration
Public Class VisualizerObjectSource
public class VisualizerObjectSource
public ref class VisualizerObjectSource
type VisualizerObjectSource =  class end
public class VisualizerObjectSource

The VisualizerObjectSource type exposes the following members.

Constructors

  Name Description
Public method VisualizerObjectSource

Top

Methods

  Name Description
Public method CreateReplacementObject
Public methodStatic member Deserialize
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetData
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Serialize
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TransferData

Top

Remarks

A visualizer is a small program that the Visual Studio debugger uses to display (visualize) an object of a specific data type in meaningful manner. To visualize an object, a visualizer uses code that runs in the debugger process (the debugger side) and code in the process being debugged (the debuggee side).

The debugger side and debuggee side communicate with each other by using VisualizerObjectSource and IVisualizerObjectProvider.

The debugee side uses the DebuggerVisualizerAttribute to specify a VisualizerObjectSource object for the debugger side. The debugger side has access to it indirectly through the IVisualizerObjectProvider interface.

Examples

[assembly: System.Diagnostics.DebuggerVisualizer(
   typeof(MyFirstVisualizer.DebuggerSide),
   // The object source is specified on the next line <<<<<
   typeof(VisualizerObjectSource),
   Target = typeof(System.String),
   Description = "My First Visualizer")]

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.

See Also

Reference

Microsoft.VisualStudio.DebuggerVisualizers Namespace