ConversationsExtensions.CreateDirectConversationAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
CreateDirectConversationAsync(IConversations, ChannelAccount, ChannelAccount, Activity, CancellationToken)
public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Connector.ChannelAccount bot, Microsoft.Bot.Connector.ChannelAccount user, Microsoft.Bot.Connector.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Connector.ChannelAccount * Microsoft.Bot.Connector.ChannelAccount * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, bot As ChannelAccount, user As ChannelAccount, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
パラメーター
- operations
- IConversations
- bot
- ChannelAccount
- user
- ChannelAccount
- activity
- Activity
- cancellationToken
- CancellationToken
戻り値
適用対象
CreateDirectConversationAsync(IConversations, ChannelAccount, ChannelAccount, Activity, CancellationToken)
ボットとユーザーの間で新しい直接会話を作成します。
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Schema.ChannelAccount bot, Microsoft.Bot.Schema.ChannelAccount user, Microsoft.Bot.Schema.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.ChannelAccount * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, bot As ChannelAccount, user As ChannelAccount, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
パラメーター
- operations
- IConversations
この拡張メソッドの操作グループ。
- bot
- ChannelAccount
会話を作成するボット。
- user
- ChannelAccount
会話を作成するユーザー。
- activity
- Activity
(省略可能) 新しい会話に送信する初期メッセージ。
- cancellationToken
- CancellationToken
キャンセル トークン。
戻り値
非同期操作を表す Task。
適用対象
CreateDirectConversationAsync(IConversations, String, String, Activity, CancellationToken)
public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, string botAddress, string userAddress, Microsoft.Bot.Connector.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, botAddress As String, userAddress As String, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
パラメーター
- operations
- IConversations
- botAddress
- String
- userAddress
- String
- activity
- Activity
- cancellationToken
- CancellationToken
戻り値
適用対象
CreateDirectConversationAsync(IConversations, String, String, Activity, CancellationToken)
ボットとユーザーの間で新しい直接会話を作成します。
public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse> CreateDirectConversationAsync (this Microsoft.Bot.Connector.IConversations operations, string botAddress, string userAddress, Microsoft.Bot.Schema.Activity activity = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateDirectConversationAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ConversationResourceResponse>
<Extension()>
Public Function CreateDirectConversationAsync (operations As IConversations, botAddress As String, userAddress As String, Optional activity As Activity = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConversationResourceResponse)
パラメーター
- operations
- IConversations
この拡張メソッドの操作グループ。
- botAddress
- String
会話を作成するボット。
- userAddress
- String
会話を作成するユーザー。
- activity
- Activity
(省略可能) 新しい会話に送信する初期メッセージ。
- cancellationToken
- CancellationToken
キャンセル トークン。
戻り値
非同期操作を表す Task。