DiscoveryConversationsClient.GetAsync Method

Definition

Overloads

Name Description
GetAsync(String, RequestContext)

[Protocol Method] Fetch a Conversation by name.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetAsync(String, CancellationToken)

Fetch a Conversation by name.

GetAsync(String, RequestContext)

Source:
DiscoveryConversationsClient.cs

[Protocol Method] Fetch a Conversation by name.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetAsync(string conversationName, Azure.RequestContext context);
abstract member GetAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetAsync (conversationName As String, context As RequestContext) As Task(Of Response)

Parameters

conversationName
String

The conversation name.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

conversationName is null.

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

Service returned a non-success status code.

Applies to

GetAsync(String, CancellationToken)

Source:
DiscoveryConversationsClient.cs

Fetch a Conversation by name.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryConversation>> GetAsync(string conversationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryConversation>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Discovery.DiscoveryConversation>>
Public Overridable Function GetAsync (conversationName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiscoveryConversation))

Parameters

conversationName
String

The conversation name.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

conversationName is null.

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

Service returned a non-success status code.

Applies to