MessagingExtensionResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MessagingExtensionResult() |
Initializes a new instance of the MessagingExtensionResult class. |
MessagingExtensionResult(String, String, IList<MessagingExtensionAttachment>, MessagingExtensionSuggestedAction, String, Activity) |
Initializes a new instance of the MessagingExtensionResult class. |
MessagingExtensionResult()
Initializes a new instance of the MessagingExtensionResult class.
public MessagingExtensionResult ();
Public Sub New ()
Applies to
MessagingExtensionResult(String, String, IList<MessagingExtensionAttachment>, MessagingExtensionSuggestedAction, String, Activity)
Initializes a new instance of the MessagingExtensionResult class.
public MessagingExtensionResult (string attachmentLayout = default, string type = default, System.Collections.Generic.IList<Microsoft.Bot.Schema.Teams.MessagingExtensionAttachment> attachments = default, Microsoft.Bot.Schema.Teams.MessagingExtensionSuggestedAction suggestedActions = default, string text = default, Microsoft.Bot.Schema.Activity activityPreview = default);
new Microsoft.Bot.Schema.Teams.MessagingExtensionResult : string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.Teams.MessagingExtensionAttachment> * Microsoft.Bot.Schema.Teams.MessagingExtensionSuggestedAction * string * Microsoft.Bot.Schema.Activity -> Microsoft.Bot.Schema.Teams.MessagingExtensionResult
Public Sub New (Optional attachmentLayout As String = Nothing, Optional type As String = Nothing, Optional attachments As IList(Of MessagingExtensionAttachment) = Nothing, Optional suggestedActions As MessagingExtensionSuggestedAction = Nothing, Optional text As String = Nothing, Optional activityPreview As Activity = Nothing)
Parameters
- attachmentLayout
- String
Hint for how to deal with multiple attachments. Possible values include: 'list', 'grid'.
- type
- String
The type of the result. Possible values include: 'result', 'auth', 'config', 'message', 'botMessagePreview'.
- attachments
- IList<MessagingExtensionAttachment>
(Only when type is result) Attachments.
- suggestedActions
- MessagingExtensionSuggestedAction
The message extension suggested actions.
- text
- String
(Only when type is message) Text.
- activityPreview
- Activity
(Only when type is botMessagePreview) Message activity to preview.