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 usługę IServiceProvider.

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

Metody

GetRequiredService(Type)

Pobiera usługę typu serviceType z IServiceProvider obiektu , który implementuje ten interfejs.

Dotyczy