共用方式為


ChatMessageAttachment(String, IRandomAccessStreamReference) 建構函式

定義

初始化 ChatMessageAttachment 類別的新實例。

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

參數

mimeType
String

Platform::String

winrt::hstring

附件的 MIME 類型。

dataStreamReference
IRandomAccessStreamReference

包含附件資料的資料流程。

Windows 需求

應用程式功能
chat chatSystem smsSend

適用於