Documentation Index
Fetch the complete documentation index at: https://easyaf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Assembly: CloudNimble.Breakdance.Assemblies.dll
Namespace: MimeTypes
Inheritance: System.Object
Syntax
Summary
Class MimeTypeMap.
Methods
GetExtension
Gets the extension from the provided MINE type.
Syntax
public static string GetExtension(string mimeType, bool throwErrorIfNotFound = true)
Parameters
| Name | Type | Description |
|---|
mimeType | string | Type of the MIME. |
throwErrorIfNotFound | bool | if set to true, throws error if extension’s not found. |
Returns
Type: string
The extension.
Exceptions
| Exception | Description |
|---|
ArgumentNullException | |
ArgumentException | |
GetMimeType
Gets the type of the MIME from the provided string.
Syntax
public static string GetMimeType(string str)
Parameters
| Name | Type | Description |
|---|
str | string | The filename or extension. |
Returns
Type: string
The MIME type.
Exceptions
| Exception | Description |
|---|
ArgumentNullException | |
TryGetMimeType
Tries to get the type of the MIME from the provided string.
Syntax
public static bool TryGetMimeType(string str, out string mimeType)
Parameters
| Name | Type | Description |
|---|
str | string | The filename or extension. |
mimeType | string | The variable to store the MIME type. |
Returns
Type: bool
The MIME type.
Exceptions
| Exception | Description |
|---|
ArgumentNullException | |