IKeyedService<TKey,TService> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a service which is identified by a key.
public interface IKeyedService<TKey,out TService> : IEquatable<TKey>
type IKeyedService<'Key, 'Service> = interface
interface IEquatable<'Key>
Public Interface IKeyedService(Of TKey, Out TService)
Implements IEquatable(Of TKey)
Type Parameters
- TKey
The key type.
- TService
The service type.
This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.- Derived
- Implements
-
IEquatable<TKey>
Properties
Key |
Gets the service key. |
Methods
GetService(IServiceProvider) |
Gets the service from the service provider. |