Activity.ApplyConversationReference(ConversationReference, Boolean) メソッド

定義

このアクティビティを、既存ConversationReferenceの からの配信情報と共に更新します。

public Microsoft.Bot.Schema.Activity ApplyConversationReference (Microsoft.Bot.Schema.ConversationReference reference, bool isIncoming = false);
abstract member ApplyConversationReference : Microsoft.Bot.Schema.ConversationReference * bool -> Microsoft.Bot.Schema.Activity
override this.ApplyConversationReference : Microsoft.Bot.Schema.ConversationReference * bool -> Microsoft.Bot.Schema.Activity
Public Function ApplyConversationReference (reference As ConversationReference, Optional isIncoming As Boolean = false) As Activity

パラメーター

reference
ConversationReference

既存の会話参照。

isIncoming
Boolean

オプション。 true ボットが受信者である受信アクティビティとしてアクティビティを処理する場合は 。それ以外の場合 falseは 。 既定値は で false、アクティビティにはボットが送信者として表示されます。

戻り値

この動作は、配信情報で更新されました。

実装

注釈

着信アクティビティに対して を呼び出 GetConversationReference() して会話参照を取得します。この参照を使用して、正しい配信情報を使用して送信アクティビティを更新できます。

適用対象