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
)
Public Shared Function ForNamed(Of TService) (
serviceName As String
) As ResolvedParameter
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:
ResolvedParameterA configured
ResolvedParameter instance.
Remarks See Also