ContainerIServiceProviderGetService Method

Simple Injector
Gets the service object of the specified type.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 4.0.0
Syntax

Object IServiceProvider.GetService(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
An object that specifies the type of service object to get.

Return Value

Type: Object
A service object of type serviceType. -or- null if there is no service object of type serviceType.

Implements

IServiceProviderGetService(Type)
See Also

Reference