StorageFile.ContentType Proprietà

Definizione

Ottiene il tipo MIME del contenuto del 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

Valore della proprietà

String

Platform::String

winrt::hstring

Tipo MIME del contenuto del file.

Ad esempio, un file musicale potrebbe avere il tipo MIME "audio/mpeg".

Implementazioni

Si applica a