你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CommunicationMessagesModelFactory.WhatsAppMessageTemplateItem 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.
Initializes a new instance of WhatsAppMessageTemplateItem.
public static Azure.Communication.Messages.Models.Channels.WhatsAppMessageTemplateItem WhatsAppMessageTemplateItem(string name = default, string language = default, Azure.Communication.Messages.MessageTemplateStatus status = default, BinaryData content = default);
static member WhatsAppMessageTemplateItem : string * string * Azure.Communication.Messages.MessageTemplateStatus * BinaryData -> Azure.Communication.Messages.Models.Channels.WhatsAppMessageTemplateItem
Public Shared Function WhatsAppMessageTemplateItem (Optional name As String = Nothing, Optional language As String = Nothing, Optional status As MessageTemplateStatus = Nothing, Optional content As BinaryData = Nothing) As WhatsAppMessageTemplateItem
Parameters
- name
- String
The template's name.
- language
- String
The template's language, in the ISO 639 format, consist of a two-letter language code followed by an optional two-letter country code, e.g., 'en' or 'en_US'.
- status
- MessageTemplateStatus
The aggregated template status.
- content
- BinaryData
WhatsApp platform's template content. This is the payload returned from WhatsApp API.
Returns
A new WhatsAppMessageTemplateItem instance for mocking.