Click or drag to resize

IServiceWithTypeChangeType Method

Return a new service of the same kind, but carrying newType as the ServiceType.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
Syntax
Service ChangeType(
	Type newType
)

Parameters

newType
Type: SystemType
The new service type.

Return Value

Type: Service
A new service with the service type.
See Also