Click or drag to resize

ResolvedParameterForNamedTService Method

Construct a ResolvedParameter that will match parameters of type TService and resolve for those parameters an implementation registered with the name serviceName.

Namespace:  Autofac.Core
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public static ResolvedParameter ForNamed<TService>(
	string serviceName
)

Parameters

serviceName
Type: SystemString
The name of the matching service to resolve.

Type Parameters

TService
The type of the parameter to match.

Return Value

Type: ResolvedParameter
A configured ResolvedParameter instance.
Remarks