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
)
Public Function ChangeType (
newType As Type
) As Service
Parameters
- newType
- Type: SystemType
The new service type.
Return Value
Type:
ServiceA new service with the service type.
Implements
IServiceWithTypeChangeType(Type)See Also