ChatClient.CreateChatThreadAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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 。
適用対象
Azure SDK for .NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示