ServiceProviderKeyedServiceExtensions 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于从 IServiceProvider获取服务的扩展方法。
public ref class ServiceProviderKeyedServiceExtensions abstract sealed
public static class ServiceProviderKeyedServiceExtensions
type ServiceProviderKeyedServiceExtensions = class
Public Module ServiceProviderKeyedServiceExtensions
- 继承
-
ServiceProviderKeyedServiceExtensions
方法
| GetKeyedService<T>(IServiceProvider, Object) |
从 IServiceProvider获取 类型的 |
| GetKeyedServices(IServiceProvider, Type, Object) |
从 IServiceProvider获取 类型的 |
| GetKeyedServices<T>(IServiceProvider, Object) |
从 IServiceProvider获取 类型的 |
| GetRequiredKeyedService(IServiceProvider, Type, Object) |
从 IServiceProvider获取 类型的 |
| GetRequiredKeyedService<T>(IServiceProvider, Object) |
从 IServiceProvider获取 类型的 |