ScopedLifestyle Constructor (String)

Simple Injector
Initializes a new instance of the ScopedLifestyle class.

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

protected ScopedLifestyle(
	string name
)

Parameters

name
Type: SystemString
The user friendly name of this lifestyle.
Exceptions

ExceptionCondition
ArgumentExceptionThrown when name is null (Nothing in VB) or an empty string.
See Also

Reference