Click or drag to resize
MediaHelperGetMediaType Method
Returns media type according to the specified extension.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static MediaTypeEnum GetMediaType(
	string ext
)

Parameters

ext
Type: SystemString
Extension to check

Return Value

Type: MediaTypeEnum
See Also