Język

ISupportRequiredService Interfejs

Definicja

Opcjonalny kontrakt używany przez GetRequiredService<T>(IServiceProvider) program do rozwiązywania problemów z usługami, jeśli jest obsługiwany przez IServiceProviderusługę .

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

Metody

Nazwisko Opis
GetRequiredService(Type)

Pobiera usługę typu serviceType z implementowania tego interfejsu IServiceProvider .

Dotyczy