Class
UnsupportedFileFormatException

Exception thrown when attempting to import or export a workbook with a file extension that no registered format provider supports.

Definition

Constructors

UnsupportedFileFormatException(string)

Initializes a new instance of the UnsupportedFileFormatException class for the specified unsupported file extension.

Declaration

cs-api-definition
public UnsupportedFileFormatException(string extension)

Parameters

extension

string

The extension.

Properties

Message

Gets the error message describing which file extension is not supported.

Declaration

cs-api-definition
public override string Message { get; }

Property Value

string

The error message that explains the reason for the exception, or an empty string("").

Overrides Exception.Message