Web.CacheableImageFormats.GetMimeType
GetMimeType(Guid)
static string TECIT.TBarCode.Web.CacheableImageFormats.GetMimeType(Guid guid)Retrieves the MIME type of the given image format.
Parameters
| Parameter / type | Description |
|---|---|
guid Guid |
The GUID that describes an ImageFormat. |
Returns
The MIME type of the image format.
Exceptions
| Name | Description |
|---|---|
ArgumentException |
guid is not a supported ImageFormat. |
GetMimeType(ImageFormat)
static string TECIT.TBarCode.Web.CacheableImageFormats.GetMimeType(ImageFormat format)Retrieves the MIME type of the given image format.
Parameters
| Parameter / type | Description |
|---|---|
format ImageFormat |
The ImageFormat. |
Returns
The MIME type of the image format.
Exceptions
| Name | Description |
|---|---|
ArgumentException |
format is not a supported ImageFormat. |