次の方法で共有


ChatClient.CreateChatThreadAsync メソッド

定義

オーバーロード

CreateChatThreadAsync(CreateChatThreadOptions, CancellationToken)

ChatThreadClient を非同期的に作成します。 ChatThreadClient.

CreateChatThreadAsync(String, IEnumerable<ChatParticipant>, String, CancellationToken)

ChatThreadClient を非同期的に作成します。 ChatThreadClient.

CreateChatThreadAsync(CreateChatThreadOptions, CancellationToken)

ソース:
ChatClient.cs

ChatThreadClient を非同期的に作成します。 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))

パラメーター

options
CreateChatThreadOptions

CreateChatThreadOptions

cancellationToken
CancellationToken

タスクのキャンセル トークン。

戻り値

例外

サーバーからエラーが返されました。 サーバーから返される詳細については、「」を参照してください Message

適用対象

CreateChatThreadAsync(String, IEnumerable<ChatParticipant>, String, CancellationToken)

ソース:
ChatClient.cs
ソース:
ChatClient.cs

ChatThreadClient を非同期的に作成します。 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))

パラメーター

topic
String

チャット スレッドのトピック

participants
IEnumerable<ChatParticipant>

チャット スレッドに含める参加者

idempotencyToken
String

指定した場合、クライアントは要求が繰り返し可能であることを指示します。つまり、クライアントは同じ Repeatability-Request-ID を使用して要求を複数回行い、サーバーが要求を複数回実行せずに適切な応答を返すことができます。 Repeatability-Request-ID の値は、クライアントによって生成され、常にグローバルに一意である要求の識別子を表す不透明な文字列です。 バージョン 4 (ランダム) UUID を使用することをお勧めします。

cancellationToken
CancellationToken

タスクのキャンセル トークン。

戻り値

例外

サーバーからエラーが返されました。 サーバーから返される詳細については、「」を参照してください Message

適用対象