Web.CacheableImageFormats.GetMimeType

Web.CacheableImageFormats

GetMimeType(Guid)

static string TECIT.TBarCode.Web.CacheableImageFormats.GetMimeType(Guid guid)

Retrieves the MIME type of the given image format.

Parameters

Parameter / typeDescription
guid Guid

The GUID that describes an ImageFormat.

Returns

The MIME type of the image format.

Exceptions

NameDescription
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 / typeDescription
format ImageFormat

The ImageFormat.

Returns

The MIME type of the image format.

Exceptions

NameDescription
ArgumentException

format is not a supported ImageFormat.

Search documentation

Search in
More scopes
Additional scopes

All contents