StorageFile.ContentType Property

Definition

Gets the MIME type of the contents of the file.

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

Property Value

String

Platform::String

winrt::hstring

The MIME type of the file contents.

For example, a music file might have the "audio/mpeg" MIME type.

Implements

Applies to