HtmlWebGetExtensionForContentType Method |
Gets the path extension for a given MIME content type.
Namespace:
WorkflowGen.My.HtmlAgilityPack
Assembly:
WorkflowGen.My (in WorkflowGen.My.dll) Version: 9.1.0.0 (9.1.0.20241025)
Syntax public static string GetExtensionForContentType(
string contentType,
string def
)
Public Shared Function GetExtensionForContentType (
contentType As String,
def As String
) As String
Parameters
- contentType
- Type: SystemString
The input MIME content type. - def
- Type: SystemString
The default path extension to return if any error occurs.
Return Value
Type:
StringThe MIME content type's path extension.
See Also