Retrieve a service from the context.
| C# | Visual Basic | Visual C++ |
public static Object Resolve( IComponentContext context, Service service, params Parameter[] parameters )
Public Shared Function Resolve ( _ context As IComponentContext, _ service As Service, _ ParamArray parameters As Parameter() _ ) As Object
public: static Object^ Resolve( IComponentContext^ context, Service^ service, ... array<Parameter^>^ parameters )
- context (IComponentContext)
- The context from which to resolve the service.
- service (Service)
- The service to resolve.
- parameters (array< Parameter >[]()[])
- Parameters for the service.
The component instance that provides the service.
| Exception | Condition |
|---|---|
| ComponentNotRegisteredException | |
| DependencyResolutionException |