[This is preliminary documentation and is subject to change.]
Utility method that fetches the mimetype from the Windows registry based on a file extension.
If a mimetype cannot be found in the registry for the specified extension, a mimetype of "application/octetstream" will be returned.
Namespace: MultiArchive.SDK.ServiceUtils
Assembly: MultiArchive.SDK (in MultiArchive.SDK.dll) Version: 1.2.30.413 (1.2.30.413)
Syntax
C# |
---|
public static string MimeType(
string extension
) |
Visual Basic |
---|
Public Shared Function MimeType (
extension As String
) As String |
Visual C++ |
---|
public:
static String^ MimeType(
String^ extension
) |
Parameters
- extension
- Type: System..::..String
The file extention for which a mimetype should be found.
Return Value
Type:
StringA string containing the mimetype for the specified extension.
See Also