Share via


ChatMessageAttachment.MimeType Property

Definition

Gets or sets the MIME type of the attachment.

public:
 property Platform::String ^ MimeType { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring MimeType();

void MimeType(winrt::hstring value);
public string MimeType { get; set; }
var string = chatMessageAttachment.mimeType;
chatMessageAttachment.mimeType = string;
Public Property MimeType As String

Property Value

String

Platform::String

winrt::hstring

The MIME type of the attachment.

Windows requirements

App capabilities
chat chatSystem smsSend

Remarks

A chat application handles an attachment based on the MIME type set in this property. Attachments for outgoing messages have MimeType set to a type string for recipient handling, such as “image/jpeg”.

Applies to