Compartir a través de


VisualizerDevelopmentHost Constructor (Object, Type, Type, Boolean)

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

Syntax

'Declaration
Public Sub New ( _
    objectToVisualize As Object, _
    visualizer As Type, _
    visualizerObjectSource As Type, _
    replacementOK As Boolean _
)
public VisualizerDevelopmentHost(
    Object objectToVisualize,
    Type visualizer,
    Type visualizerObjectSource,
    bool replacementOK
)
public:
VisualizerDevelopmentHost(
    Object^ objectToVisualize, 
    Type^ visualizer, 
    Type^ visualizerObjectSource, 
    bool replacementOK
)
new : 
        objectToVisualize:Object * 
        visualizer:Type * 
        visualizerObjectSource:Type * 
        replacementOK:bool -> VisualizerDevelopmentHost
public function VisualizerDevelopmentHost(
    objectToVisualize : Object, 
    visualizer : Type, 
    visualizerObjectSource : Type, 
    replacementOK : boolean
)

Parameters

  • objectToVisualize
    Type: System.Object

    The data object you want to show in the visualizer. If you are testing a String visualizer, for example, this parameter would be a String that you want to show in the visualizer.

  • replacementOK
    Type: System.Boolean

    This Boolean value determines the visualizer can replace (edit) the data object. Setting this value to false tells the visualizer host to treat the data object as read-only.

Remarks

This constructor allows error-checking code in your visualizer to be properly exercised. It corresponds to IsObjectReplaceable.

.NET Framework Security

See Also

Reference

VisualizerDevelopmentHost Class

VisualizerDevelopmentHost Overload

Microsoft.VisualStudio.DebuggerVisualizers Namespace