Click or drag to resize

LifetimeScopeBeginLifetimeScope Method (Object)

Begin a new tagged sub-scope. Instances created via the sub-scope will be disposed along with it.

Namespace:  Autofac.Core.Lifetime
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public ILifetimeScope BeginLifetimeScope(
	Object tag
)

Parameters

tag
Type: SystemObject
The tag applied to the ILifetimeScope.

Return Value

Type: ILifetimeScope
A new lifetime scope.

Implements

ILifetimeScopeBeginLifetimeScope(Object)
See Also