Share via


EmailMessage.SetBodyStream Method

Definition

Sets the value of the specified body stream in an email message.

public:
 virtual void SetBodyStream(EmailMessageBodyKind type, IRandomAccessStreamReference ^ stream) = SetBodyStream;
void SetBodyStream(EmailMessageBodyKind const& type, IRandomAccessStreamReference const& stream);
public void SetBodyStream(EmailMessageBodyKind type, IRandomAccessStreamReference stream);
function setBodyStream(type, stream)
Public Sub SetBodyStream (type As EmailMessageBodyKind, stream As IRandomAccessStreamReference)

Parameters

type
EmailMessageBodyKind

Indicates which body stream, plain text or HTML.

stream
IRandomAccessStreamReference

The message for the specified body stream.

Note

The EmailManager.ShowComposeNewEmailAsync, and EmailManagerForUser.ShowComposeNewEmailAsync methods won't recognize an HTML formatted body. You can only use those methods to send email in plain text.

Windows requirements

App capabilities
email emailSystem

Applies to