<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.1.25080.3" />

InvalidPrinterException

Represents the exception that is thrown when you try to access a printer using printer settings that are not valid.
using System.Runtime.CompilerServices; using System.Runtime.Serialization; namespace System.Drawing.Printing { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public class InvalidPrinterException : SystemException { public InvalidPrinterException(PrinterSettings settings) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } protected InvalidPrinterException(SerializationInfo info, StreamingContext context) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public override void GetObjectData(SerializationInfo info, StreamingContext context) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }