5 types derived from ExternalException
System.ComponentModel.TypeConverter (1)
System.Data.Common (1)
System.Private.CoreLib (3)
23 instantiations of ExternalException
System.CodeDom (1)
System.Private.CoreLib (1)
System.Private.Windows.Core (10)
System.Windows.Forms (11)
73 references to ExternalException
Microsoft.CodeAnalysis.EditorFeatures (1)
mscorlib (1)
netstandard (1)
PresentationFramework (10)
System.Drawing.Common (2)
System.Drawing.Common.Tests (48)
System\Drawing\BitmapTests.cs (11)
439Assert.Throws<ExternalException>(() => bitmap.Clone(new Rectangle(x, y, width, height), bitmap.PixelFormat));
440Assert.Throws<ExternalException>(() => bitmap.Clone(new RectangleF(x, y, width, height), bitmap.PixelFormat));
455Assert.Throws<ExternalException>(() => bitmap.Clone(new Rectangle(0, 0, 1, 1), format));
456Assert.Throws<ExternalException>(() => bitmap.Clone(new RectangleF(0, 0, 1, 1), format));
463Assert.Throws<ExternalException>(() => bitmap.Clone(new Rectangle(0, 0, 1, 1), PixelFormat.Format32bppArgb));
464Assert.Throws<ExternalException>(() => bitmap.Clone(new RectangleF(0, 0, 1, 1), PixelFormat.Format32bppArgb));
654Assert.Throws<ExternalException>(() => Image.FromHbitmap(IntPtr.Zero));
655Assert.Throws<ExternalException>(() => Image.FromHbitmap(10));
898catch (ExternalException)
1241Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new BitmapData()));
1251Assert.Throws<ExternalException>(() => bitmap.UnlockBits(new BitmapData()));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (2)
71Assert.Throws<ExternalException>(() => new LinearGradientBrush(new Point(x, y), new Point(x, y), Color.Fuchsia, Color.GhostWhite));
72Assert.Throws<ExternalException>(() => new LinearGradientBrush(new PointF(x, y), new PointF(x, y), Color.Fuchsia, Color.GhostWhite));
System\Drawing\Drawing2D\MatrixTests.cs (4)
148Assert.Throws<ExternalException>(() => new Matrix(new Rectangle(1, 1, 0, 1), new Point[3]));
149Assert.Throws<ExternalException>(() => new Matrix(new RectangleF(1, 1, 0, 1), new PointF[3]));
155Assert.Throws<ExternalException>(() => new Matrix(new Rectangle(1, 1, 1, 0), new Point[3]));
156Assert.Throws<ExternalException>(() => new Matrix(new RectangleF(1, 1, 1, 0), new PointF[3]));
System\Drawing\TextureBrushTests.cs (6)
292Assert.Throws<ExternalException>(() => new TextureBrush(image, rectangle));
293Assert.Throws<ExternalException>(() => new TextureBrush(image, (RectangleF)rectangle));
294Assert.Throws<ExternalException>(() => new TextureBrush(image, WrapMode.Tile, rectangle));
295Assert.Throws<ExternalException>(() => new TextureBrush(image, WrapMode.Tile, (RectangleF)rectangle));
296Assert.Throws<ExternalException>(() => new TextureBrush(image, rectangle, null));
297Assert.Throws<ExternalException>(() => new TextureBrush(image, (RectangleF)rectangle, null));
System.Runtime (1)
System.Runtime.Caching (1)
System.Windows.Forms (4)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Interop.Tests (2)
System.Windows.Forms.Tests (1)