EmailAttachment Constructors

Definition

Overloads

EmailAttachment()

Initializes a new instance of the EmailAttachment class.

EmailAttachment(String, IRandomAccessStreamReference)

Initializes a new instance of the EmailAttachment class with the specified random access stream.

EmailAttachment(String, IRandomAccessStreamReference, String)

Initializes a new instance of the EmailAttachment class.

EmailAttachment()

Initializes a new instance of the EmailAttachment class.

public:
 EmailAttachment();
 EmailAttachment();
public EmailAttachment();
function EmailAttachment()
Public Sub New ()

Windows requirements

App capabilities
email emailSystem

See also

Applies to

EmailAttachment(String, IRandomAccessStreamReference)

Initializes a new instance of the EmailAttachment class with the specified random access stream.

public:
 EmailAttachment(Platform::String ^ fileName, IRandomAccessStreamReference ^ data);
 EmailAttachment(winrt::hstring const& fileName, IRandomAccessStreamReference const& data);
public EmailAttachment(string fileName, IRandomAccessStreamReference data);
function EmailAttachment(fileName, data)
Public Sub New (fileName As String, data As IRandomAccessStreamReference)

Parameters

fileName
String

Platform::String

winrt::hstring

The file name to use for the attachment.

data
IRandomAccessStreamReference

A random access stream containing the data for the attachment.

Windows requirements

App capabilities
email emailSystem

Applies to

EmailAttachment(String, IRandomAccessStreamReference, String)

Initializes a new instance of the EmailAttachment class.

public:
 EmailAttachment(Platform::String ^ fileName, IRandomAccessStreamReference ^ data, Platform::String ^ mimeType);
 EmailAttachment(winrt::hstring const& fileName, IRandomAccessStreamReference const& data, winrt::hstring const& mimeType);
public EmailAttachment(string fileName, IRandomAccessStreamReference data, string mimeType);
function EmailAttachment(fileName, data, mimeType)
Public Sub New (fileName As String, data As IRandomAccessStreamReference, mimeType As String)

Parameters

fileName
String

Platform::String

winrt::hstring

The filename of the attachment.

data
IRandomAccessStreamReference

The stream to use to download the attachment.

mimeType
String

Platform::String

winrt::hstring

The MIME type of the attachment.

Windows requirements

App capabilities
email emailSystem

See also

Applies to