IStorageFile.ContentType 属性

定义

获取文件内容的 MIME 类型。

public:
 property Platform::String ^ ContentType { Platform::String ^ get(); };
winrt::hstring ContentType();
public string ContentType { get; }
var string = iStorageFile.contentType;
Public ReadOnly Property ContentType As String

属性值

String

Platform::String

winrt::hstring

文件内容的 MIME 类型。

例如,音乐文件可能具有“audio/mpeg”MIME 类型。

适用于

另请参阅