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 類型。

適用於

另請參閱