ConversationsExtensions.ReplyToActivityAsync 메서드

정의

오버로드

ReplyToActivityAsync(IConversations, Activity, CancellationToken)
ReplyToActivityAsync(IConversations, Activity, CancellationToken)

기존 대화의 활동에 회신 합니다.Reply to an activity in an existing conversation.

ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)
ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)

ReplyToActivityReplyToActivity

ReplyToActivityAsync(IConversations, Activity, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

매개 변수

operations
IConversations
activity
Activity
cancellationToken
CancellationToken

반환

Task<ResourceResponse>

적용 대상

ReplyToActivityAsync(IConversations, Activity, CancellationToken)

기존 대화의 활동에 회신 합니다.Reply to an activity in an existing conversation.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

매개 변수

operations
IConversations

이 확장 메서드에 대 한 작업 그룹입니다.The operations group for this extension method.

activity
Activity

보낼 활동입니다.Activity to send.

cancellationToken
CancellationToken

취소 토큰입니다.The cancellation token.

반환

Task<ResourceResponse>

비동기 작업을 나타내는 Task입니다.A Task representing the asynchronous operation.

적용 대상

ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, Microsoft.Bot.Connector.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Connector.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

매개 변수

operations
IConversations
conversationId
String
activityId
String
activity
Activity
cancellationToken
CancellationToken

반환

Task<ResourceResponse>

적용 대상

ReplyToActivityAsync(IConversations, String, String, Activity, CancellationToken)

ReplyToActivityReplyToActivity

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> ReplyToActivityAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
static member ReplyToActivityAsync : Microsoft.Bot.Connector.IConversations * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function ReplyToActivityAsync (operations As IConversations, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

매개 변수

operations
IConversations

이 확장 메서드에 대 한 작업 그룹입니다.The operations group for this extension method.

conversationId
String

대화 IDConversation ID

activityId
String

회신 대상 (옵션)activityId the reply is to (OPTIONAL)

activity
Activity

보낼 활동Activity to send

cancellationToken
CancellationToken

취소 토큰입니다.The cancellation token.

반환

Task<ResourceResponse>

설명

이 메서드를 사용 하면 활동에 회신할 수 있습니다.This method allows you to reply to an activity.

이는 SendToConversation ()와 약간 다릅니다.This is slightly different from SendToConversation(). * SendToConversation (conversationId)-타임 스탬프 또는 채널의 의미 체계에 따라 대화의 끝에 활동을 추가 합니다.* SendToConversation(conversationId) - will append the activity to the end of the conversation according to the timestamp or semantics of the channel. * ReplyToActivity (conversationId, 활동 id)-채널에서 지 원하는 경우 활동을 다른 활동에 대 한 회신으로 추가 합니다.* ReplyToActivity(conversationId,ActivityId) - adds the activity as a reply to another activity, if the channel supports it. 채널에서 중첩 된 회신을 지원 하지 않는 경우 ReplyToActivity는 SendToConversation로 대체 합니다.If the channel does not support nested replies, ReplyToActivity falls back to SendToConversation.

대화의 특정 활동에 회신할 때 ReplyToActivity를 사용 합니다.Use ReplyToActivity when replying to a specific activity in the conversation.

다른 모든 경우에는 SendToConversation를 사용 합니다.Use SendToConversation in all other cases.

적용 대상