Definition
Assembly: CloudNimble.Breakdance.Assemblies.dll Namespace: MimeTypes Inheritance: System.ObjectSyntax
Summary
Class MimeTypeMap.Methods
GetExtension
Gets the extension from the provided MINE type.Syntax
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
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
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 |