InstanceProducerVisualizeObjectGraph Method

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.0.0

public string VisualizeObjectGraph()

Return Value

Type: String
A string representation of the object graph.

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.
See Also