ChatMessageAttachment 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示聊天訊息的附件。
public ref class ChatMessageAttachment sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Chat.IChatMessageAttachmentFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ChatMessageAttachment final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Chat.IChatMessageAttachmentFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class ChatMessageAttachment final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Chat.IChatMessageAttachmentFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ChatMessageAttachment
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Chat.IChatMessageAttachmentFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ChatMessageAttachment
function ChatMessageAttachment(mimeType, dataStreamReference)
Public NotInheritable Class ChatMessageAttachment
- 繼承
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
|
應用程式功能 |
chat
chatSystem
smsSend
|
建構函式
ChatMessageAttachment(String, IRandomAccessStreamReference) |
初始化 ChatMessageAttachment 類別的新實例。 |
屬性
DataStreamReference |
取得或設定訊息附件的資料流程參考。 |
GroupId |
取得或設定這個附件所屬附件群組的識別碼。 |
MimeType |
取得或設定附件的 MIME 類型。 |
OriginalFileName |
取得或設定附件的原始檔案名稱。 |
Text |
取得或設定附件物件的文字編碼表示。 |
Thumbnail |
取得或設定附件的縮圖影像。 |
TransferProgress |
取得或設定傳送附件的進度。 |