MessageActivityExtensions.WithAttachmentLayout Method
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.
Caution
MessageActivity is an inbound (received) activity. To construct and send a message, use new MessageActivityInput() instead.
Sets the attachment layout for the message.
[System.Obsolete("MessageActivity is an inbound (received) activity. To construct and send a message, use new MessageActivityInput() instead.")]
public static Microsoft.Teams.Apps.MessageActivity WithAttachmentLayout(this Microsoft.Teams.Apps.MessageActivity message, Microsoft.Teams.Apps.Schema.AttachmentLayoutType attachmentLayout);
[<System.Obsolete("MessageActivity is an inbound (received) activity. To construct and send a message, use new MessageActivityInput() instead.")>]
static member WithAttachmentLayout : Microsoft.Teams.Apps.MessageActivity * Microsoft.Teams.Apps.Schema.AttachmentLayoutType -> Microsoft.Teams.Apps.MessageActivity
<Extension()>
Public Function WithAttachmentLayout (message As MessageActivity, attachmentLayout As AttachmentLayoutType) As MessageActivity
Parameters
- message
- MessageActivity
The message activity.
- attachmentLayout
- AttachmentLayoutType
The attachment layout (e.g., "list", "carousel").
Returns
The message activity for chaining.
- Attributes