InstanceProducerVisualizeObjectGraph Method (VisualizationOptions)

Simple Injector
Builds a string representation of the object graph with the current instance as root of the graph.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.6.0
Syntax

public string VisualizeObjectGraph(
	VisualizationOptions options
)

Parameters

options
Type: SimpleInjectorVisualizationOptions
The various visualization options for building a string representation of the object graph.

Return Value

Type: String
A string representation of the object graph.
Exceptions

ExceptionCondition
InvalidOperationExceptionThrown when this method is called before GetInstance or BuildExpression have been called. These calls can be done directly and explicitly by the user on this instance, indirectly by calling GetInstance or BuildExpression on an instance that depends on this instance, or by calling Verify on the container.
NullReferenceExceptionThrown when options is null.
See Also

Reference