Share via


ServiceCollection.AddOnDemand Method

Definition

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)

public:
 void AddOnDemand(Type ^ serviceType, Type ^ registerAs);
public void AddOnDemand (Type serviceType, Type registerAs);
member this.AddOnDemand : Type * Type -> unit
Public Sub AddOnDemand (serviceType As Type, registerAs As Type)

Parameters

serviceType
Type
registerAs
Type

Applies to

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

Applies to