EmailMessage.SetBodyStream 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.
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
|