Click or drag to resize

HtmlWebGetContentTypeForExtension Method

Gets the MIME content type for a given path extension.

Namespace:  WorkflowGen.My.HtmlAgilityPack
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 8.0.6.0 (8.0.6.20210916)
Syntax
public static string GetContentTypeForExtension(
	string extension,
	string def
)

Parameters

extension
Type: SystemString
The input path extension.
def
Type: SystemString
The default content type to return if any error occurs.

Return Value

Type: String
The path extension's MIME content type.
See Also