IStorageFile.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 = iStorageFile.contentType;
Public ReadOnly Property ContentType As String

Property Value

String

The MIME type of the file contents.

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

Applies to

See also