Gets the Content Type for the specified file extension.

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

Syntax

C#
string GetContentType(
	string extension
)
Visual Basic
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