CognitiveServicesAccountResource.GetRaiTopicAsync Method

Definition

Gets the specified custom topic associated with the Azure OpenAI account.

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

Parameters

raiTopicName
String

The name of the Rai Topic associated with the Cognitive Services Account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

raiTopicName is null.

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

Applies to