Share via


ChatMessage.Body Property

Definition

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

String

Platform::String

winrt::hstring

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.

Applies to