ChatMessage.Body Property
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.
Gets or sets the body of the chat message.
public:
property Platform::String ^ Body { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Body();
void Body(winrt::hstring value);
public string Body { get; set; }
var string = chatMessage.body;
chatMessage.body = string;
Public Property Body As String
Property Value
The body of the chat message.
Windows requirements
App capabilities |
chat
chatSystem
smsSend
|
Remarks
When an application invokes the compose task, the Body property can contain an initialized string value to appear when the compose task is launched.
If a message has more than one recipient and group text is enabled, the default case, the message is sent as an MMS message. In this situation, the message text is included as the first attachment and not in the Body. For a message with a single recipient, the Body is used for an SMS message and Subject property is valid for an MMS message.