ISupportRequiredService インターフェイス

定義

GetRequiredService<T>(IServiceProvider)でサポートされている場合にサービスを解決するためにIServiceProviderによって使用される省略可能なコントラクト。

public interface class ISupportRequiredService
public interface ISupportRequiredService
type ISupportRequiredService = interface
Public Interface ISupportRequiredService

メソッド

名前 説明
GetRequiredService(Type)

このインターフェイスを実装するIServiceProviderからserviceType型のサービスを取得します。

適用対象