EmailAttachment 构造函数

定义

重载

EmailAttachment()

初始化 EmailAttachment 类的新实例。

EmailAttachment(String, IRandomAccessStreamReference)

使用指定的随机访问流初始化 EmailAttachment 类的新实例。

EmailAttachment(String, IRandomAccessStreamReference, String)

初始化 EmailAttachment 类的新实例。

EmailAttachment()

初始化 EmailAttachment 类的新实例。

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

Windows 要求

应用功能
email emailSystem

另请参阅

适用于

EmailAttachment(String, IRandomAccessStreamReference)

使用指定的随机访问流初始化 EmailAttachment 类的新实例。

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)

参数

fileName
String

Platform::String

winrt::hstring

要用于附件的文件名。

data
IRandomAccessStreamReference

包含附件数据的随机访问流。

Windows 要求

应用功能
email emailSystem

适用于

EmailAttachment(String, IRandomAccessStreamReference, String)

初始化 EmailAttachment 类的新实例。

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)

参数

fileName
String

Platform::String

winrt::hstring

附件的文件名。

data
IRandomAccessStreamReference

用于下载附件的流。

mimeType
String

Platform::String

winrt::hstring

附件的 MIME 类型。

Windows 要求

应用功能
email emailSystem

另请参阅

适用于