DiscoveryConversationsClient.Create 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 |
|---|---|
| Create(RequestContent, RequestContext) |
[Protocol Method] Creates a Conversation.
|
| Create(String, String, String, CancellationToken) |
Creates a Conversation. |
Create(RequestContent, RequestContext)
[Protocol Method] Creates a Conversation.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response Create(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member Create : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.Create : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function Create (content As RequestContent, Optional context As RequestContext = Nothing) As Response
Parameters
- content
- RequestContent
The content to send as the body of the request.
- 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
content is null.
Service returned a non-success status code.
Applies to
Create(String, String, String, CancellationToken)
Creates a Conversation.
public virtual Azure.Response<Azure.AI.Discovery.DiscoveryConversation> Create(string projectName, string investigationName = default, string displayName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Create : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryConversation>
override this.Create : string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.DiscoveryConversation>
Public Overridable Function Create (projectName As String, Optional investigationName As String = Nothing, Optional displayName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DiscoveryConversation)
Parameters
- projectName
- String
The name of the associated Project.
- investigationName
- String
The Name of the associated Investigation.
- displayName
- String
The title.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
projectName is null.
projectName is an empty string, and was expected to be non-empty.
Service returned a non-success status code.