Click or drag to resize

KeyedServiceChangeType 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
public Service ChangeType(
	Type newType
)

Parameters

newType
Type: SystemType
The new service type.

Return Value

Type: Service
A new service with the service type.

Implements

IServiceWithTypeChangeType(Type)
See Also