StorageFile.ContentType StorageFile.ContentType StorageFile.ContentType StorageFile.ContentType StorageFile.ContentType Property

Definition

Gets the MIME type of the contents of the file.

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

Property Value

string string string

The MIME type of the file contents.

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