UnsupportedImageFeatureException Class
The exception thrown when valid content uses a feature this version does not support (for example a lossless JPEG or a GIF plain-text extension), or when an operation would lose information (animation, alpha, precision, metadata, color profile) and no explicit policy allows the loss.
public class UnsupportedImageFeatureException : ImageException- Inheritance
ImageExceptionUnsupportedImageFeatureException
Constructors
| Name | Description |
|---|---|
| UnsupportedImageFeatureException() | Initializes a new instance of the UnsupportedImageFeatureException class. |
| UnsupportedImageFeatureException(string?) | Initializes a new instance of the UnsupportedImageFeatureException class with a message. |
| UnsupportedImageFeatureException(string?, ImageFormat, string?) | Initializes a new instance of the UnsupportedImageFeatureException class for a specific format and feature. |
| UnsupportedImageFeatureException(string?, Exception?) | Initializes a new instance of the UnsupportedImageFeatureException class with a message and an inner exception. |
UnsupportedImageFeatureException overloads
UnsupportedImageFeatureException()
UnsupportedImageFeatureException.csInitializes a new instance of the UnsupportedImageFeatureException class.
public UnsupportedImageFeatureException()UnsupportedImageFeatureException(string?)
UnsupportedImageFeatureException.csInitializes a new instance of the UnsupportedImageFeatureException class with a message.
public UnsupportedImageFeatureException(string? message)Parameters
messagestring?- The error message.
UnsupportedImageFeatureException(string?, ImageFormat, string?)
UnsupportedImageFeatureException.csInitializes a new instance of the UnsupportedImageFeatureException class for a specific format and feature.
public UnsupportedImageFeatureException(string? message, ImageFormat format, string? feature)Parameters
messagestring?- The error message.
formatImageFormat- The format involved, or
ImageFormat.Unknownfor format-independent conversions. featurestring?- A short, stable, human-readable feature name (for example
"JPEG lossless").
UnsupportedImageFeatureException(string?, Exception?)
UnsupportedImageFeatureException.csInitializes a new instance of the UnsupportedImageFeatureException class with a message and an inner exception.
Parameters
messagestring?- The error message.
innerExceptionException?- The exception that caused this exception.
Properties
| Name | Description |
|---|---|
| Feature | Gets a short human-readable name of the unsupported feature, if specified. |
| Format | Gets the format involved, or ImageFormat.Unknown if not specified. |
Gets the format involved, or ImageFormat.Unknown if not specified.
public ImageFormat Format { get; }