EmailAttachment Constructors
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.
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.
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.
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
|