ChatClient.CreateChatThreadAsync 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
CreateChatThreadAsync(CreateChatThreadOptions, CancellationToken) |
Creates a ChatThreadClient asynchronously. ChatThreadClient. |
CreateChatThreadAsync(String, IEnumerable<ChatParticipant>, String, CancellationToken) |
Creates a ChatThreadClient asynchronously. ChatThreadClient. |
CreateChatThreadAsync(CreateChatThreadOptions, CancellationToken)
- Source:
- ChatClient.cs
Creates a ChatThreadClient asynchronously. ChatThreadClient.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>> CreateChatThreadAsync (Azure.Communication.Chat.CreateChatThreadOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateChatThreadAsync : Azure.Communication.Chat.CreateChatThreadOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>>
override this.CreateChatThreadAsync : Azure.Communication.Chat.CreateChatThreadOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>>
Public Overridable Function CreateChatThreadAsync (options As CreateChatThreadOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreateChatThreadResult))
Parameters
- options
- CreateChatThreadOptions
CreateChatThreadOptions
- cancellationToken
- CancellationToken
The cancellation token for the task.
Returns
Exceptions
The server returned an error. See Message for details returned from the server.
Applies to
CreateChatThreadAsync(String, IEnumerable<ChatParticipant>, String, CancellationToken)
- Source:
- ChatClient.cs
- Source:
- ChatClient.cs
Creates a ChatThreadClient asynchronously. ChatThreadClient.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>> CreateChatThreadAsync (string topic, System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatParticipant> participants = default, string idempotencyToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateChatThreadAsync : string * seq<Azure.Communication.Chat.ChatParticipant> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>>
override this.CreateChatThreadAsync : string * seq<Azure.Communication.Chat.ChatParticipant> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.Chat.CreateChatThreadResult>>
Public Overridable Function CreateChatThreadAsync (topic As String, Optional participants As IEnumerable(Of ChatParticipant) = Nothing, Optional idempotencyToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CreateChatThreadResult))
Parameters
- topic
- String
Topic for the chat thread
- participants
- IEnumerable<ChatParticipant>
Participants to be included in the chat thread
- idempotencyToken
- String
If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same Repeatability-Request-ID and get back an appropriate response without the server executing the request multiple times. The value of the Repeatability-Request-ID is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs.
- cancellationToken
- CancellationToken
The cancellation token for the task.
Returns
Exceptions
The server returned an error. See Message for details returned from the server.
Applies to
Azure SDK for .NET