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 の種類。

たとえば、音楽ファイルの MIME の種類が "audio/mpeg" である場合があります。

適用対象

こちらもご覧ください