FromExtension

EmailFormats.FromExtension method

Returns instance of EmailFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed

public static EmailFormats FromExtension(string extension)
Parameter Type Description
extension String Filename extension of any supportable Email format, with or without leading dot character, case-independent. Cannot be NULL or empty, should be valid.

Return Value

Instance of EmailFormats structure on success or thrown exception on failure

See Also