OpenTelemetryHostedFileClient.GetService(Type, Object) Méthode

Définition

Demande l’objet IHostedFileClient du type serviceTypespécifié.

public override object? GetService(Type serviceType, object? serviceKey = default);
override this.GetService : Type * obj -> obj
Public Overrides Function GetService (serviceType As Type, Optional serviceKey As Object = Nothing) As Object

Paramètres

serviceType
Type

Type d’objet demandé.

serviceKey
Object

Clé facultative qui peut être utilisée pour identifier le service cible.

Retours

Objet trouvé, sinon null.

S’applique à