247 references to InvalidEnumArgumentException
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
523throw new InvalidEnumArgumentException(paramName, (int)value, typeof(FieldType));
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
523throw new InvalidEnumArgumentException(paramName, (int)value, typeof(FieldType));
Microsoft.NET.Build.Containers (1)
AuthHandshakeMessageHandler.cs (1)
448throw new InvalidEnumArgumentException(nameof(mode), (int)mode, typeof(RegistryMode));
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Ole\DragDropHelper.cs (1)
343throw new InvalidEnumArgumentException(nameof(dropImageType), (int)dropImageType, typeof(DROPIMAGETYPE));
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\FileIO\FileSystem.vb (4)
1984Throw New InvalidEnumArgumentException(argName, argValue, GetType(DeleteDirectoryOption)) 1998Throw New InvalidEnumArgumentException(argName, argValue, GetType(RecycleOption)) 2012Throw New InvalidEnumArgumentException(argName, argValue, GetType(SearchOption)) 2026Throw New InvalidEnumArgumentException(argName, argValue, GetType(UICancelOption))
Microsoft.VisualBasic.Forms (5)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (2)
1006Throw New InvalidEnumArgumentException(paramName, value, GetType(AuthenticationMode)) 1016Throw New InvalidEnumArgumentException(paramName, value, GetType(ShutdownMode))
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
537Throw New InvalidEnumArgumentException(paramName, value, GetType(DiskSpaceExhaustedOption)) 547Throw New InvalidEnumArgumentException(paramName, value, GetType(LogFileCreationScheduleOption)) 557Throw New InvalidEnumArgumentException(paramName, value, GetType(LogFileLocation))
PresentationCore (40)
System\Windows\clipboard.cs (3)
61? throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)) 131throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)); 199throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\dataobject.cs (3)
287throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)); 329throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)); 391throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\EventManager.cs (1)
61throw new System.ComponentModel.InvalidEnumArgumentException("routingStrategy", (int)routingStrategy, typeof(RoutingStrategy));
System\Windows\Input\Command\KeyGesture.cs (2)
91throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 94throw new InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\Command\MouseActionConverter.cs (1)
100_ => throw new InvalidEnumArgumentException(nameof(value), (int)mouseAction, typeof(MouseAction))
System\Windows\Input\Command\MouseGesture.cs (4)
58throw new InvalidEnumArgumentException("mouseAction", (int)mouseAction, typeof(MouseAction)); 61throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 89throw new InvalidEnumArgumentException("value", (int)value, typeof(MouseAction)); 110throw new InvalidEnumArgumentException("value", (int)value, typeof(ModifierKeys));
System\Windows\Input\InputReport.cs (2)
76throw new System.ComponentModel.InvalidEnumArgumentException("mode", (int)mode, typeof(InputMode)); 96throw new System.ComponentModel.InvalidEnumArgumentException("type", (int)type, typeof(InputType));
System\Windows\Input\KeyboardDevice.cs (1)
205throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\KeyEventArgs.cs (1)
32throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\MouseButton.cs (1)
75throw new System.ComponentModel.InvalidEnumArgumentException("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseDevice.cs (1)
282throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\RawKeyboardInputReport.cs (1)
59throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawKeyboardActions));
System\Windows\Input\RawMouseInputReport.cs (1)
55throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawMouseActions));
System\Windows\Input\RawUIStateInputReport.cs (2)
38throw new System.ComponentModel.InvalidEnumArgumentException("action", (int)action, typeof(RawUIStateActions)); 40throw new System.ComponentModel.InvalidEnumArgumentException("targets", (int)targets, typeof(RawUIStateTargets));
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
50throw new InvalidEnumArgumentException("unit", (int)unit, typeof(StylusPointPropertyUnit));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
534throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
228throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\TextComposition.cs (1)
86throw new InvalidEnumArgumentException("autoComplete",
System\Windows\InterOp\HwndSource.cs (1)
980throw new InvalidEnumArgumentException("value", (int)value, typeof(SizeToContent));
System\Windows\InterOp\HwndTarget.cs (1)
658throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
System\Windows\LocalizabilityAttribute.cs (3)
40throw new InvalidEnumArgumentException( 76throw new InvalidEnumArgumentException("Readability", (int) value, typeof(Readability)); 96throw new InvalidEnumArgumentException("Modifiability", (int) value, typeof(Modifiability));
System\Windows\Media\FormattedText.cs (2)
281throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1347throw new InvalidEnumArgumentException("value", (int)value, typeof(TextTrimming));
System\Windows\Media\GlyphTypeface.cs (1)
131throw new InvalidEnumArgumentException("styleSimulations", (int)styleSimulations, typeof(StyleSimulations));
System\Windows\Media\RenderOptions.cs (1)
243throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
System\Windows\Media\textformatting\NumberSubstitution.cs (2)
54throw new InvalidEnumArgumentException("CultureSource", (int)value, typeof(NumberCultureSource)); 123throw new InvalidEnumArgumentException("Substitution", (int)value, typeof(NumberSubstitutionMethod));
System\Windows\Media\textformatting\TextFormatter.cs (1)
45throw new System.ComponentModel.InvalidEnumArgumentException("textFormattingMode", (int)textFormattingMode, typeof(TextFormattingMode));
PresentationFramework (24)
MS\Internal\IO\Packaging\ByteStream.cs (1)
215throw new System.ComponentModel.InvalidEnumArgumentException("origin",
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
56throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
56throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
System\Windows\Application.cs (1)
836throw new InvalidEnumArgumentException("value", (int)value, typeof(ShutdownMode));
System\Windows\Controls\TextChangedEventArgs.cs (1)
74throw new InvalidEnumArgumentException("action", (int)action, typeof(UndoAction));
System\Windows\Data\Binding.cs (2)
363throw new InvalidEnumArgumentException("value", (int) value, typeof(BindingMode)); 391throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Documents\ValidationHelper.cs (2)
73throw new InvalidEnumArgumentException(argumentName, (int)direction, typeof(LogicalDirection)); 85throw new InvalidEnumArgumentException(param, (int)edge, typeof(ElementEdge));
System\Windows\FrameworkContentElement.cs (1)
1490throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkElement.cs (1)
2628throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkPropertyMetadata.cs (2)
222throw new InvalidEnumArgumentException("defaultUpdateSourceTrigger", (int) defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger)); 481throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Input\KeyboardNavigation.cs (4)
2546throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2588throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2608throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2696throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
234throw new InvalidEnumArgumentException(nameof(origin), (int)origin, typeof(SeekOrigin));
System\Windows\Markup\XamlDesignerSerializationManager.cs (1)
73throw new InvalidEnumArgumentException("value", (int)value, typeof(XamlWriterMode));
System\Windows\MessageBox.cs (4)
372throw new InvalidEnumArgumentException ("button", (int)button, typeof(MessageBoxButton)); 376throw new InvalidEnumArgumentException ("icon", (int)icon, typeof(MessageBoxImage)); 380throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(MessageBoxResult)); 384throw new InvalidEnumArgumentException("options", (int)options, typeof(MessageBoxOptions));
System\Windows\Window.cs (1)
1120throw new InvalidEnumArgumentException("value", (int)value, typeof( WindowStartupLocation ));
System.Diagnostics.EventLog (3)
System\Diagnostics\EventData.cs (1)
43throw new InvalidEnumArgumentException(nameof(EntryType), (int)value, typeof(EventLogEntryType));
System\Diagnostics\EventLogInternal.cs (2)
1036throw new InvalidEnumArgumentException(nameof(action), (int)action, typeof(OverflowAction)); 1310throw new InvalidEnumArgumentException(nameof(type), (int)type, typeof(EventLogEntryType));
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\CounterCreationData.cs (1)
37throw new InvalidEnumArgumentException(nameof(PerformanceCounterType), (int)value, typeof(PerformanceCounterType));
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (1)
420throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ProcessPriorityClass));
System\Diagnostics\ProcessStartInfo.cs (1)
366throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ProcessWindowStyle));
System.DirectoryServices (55)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (1)
46throw new InvalidEnumArgumentException("value", (int)transport, typeof(ActiveDirectoryTransportType));
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\ActiveDirectorySchema.cs (1)
257throw new InvalidEnumArgumentException(nameof(type), (int)type, typeof(SchemaClassType));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (1)
954throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SchemaClassType));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (2)
588throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ActiveDirectorySyntax)); 1389throw new InvalidEnumArgumentException(nameof(syntax), (int)syntax, typeof(ActiveDirectorySyntax));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (1)
691throw new InvalidEnumArgumentException("value", (int)transport, typeof(ActiveDirectoryTransportType));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (1)
347throw new InvalidEnumArgumentException("value", (int)transport, typeof(ActiveDirectoryTransportType));
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (2)
230throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole)); 271throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole));
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (1)
233throw new InvalidEnumArgumentException(nameof(securityLevel), (int)securityLevel, typeof(ReplicationSecurityLevel));
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (2)
121throw new InvalidEnumArgumentException(nameof(contextType), (int)contextType, typeof(DirectoryContextType)); 152throw new InvalidEnumArgumentException(nameof(contextType), (int)contextType, typeof(DirectoryContextType));
System\DirectoryServices\ActiveDirectory\DirectoryEntryManager.cs (2)
228throw new InvalidEnumArgumentException(nameof(dn), (int)dn, typeof(WellKnownDN)); 364throw new InvalidEnumArgumentException(nameof(dn), (int)dn, typeof(WellKnownDN));
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\DomainController.cs (2)
319throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole)); 374throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole));
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\ActiveDirectory\ForestTrustDomainInformation.cs (1)
56throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ForestTrustDomainStatus));
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (2)
125throw new InvalidEnumArgumentException("value", (int)transport, typeof(ActiveDirectoryTransportType)); 559throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(NotificationStatus));
System\DirectoryServices\ActiveDirectory\RoleOwnerCollection.cs (4)
27throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole)); 45throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(ActiveDirectoryRole)); 85throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole)); 103throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(AdamRole));
System\DirectoryServices\ActiveDirectory\TopLevelName.cs (1)
40throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(TopLevelNameStatus));
System\DirectoryServices\ActiveDirectorySecurity.cs (3)
391throw new InvalidEnumArgumentException(nameof(access), (int)access, typeof(PropertyAccess)); 456throw new InvalidEnumArgumentException(nameof(inheritanceType), (int)inheritanceType, typeof(ActiveDirectorySecurityInheritance)); 466throw new InvalidEnumArgumentException(nameof(inheritanceType), (int)inheritanceType, typeof(ActiveDirectorySecurityInheritance));
System\DirectoryServices\DirectoryEntryConfiguration.cs (3)
30throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ReferralChasingOption)); 45throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SecurityMasks)); 87throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(PasswordEncodingMethod));
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\DirectorySynchronization.cs (1)
50throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DirectorySynchronizationOptions));
System\DirectoryServices\SortOption.cs (1)
41throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SortDirection));
System.DirectoryServices.AccountManagement (3)
System\DirectoryServices\AccountManagement\Context.cs (2)
390throw new InvalidEnumArgumentException(nameof(options), (int)options, typeof(ContextOptions)); 412throw new InvalidEnumArgumentException(nameof(contextType), (int)contextType, typeof(ContextType));
System\DirectoryServices\AccountManagement\Principal.cs (1)
921throw new InvalidEnumArgumentException(nameof(identityType), (int)identityType, typeof(IdentityType));
System.DirectoryServices.Protocols (9)
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (1)
239throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DirectoryAttributeOperation));
System\DirectoryServices\Protocols\common\DirectoryControl.cs (2)
426throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ExtendedDNFlag)); 515throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SearchOption));
System\DirectoryServices\Protocols\common\DirectoryRequest.cs (2)
257throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SearchScope)); 271throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DereferenceAlias));
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (3)
75throw new InvalidEnumArgumentException(nameof(authType), (int)authType, typeof(AuthType)); 129throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(AuthType)); 274throw new InvalidEnumArgumentException(nameof(partialMode), (int)partialMode, typeof(PartialResultProcessing));
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (1)
72throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ReferralChasingOptions));
System.Drawing.Common (32)
System\Drawing\Drawing2D\GraphicsPath.cs (1)
160throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(FillMode));
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
32throw new InvalidEnumArgumentException(nameof(linearGradientMode), (int)linearGradientMode, typeof(LinearGradientMode)); 278throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(WrapMode));
System\Drawing\Drawing2D\PathGradientBrush.cs (3)
38throw new InvalidEnumArgumentException(nameof(wrapMode), (int)wrapMode, typeof(WrapMode)); 79throw new InvalidEnumArgumentException(nameof(wrapMode), (int)wrapMode, typeof(WrapMode)); 403throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(WrapMode));
System\Drawing\FontConverter.cs (1)
245throw new InvalidEnumArgumentException(nameof(style), (int)fontStyle, typeof(FontStyle));
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\Imaging\BitmapData.cs (1)
83throw new ComponentModel.InvalidEnumArgumentException(nameof(value), (int)value, typeof(PixelFormat));
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\Drawing\Printing\PrinterResolution.cs (1)
40throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(PrinterResolutionKind));
System\Drawing\Printing\PrinterSettings.cs (2)
96throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Duplex)); 288throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(PrintRange));
System\Drawing\StringFormat.cs (4)
157throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(StringAlignment)); 181throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(StringAlignment)); 205throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(HotkeyPrefix)); 283throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(StringTrimming));
System\Drawing\TextureBrush.cs (3)
27throw new InvalidEnumArgumentException(nameof(wrapMode), (int)wrapMode, typeof(Drawing2D.WrapMode)); 42throw new InvalidEnumArgumentException(nameof(wrapMode), (int)wrapMode, typeof(Drawing2D.WrapMode)); 133throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Drawing2D.WrapMode));
System.Private.Windows.Core (1)
System\Private\Windows\Ole\DragDropHelper.cs (1)
343throw new InvalidEnumArgumentException(nameof(dropImageType), (int)dropImageType, typeof(DROPIMAGETYPE));
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
370throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SecurityKeyEntropyMode));
System.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportUsageHelper.cs (1)
24new InvalidEnumArgumentException("value", (int)value, typeof(WebSocketTransportUsage)));
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System.ServiceModel.Primitives (18)
System\IdentityModel\Tokens\SecurityKeyType.cs (1)
31throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
29throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\AuditLevel.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\AuditLogLocation.cs (1)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Channels\SecurityHeaderLayout.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\HostnameComparisonMode.cs (1)
31throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\SecurityKeyEntropyMode.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\SecurityTokenAttachmentMode.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
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\Security\Tokens\SecurityTokenInclusionMode.cs (1)
32throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\Tokens\SecurityTokenReferenceStyle.cs (1)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\Tokens\X509KeyIdentifierClauseType.cs (1)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\Security\X509CertificateValidationMode.cs (1)
56throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System\ServiceModel\TransferMode.cs (1)
43throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException(nameof(value), (int)value,
System.Windows.Forms (34)
_generated\1\Validation.cs (1)
870throw new System.ComponentModel.InvalidEnumArgumentException(parameterName, value, enumType);
System\Windows\Forms\Control.cs (1)
5306throw new InvalidEnumArgumentException(nameof(skipValue), value, typeof(GetChildAtPointSkip));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
892throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewAutoSizeColumnsMode)); 958throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewAutoSizeRowsMode));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
1710throw new InvalidEnumArgumentException(nameof(autoSizeColumnMode), (int)autoSizeColumnMode, typeof(DataGridViewAutoSizeColumnMode)); 1958throw new InvalidEnumArgumentException(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode)); 1992throw new InvalidEnumArgumentException(nameof(rowHeadersWidthSizeMode), (int)rowHeadersWidthSizeMode, typeof(DataGridViewRowHeadersWidthSizeMode)); 2137throw new InvalidEnumArgumentException(nameof(rowHeadersWidthSizeMode), (int)rowHeadersWidthSizeMode, typeof(DataGridViewRowHeadersWidthSizeMode)); 2359throw new InvalidEnumArgumentException(nameof(autoSizeRowsMode), (int)autoSizeRowsMode, typeof(DataGridViewAutoSizeRowsMode)); 2381throw new InvalidEnumArgumentException(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode)); 28162throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(ListSortDirection));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
489throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewTriState));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
2536throw new InvalidEnumArgumentException(nameof(flags), (int)flags, typeof(TextFormatFlags)); 2560throw new InvalidEnumArgumentException(nameof(flags), (int)flags, typeof(TextFormatFlags)); 2604throw new InvalidEnumArgumentException(nameof(flags), (int)flags, typeof(TextFormatFlags));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
86throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewContentAlignment));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
93throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewAutoSizeColumnMode)); 907throw new InvalidEnumArgumentException(nameof(autoSizeColumnMode), (int)autoSizeColumnMode, typeof(DataGridViewAutoSizeColumnMode));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
1282throw new InvalidEnumArgumentException(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode)); 1696throw new InvalidEnumArgumentException(nameof(paintParts), (int)paintParts, typeof(DataGridViewPaintParts));
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
419throw new InvalidEnumArgumentException(nameof(headerAutoResize), (int)headerAutoResize, typeof(ColumnHeaderAutoResizeStyle));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
379throw new InvalidEnumArgumentException(nameof(FirstDayOfWeek), (int)value, typeof(Day));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2645_ => throw new InvalidEnumArgumentException(nameof(fileType), (int)fileType, typeof(RichTextBoxStreamType)),
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
168throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(AutoCompleteSource));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
629throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ToolStripDropDownDirection)); 2054throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(ArrowDirection));
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
100throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(CheckState));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
180throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ToolStripDropDownDirection));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
365throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Keys));
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
366throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Orientation)); 537throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(TickStyle));
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
221throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(AutoValidate)); 1856throw new InvalidEnumArgumentException(nameof(validationConstraints), (int)validationConstraints, typeof(ValidationConstraints));
System\Windows\Forms\NativeWindow.cs (1)
823throw new InvalidEnumArgumentException(nameof(mode), (int)mode, typeof(UnhandledExceptionMode));
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
110throw new InvalidEnumArgumentException(nameof(style), (int)fontStyle, typeof(FontStyle));
System.Windows.Forms.Design (1)
_generated\1\Validation.cs (1)
17throw new System.ComponentModel.InvalidEnumArgumentException(parameterName, value, enumType);
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (2)
1034throw new InvalidEnumArgumentException(nameof(unit), (int)unit, typeof(TextUnit)); 1164throw new InvalidEnumArgumentException(nameof(unit), (int)unit, typeof(TextUnit));
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
174throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 916throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 1054throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit));