Interface IServiceProvider
- Namespace
- System
- Assembly
- nanoFramework.DependencyInjection.dll
Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
public interface IServiceProvider
- Extension Methods
Methods
GetService(Type)
Gets the service object of the specified type.
object GetService(Type serviceType)
Parameters
serviceType
TypeAn object that specifies the type of service object to get.
Returns
- object
A service object of type
serviceType
. -or- null if there is no service object of typeserviceType
.
GetService(Type[])
Gets the service objects of the specified type.
object[] GetService(Type[] serviceType)
Parameters
serviceType
Type[]An array object that specifies the type of service object to get.
Returns
- object[]
A service object array of type
serviceType
. -or- array empty if there is no service object of typeserviceType
.