AzureAIInferenceChatClient.IChatClient.GetService(Type, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asks the IChatClient for an object of the specified type serviceType
.
virtual System::Object ^ Microsoft.Extensions.AI.IChatClient.GetService(Type ^ serviceType, System::Object ^ serviceKey) = Microsoft::Extensions::AI::IChatClient::GetService;
object? IChatClient.GetService(Type serviceType, object? serviceKey);
abstract member Microsoft.Extensions.AI.IChatClient.GetService : Type * obj -> obj
override this.Microsoft.Extensions.AI.IChatClient.GetService : Type * obj -> obj
Function GetService (serviceType As Type, serviceKey As Object) As Object Implements IChatClient.GetService
Parameters
- serviceType
- Type
The type of object being requested.
- serviceKey
- Object
An optional key that can be used to help identify the target service.
Returns
The found object, otherwise null
.
Implements
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.