ChatMessageAttachment.MimeType 属性

定义

获取或设置附件的 MIME 类型。

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

属性值

String

Platform::String

winrt::hstring

附件的 MIME 类型。

Windows 要求

应用功能
chat chatSystem smsSend

注解

聊天应用程序根据此属性中设置的 MIME 类型处理附件。 传出邮件的附件将 MimeType 设置为收件人处理的类型字符串,例如“image/jpeg”。

适用于