ResolvedParameterForKeyedTService Method |
Construct a
ResolvedParameter that will match parameters of type
TService and resolve for those parameters an implementation
registered with the key
serviceKey.
Namespace:
Autofac.Core
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public static ResolvedParameter ForKeyed<TService>(
Object serviceKey
)
Public Shared Function ForKeyed(Of TService) (
serviceKey As Object
) As ResolvedParameter
Parameters
- serviceKey
- Type: SystemObject
The key of the matching service to resolve.
Type Parameters
- TService
- The type of the parameter to match.
Return Value
Type:
ResolvedParameterA configured
ResolvedParameter instance.
See Also