UnknownImageFormatException Class

The exception thrown when the input does not start with the signature of a supported image format.

public class UnknownImageFormatException : ImageException
Inheritance
ImageException UnknownImageFormatException

Constructors

NameDescription
UnknownImageFormatException()Initializes a new instance of the UnknownImageFormatException class.
UnknownImageFormatException(string?)Initializes a new instance of the UnknownImageFormatException class with a message.
UnknownImageFormatException(string?, Exception?)Initializes a new instance of the UnknownImageFormatException class with a message and an inner exception.

UnknownImageFormatException overloads

UnknownImageFormatException()

UnknownImageFormatException.cs

Initializes a new instance of the UnknownImageFormatException class.

public UnknownImageFormatException()

UnknownImageFormatException(string?)

UnknownImageFormatException.cs

Initializes a new instance of the UnknownImageFormatException class with a message.

public UnknownImageFormatException(string? message)
Parameters
message string?
The error message.

UnknownImageFormatException(string?, Exception?)

UnknownImageFormatException.cs

Initializes a new instance of the UnknownImageFormatException class with a message and an inner exception.

public UnknownImageFormatException(string? message, Exception? innerException)
Parameters
message string?
The error message.
innerException Exception?
The exception that caused this exception.