ContainerOptionsResolveUnregisteredConcreteTypes Property

Simple Injector
Gets or sets a value indicating whether the container should resolve unregistered concrete types. The default value is
true
. Consider changing the value to
false
to prevent accidental creation of types you haven't registered explicitly.

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

public bool ResolveUnregisteredConcreteTypes { get; set; }

Property Value

Type: Boolean
The value indicating whether the container should resolve unregistered concrete types.
Exceptions

ExceptionCondition
InvalidOperationException Thrown when this container instance is locked and can not be altered.
See Also

Reference