UtilWebGetMimeType Method
Gets the name of the MIME type of the specified file-extension.
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 GetMimeType(
string fileExtension
)
Public Shared Function GetMimeType (
fileExtension As String
) As String
Dim fileExtension As String
Dim returnValue As String
returnValue = UtilWeb.GetMimeType(fileExtension)
public:
static String^ GetMimeType(
String^ fileExtension
)
static member GetMimeType :
fileExtension : string -> string
No code example is currently available or this language may not be supported.
- fileExtension String
-
The file extension.
String
The name of the MIME type of the specified file-extension.
If the specified file-extension is not found, then
application/octet-stream MIME is returned.
This is a code example.
No code example is currently available or this language may not be supported.
Dim mime As String = GetMimeType(fileExtension:=".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
|
fileExtension
|