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: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
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