ChatMessage.Body ChatMessage.Body ChatMessage.Body ChatMessage.Body ChatMessage.Body Property


Gets or sets the body of the chat message.

public : Platform::String Body { get; set; }
winrt::hstring Body();

void Body(winrt::hstring body);
public string Body { get; set; }
Public ReadWrite Property Body As string
var string = chatMessage.body;
chatMessage.body = string;

Property Value

string string string

The body of the chat message.

Additional features and requirements

chat smsSend chatSystem


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.