261 instantiations of InvalidEnumArgumentException
Aspire.Hosting (1)
Microsoft.Data.Analysis (1)
Microsoft.Data.Analysis.Tests (1)
Microsoft.Maui.Controls (4)
Microsoft.NET.Build.Containers (1)
Microsoft.Private.Windows.Core (1)
Microsoft.VisualBasic.Core (4)
Microsoft.VisualBasic.Forms (5)
PresentationCore (48)
PresentationFramework (24)
System.Data.Common (1)
System.Diagnostics.EventLog (3)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (2)
System.DirectoryServices (55)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchedule.cs (6)
101throw new InvalidEnumArgumentException(nameof(day), (int)day, typeof(DayOfWeek));
104throw new InvalidEnumArgumentException(nameof(fromHour), (int)fromHour, typeof(HourOfDay));
107throw new InvalidEnumArgumentException(nameof(fromMinute), (int)fromMinute, typeof(MinuteOfHour));
110throw new InvalidEnumArgumentException(nameof(toHour), (int)toHour, typeof(HourOfDay));
113throw new InvalidEnumArgumentException(nameof(toMinute), (int)toMinute, typeof(MinuteOfHour));
133throw new InvalidEnumArgumentException(nameof(days), (int)days[i], typeof(DayOfWeek));
System\DirectoryServices\ActiveDirectory\Domain.cs (6)
263throw new InvalidEnumArgumentException(nameof(domainMode), (int)domainMode, typeof(DomainMode));
622throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(TrustDirection));
662throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(TrustDirection));
686throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(TrustDirection));
733throw new InvalidEnumArgumentException(nameof(newTrustDirection), (int)newTrustDirection, typeof(TrustDirection));
752throw new InvalidEnumArgumentException(nameof(newTrustDirection), (int)newTrustDirection, typeof(TrustDirection));
System\DirectoryServices\ActiveDirectory\Forest.cs (6)
218throw new InvalidEnumArgumentException(nameof(forestMode), (int)forestMode, typeof(ForestMode));
434throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(TrustDirection));
474throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(TrustDirection));
498throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(TrustDirection));
545throw new InvalidEnumArgumentException(nameof(newTrustDirection), (int)newTrustDirection, typeof(TrustDirection));
564throw new InvalidEnumArgumentException(nameof(newTrustDirection), (int)newTrustDirection, typeof(TrustDirection));
System\DirectoryServices\DirectorySearcher.cs (5)
250throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ReferralChasingOption));
266throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SearchScope));
441throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DereferenceAlias));
459throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SecurityMasks));
476throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ExtendedDN));
System.DirectoryServices.AccountManagement (3)
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 (34)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Design (1)
System.Windows.Forms.Primitives (2)
UIAutomationClientSideProviders (3)
18 references to InvalidEnumArgumentException
Microsoft.CodeAnalysis.Features (1)
netstandard (1)
PresentationFramework (9)
System (1)
System.ComponentModel.Primitives (3)
System.ComponentModel.TypeConverter (1)
System.Windows.Forms (2)