Skip to content

GetMimeType Method ​

Definition ​

  • Namespace: JASE.Media
  • Assembly: JASE.Media.dll

Overloads ​

NameDescription
string GetMimeType(AudioFormat format)Returns the MIME type associated with the audio format (e.g. audio/mpeg), or null when the value carries no MimeTypeAttribute (e.g. Unknown).
string GetMimeType(ImageFormat format)Returns the MIME type associated with the image format (e.g. image/png), or null when the value carries no MimeTypeAttribute (e.g. Unknown).

string GetMimeType(AudioFormat format) ​

csharp
string GetMimeType(AudioFormat format)

Returns the MIME type associated with the audio format (e.g. audio/mpeg), or null when the value carries no MimeTypeAttribute (e.g. Unknown).

string GetMimeType(ImageFormat format) ​

csharp
string GetMimeType(ImageFormat format)

Returns the MIME type associated with the image format (e.g. image/png), or null when the value carries no MimeTypeAttribute (e.g. Unknown).