CognitiveServicesAccountResource.GetRaiToolLabelAsync Method

Definition

Gets the specified RAI Tool Label associated with the Azure OpenAI account.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiToolLabelResource>> GetRaiToolLabelAsync(string raiToolConnectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRaiToolLabelAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiToolLabelResource>>
override this.GetRaiToolLabelAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.RaiToolLabelResource>>
Public Overridable Function GetRaiToolLabelAsync (raiToolConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RaiToolLabelResource))

Parameters

raiToolConnectionName
String

The name of the Rai Tool Label.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

raiToolConnectionName is null.

raiToolConnectionName is an empty string, and was expected to be non-empty.

Applies to