







|
| A Sandcastle Documented Class Library |
| HtmlWeb..::..GetExtensionForContentType Method |
| HtmlWeb Class See Also Send Feedback |
Gets the path extension for a given MIME content type.
Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)
Syntax
| C# |
|---|
public static string GetExtensionForContentType( string contentType, string def ) |
| Visual Basic |
|---|
Public Shared Function GetExtensionForContentType ( _ contentType As String, _ def As String _ ) As String |
| Visual C++ |
|---|
public: static String^ GetExtensionForContentType( String^ contentType, String^ def ) |
Parameters
- contentType
- Type: System..::..String
The input MIME content type.
- def
- Type: System..::..String
The default path extension to return if any error occurs.
