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.ObjectThe 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.
- visualizer
Type: System.Type
- visualizerObjectSource
Type: System.Type
replacementOK
Type: System.BooleanThis 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
VisualizerDevelopmentHost Class