ChatMessageAttachment 类

定义

表示聊天消息的附件。

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
继承
Object Platform::Object IInspectable 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

获取或设置附件的传输进度。

适用于