ILifetimeScopeBeginLifetimeScope Method (Object) |
Begin a new nested scope. Component instances created via the new scope
will be disposed along with it.
Namespace:
Autofac
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax ILifetimeScope BeginLifetimeScope(
Object tag
)
Function BeginLifetimeScope (
tag As Object
) As ILifetimeScope
Parameters
- tag
- Type: SystemObject
The tag applied to the ILifetimeScope.
Return Value
Type:
ILifetimeScopeA new lifetime scope.
See Also