Gets an instance of the given serviceType.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Parameters
- serviceType
- Type: SystemType
Type of object requested.
Return Value
Type: ObjectThe requested service instance.
Exceptions
Exception | Condition |
---|---|
ActivationException | Thrown when there are errors resolving the service instance. |
See Also