Compartilhar via


ChatMessageAttachment Classe

Definição

Representa um anexo a uma mensagem de chat.

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
Herança
Object Platform::Object IInspectable ChatMessageAttachment
Atributos

Requisitos do Windows

Família de dispositivos
Windows 10 (introduzida na 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v1.0)
Funcionalidades do aplicativo
chat chatSystem smsSend

Construtores

ChatMessageAttachment(String, IRandomAccessStreamReference)

Inicializa uma nova instância da classe ChatMessageAttachment .

Propriedades

DataStreamReference

Obtém ou define uma referência de fluxo para um anexo de mensagem.

GroupId

Obtém ou define o identificador do grupo de anexos ao qual esse anexo pertence.

MimeType

Obtém ou define o tipo MIME do anexo.

OriginalFileName

Obtém ou define o nome do arquivo original do anexo.

Text

Obtém ou define a representação codificada em texto do objeto attachment.

Thumbnail

Obtém ou define a imagem em miniatura do anexo.

TransferProgress

Obtém ou define o progresso da transferência do anexo.

Aplica-se a