Dela via


ChatMessageAttachment Class

Definition

Represents an attachment to a chat message.

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
Inheritance
Object Platform::Object IInspectable ChatMessageAttachment
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
chat chatSystem smsSend

Constructors

ChatMessageAttachment(String, IRandomAccessStreamReference)

Initializes a new instance of the ChatMessageAttachment class.

Properties

DataStreamReference

Gets or sets a stream reference for a message attachment.

GroupId

Gets or sets the identifier for the attachment group to which this attachment belongs.

MimeType

Gets or sets the MIME type of the attachment.

OriginalFileName

Gets or sets the original file name of the attachment.

Text

Gets or sets the text encoded representation of the attachment object.

Thumbnail

Gets or sets the thumbnail image for the attachment.

TransferProgress

Gets or sets the progress of transferring the attachment.

Applies to