แชร์ผ่าน


MessagingExtensionAction Constructors

Definition

Overloads

MessagingExtensionAction()

Initializes a new instance of the MessagingExtensionAction class.

MessagingExtensionAction(Object, TaskModuleRequestContext, String, String, String, IList<Activity>, MessageActionsPayload)

Initializes a new instance of the MessagingExtensionAction class.

MessagingExtensionAction()

Initializes a new instance of the MessagingExtensionAction class.

public MessagingExtensionAction ();
Public Sub New ()

Applies to

MessagingExtensionAction(Object, TaskModuleRequestContext, String, String, String, IList<Activity>, MessageActionsPayload)

Initializes a new instance of the MessagingExtensionAction class.

public MessagingExtensionAction (object data = default, Microsoft.Bot.Schema.Teams.TaskModuleRequestContext context = default, string commandId = default, string commandContext = default, string botMessagePreviewAction = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.Activity> botActivityPreview = default, Microsoft.Bot.Schema.Teams.MessageActionsPayload messagePayload = default);
new Microsoft.Bot.Schema.Teams.MessagingExtensionAction : obj * Microsoft.Bot.Schema.Teams.TaskModuleRequestContext * string * string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.Activity> * Microsoft.Bot.Schema.Teams.MessageActionsPayload -> Microsoft.Bot.Schema.Teams.MessagingExtensionAction
Public Sub New (Optional data As Object = Nothing, Optional context As TaskModuleRequestContext = Nothing, Optional commandId As String = Nothing, Optional commandContext As String = Nothing, Optional botMessagePreviewAction As String = Nothing, Optional botActivityPreview As IList(Of Activity) = Nothing, Optional messagePayload As MessageActionsPayload = Nothing)

Parameters

data
Object

User input data. Free payload with key-value pairs.

context
TaskModuleRequestContext

Current user context, i.e., the current theme.

commandId
String

Id of the command assigned by Bot.

commandContext
String

The context from which the command originates. Possible values include: 'message', 'compose', 'commandbox'.

botMessagePreviewAction
String

Bot message preview action taken by user. Possible values include: 'edit', 'send'.

botActivityPreview
IList<Activity>

A collection of bot activities.

messagePayload
MessageActionsPayload

Message content sent as part of the command request.

Applies to