Interface IKeyedServiceProvider
Assembly: Microsoft.Extensions.DependencyInjection.Abstractions.dll
Syntax
public interface IKeyedServiceProvider : IServiceProvider
Methods
GetKeyedService(Type, object?)
Declaration
object? GetKeyedService(Type serviceType, object? serviceKey)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
object |
serviceKey |
|
Returns
GetRequiredKeyedService(Type, object?)
Declaration
object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
object |
serviceKey |
|
Returns
Extension Methods