你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

InteractiveMessage(TextMessageContent, ActionBindings) Constructor

Definition

Initializes a new instance of InteractiveMessage.

public InteractiveMessage(Azure.Communication.Messages.TextMessageContent body, Azure.Communication.Messages.ActionBindings action);
new Azure.Communication.Messages.InteractiveMessage : Azure.Communication.Messages.TextMessageContent * Azure.Communication.Messages.ActionBindings -> Azure.Communication.Messages.InteractiveMessage
Public Sub New (body As TextMessageContent, action As ActionBindings)

Parameters

body
TextMessageContent

Gets or Sets Message body content. Emojis, markdown, and links are supported.

action
ActionBindings

The binding object to get or set Action which describes options user have to respond to message. Please note ActionBindings is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include WhatsAppButtonActionBindings, WhatsAppListActionBindings and WhatsAppUrlActionBindings.

Exceptions

body or action is null.

Applies to