Retrieve a service from the context.
| C# | Visual Basic | Visual C++ |
public static Object Resolve( IComponentContext context, string serviceName, Type serviceType, IEnumerable<Parameter> parameters )
Public Shared Function Resolve ( _ context As IComponentContext, _ serviceName As String, _ serviceType As Type, _ parameters As IEnumerable(Of Parameter) _ ) As Object
public: static Object^ Resolve( IComponentContext^ context, String^ serviceName, Type^ serviceType, IEnumerable<Parameter^>^ parameters )
- context (IComponentContext)
- The context from which to resolve the service.
- serviceName (String)
- The service name.
- serviceType (Type)
- Type of the service.
- parameters (IEnumerable<(Of <(Parameter>)>))
- Parameters for the service.
The component instance that provides the service.
| Exception | Condition |
|---|---|
| ComponentNotRegisteredException | |
| DependencyResolutionException |