Gets the Content Type for the specified file extension.

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
[ObsoleteAttribute("Deprecated in DNN 7.4.2.  It has been replaced by FileContentTypeManager.Instance.GetContentType(string extension)")]
string GetContentType(
	string extension
)
Visual Basic
<ObsoleteAttribute("Deprecated in DNN 7.4.2.  It has been replaced by FileContentTypeManager.Instance.GetContentType(string extension)")> 
Function GetContentType ( 
	extension As String
) As String

Parameters

extension
Type: System..::..String
The file extension.

Return Value

The Content Type for the specified extension.

See Also