DiscoveryConversationsClient.Get 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.
Overloads
| Name | Description |
|---|---|
| Get(String, CancellationToken) |
Fetch a Conversation by name. |
| Get(String, RequestContext) |
[Protocol Method] Fetch a Conversation by name.
|
Get(String, CancellationToken)
Fetch a Conversation by name.
public virtual Azure.Response<Azure.AI.Discovery.DiscoveryConversation> Get(string conversationName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryConversation>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryConversation>
Public Overridable Function Get (conversationName As String, Optional cancellationToken As CancellationToken = Nothing) As 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
Get(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.
public virtual Azure.Response Get(string conversationName, Azure.RequestContext context);
abstract member Get : string * Azure.RequestContext -> Azure.Response
override this.Get : string * Azure.RequestContext -> Azure.Response
Public Overridable Function Get (conversationName As String, context As RequestContext) As 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.