Retrieve a service from the context.
| C# | Visual Basic | Visual C++ |
public static Object Resolve( IComponentContext context, Service service )
Public Shared Function Resolve ( _ context As IComponentContext, _ service As Service _ ) As Object
public: static Object^ Resolve( IComponentContext^ context, Service^ service )
- context (IComponentContext)
- The context from which to resolve the service.
- service (Service)
- The service to resolve.
The component instance that provides the service.
| Exception | Condition |
|---|---|
| ComponentNotRegisteredException | |
| DependencyResolutionException |