UtilWebGetMimeTypeExtension Method
Gets the file-extension that is associated to the specified MIME type.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GetMimeTypeExtension(
string mimeType
)
Public Shared Function GetMimeTypeExtension (
mimeType As String
) As String
Dim mimeType As String
Dim returnValue As String
returnValue = UtilWeb.GetMimeTypeExtension(mimeType)
public:
static String^ GetMimeTypeExtension(
String^ mimeType
)
static member GetMimeTypeExtension :
mimeType : string -> string
No code example is currently available or this language may not be supported.
- mimeType String
-
The name of the MIME type.
String
The file-extension.
This is a code example.
No code example is currently available or this language may not be supported.
Dim ext As String = GetMimeTypeExtension(mimeType:="application/zip")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException
|
mimeType
|
ArgumentException
|
Requested mime type is not registered: mimeType
|