190 instantiations of InvalidEnumArgumentException
Aspire.Hosting (1)
Microsoft.Data.Analysis (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.Maui.Controls (4)
Microsoft.VisualBasic.Core (4)
PresentationCore (48)
PresentationFramework (24)
System.Data.Common (1)
System.Diagnostics.Process (2)
System.DirectoryServices.Protocols (9)
System.Drawing.Common (32)
System\Drawing\Graphics.cs (8)
234throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Drawing2D.CompositingMode));
251throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Drawing2D.CompositingQuality));
291throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Drawing2D.InterpolationMode));
339throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(GraphicsUnit));
356throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(PixelOffsetMode));
384throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Drawing2D.SmoothingMode));
415throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(TextRenderingHint));
2729throw new InvalidEnumArgumentException(nameof(copyPixelOperation), (int)copyPixelOperation, typeof(CopyPixelOperation));
System\Drawing\Pen.cs (6)
204throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(LineCap));
246throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(LineCap));
325throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DashCap));
354throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(LineJoin));
407throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(PenAlignment));
663throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DashStyle));
System.Private.Windows.Core (1)
System.ServiceModel.Federation (1)
System.ServiceModel.Http (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.NetTcp (1)
System.ServiceModel.Primitives (18)
System\ServiceModel\Security\SecurityUtils.cs (5)
41throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException(nameof(value), (int)value,
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException(nameof(impersonationLevel), (int)impersonationLevel,
163throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("y", (int)y,
171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("x", (int)x,
System.ServiceModel.UnixDomainSocket (1)
System.Windows.Forms (33)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Primitives (2)
UIAutomationClientSideProviders (3)
267 references to InvalidEnumArgumentException
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.VisualBasic.Forms.Tests (2)
Microsoft.VisualBasic.Tests (2)
netstandard (1)
PresentationCore.Tests (1)
PresentationFramework (9)
PresentationFramework.Tests (16)
System (1)
System.ComponentModel.Primitives (3)
System.ComponentModel.TypeConverter (1)
System.Drawing.Common.Tests (9)
System.Windows.Forms (2)
System.Windows.Forms.Analyzers.CSharp.Tests (1)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.Tests (193)
WindowsBase.Tests (22)
System\Windows\Input\ModifierKeysConverterTests.cs (3)
116Assert.Throws<InvalidEnumArgumentException>("value", () => converter.ConvertTo(value, typeof(string)));
117Assert.Throws<InvalidEnumArgumentException>("value", () => converter.ConvertTo(new CustomTypeDescriptorContext(), null, value, typeof(string)));
118Assert.Throws<InvalidEnumArgumentException>("value", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, value, typeof(string)));
System\Windows\Threading\DispatcherTests.cs (8)
81Assert.Throws<InvalidEnumArgumentException>("priority", () => Dispatcher.ValidatePriority(priority, "priority"));
82Assert.Throws<InvalidEnumArgumentException>("", () => Dispatcher.ValidatePriority(priority, ""));
83Assert.Throws<InvalidEnumArgumentException>(() => Dispatcher.ValidatePriority(priority, null));
120Assert.Throws<InvalidEnumArgumentException>("priority", () => Dispatcher.Yield(priority));
144Assert.Throws<InvalidEnumArgumentException>("priority", () => dispatcher.BeginInvoke(priority, (Action)(() => { })));
145Assert.Throws<InvalidEnumArgumentException>("priority", () => dispatcher.BeginInvoke(priority, (Action<object>)((arg) => { }), new object()));
146Assert.Throws<InvalidEnumArgumentException>("priority", () => dispatcher.BeginInvoke(priority, (Action<object, object>)((arg1, arg2) => { }), new object(), new object[] { new object() }));
147Assert.Throws<InvalidEnumArgumentException>("priority", () => dispatcher.BeginInvoke(priority, (Action<object, object>)((arg1, arg2) => { }), new object[] { new object(), new object() }));