Mime |
public static void Register( string mimeType, string extension )
| Exception | Condition |
|---|---|
| ArgumentNullException | mimeType is . -or- extension is . |
| ArgumentException | mimeType is empty. -or- extension is empty. |
Registers a MIME-type to file extension mapping.
If the mapping for the MIME-type and/or file extension already exists, then it is overridden by the new mapping.