ServiceCollection.AddOnDemand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddOnDemand(Type) | |
AddOnDemand(Type, Type) | |
AddOnDemand<TService,TRegisterAs>() | |
AddOnDemand<TService>() |
AddOnDemand(Type)
public:
void AddOnDemand(Type ^ serviceType);
public void AddOnDemand (Type serviceType);
member this.AddOnDemand : Type -> unit
Public Sub AddOnDemand (serviceType As Type)
Parameters
- serviceType
- Type
Applies to
AddOnDemand(Type, Type)
AddOnDemand<TService,TRegisterAs>()
public:
generic <typename TService, typename TRegisterAs>
void AddOnDemand();
public void AddOnDemand<TService,TRegisterAs> ();
member this.AddOnDemand : unit -> unit
Public Sub AddOnDemand(Of TService, TRegisterAs) ()
Type Parameters
- TService
- TRegisterAs
Applies to
AddOnDemand<TService>()
public:
generic <typename TService>
void AddOnDemand();
public void AddOnDemand<TService> ();
member this.AddOnDemand : unit -> unit
Public Sub AddOnDemand(Of TService) ()
Type Parameters
- TService