ServiceProviderKeyedServiceExtensions 類別

定義

提供從 IServiceProvider取得服務的擴充方法。

public ref class ServiceProviderKeyedServiceExtensions abstract sealed
public static class ServiceProviderKeyedServiceExtensions
type ServiceProviderKeyedServiceExtensions = class
Public Module ServiceProviderKeyedServiceExtensions
繼承
ServiceProviderKeyedServiceExtensions

方法

GetKeyedService<T>(IServiceProvider, Object)

IServiceProvider取得 型別T的服務。

GetKeyedServices(IServiceProvider, Type, Object)

IServiceProvider取得 型serviceType別服務的列舉。

GetKeyedServices<T>(IServiceProvider, Object)

IServiceProvider取得 型T別服務的列舉。

GetRequiredKeyedService(IServiceProvider, Type, Object)

IServiceProvider取得 型別serviceType的服務。

GetRequiredKeyedService<T>(IServiceProvider, Object)

IServiceProvider取得 型別T的服務。

適用於