OpenAIRealtimeClient.IRealtimeClient.GetService(Type, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Demande l’objet IRealtimeClient du type serviceTypespécifié.
virtual System::Object ^ Microsoft.Extensions.AI.IRealtimeClient.GetService(Type ^ serviceType, System::Object ^ serviceKey) = Microsoft::Extensions::AI::IRealtimeClient::GetService;
object? IRealtimeClient.GetService(Type serviceType, object? serviceKey);
abstract member Microsoft.Extensions.AI.IRealtimeClient.GetService : Type * obj -> obj
override this.Microsoft.Extensions.AI.IRealtimeClient.GetService : Type * obj -> obj
Function GetService (serviceType As Type, serviceKey As Object) As Object Implements IRealtimeClient.GetService
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.