Get(string, bool) Method
Given a file path, determine the media type.
Namespace
Statiq.Common
Containing Type
MediaTypes

Syntax

public static string Get(string path, bool defaultIfNotFound = true)

Parameters

Name Type Description
path string A file path.
defaultIfNotFound bool Will return a "text/x-[extension]" default media type if a mapping is not found.

Return Value

Type Description
string The media type.