Share via


ChildServiceProvider.AddService(Type, Object) Method

Definition

Adds a service to the service provider.

public void AddService (Type serviceType, object service);
member this.AddService : Type * obj -> unit
Public Sub AddService (serviceType As Type, service As Object)

Parameters

serviceType
Type

The service type identity.

service
Object

The service instance.

Applies to