Autofac .NET Inversion of Control Container
Resolve Method (context, serviceName, serviceType, parameters)
NamespacesAutofacResolutionExtensionsResolve(IComponentContext, String, Type, IEnumerable<(Of <(Parameter>)>))
Retrieve a service from the context.
Declaration Syntax
C#Visual BasicVisual 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
)
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.
Return Value
The component instance that provides the service.
Exceptions

Assembly: Autofac (Module: Autofac) Version: 2.1.13.813 (2.1.13.813)