120 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.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)
1019Throw New InvalidEnumArgumentException(paramName, value, GetType(AuthenticationMode)) 1029Throw 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)
124throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)); 222throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)); 335throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\dataobject.cs (3)
375throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 431throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 527throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
System\Windows\EventManager.cs (1)
62throw new System.ComponentModel.InvalidEnumArgumentException("routingStrategy", (int)routingStrategy, typeof(RoutingStrategy));
System\Windows\Input\Command\KeyGesture.cs (2)
92throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 95throw new InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\Command\MouseActionConverter.cs (1)
101_ => throw new InvalidEnumArgumentException(nameof(value), (int)mouseAction, typeof(MouseAction))
System\Windows\Input\Command\MouseGesture.cs (4)
59throw new InvalidEnumArgumentException("mouseAction", (int)mouseAction, typeof(MouseAction)); 62throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 90throw new InvalidEnumArgumentException("value", (int)value, typeof(MouseAction)); 111throw new InvalidEnumArgumentException("value", (int)value, typeof(ModifierKeys));
System\Windows\Input\InputReport.cs (2)
77throw new System.ComponentModel.InvalidEnumArgumentException("mode", (int)mode, typeof(InputMode)); 97throw new System.ComponentModel.InvalidEnumArgumentException("type", (int)type, typeof(InputType));
System\Windows\Input\KeyboardDevice.cs (1)
206throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\KeyEventArgs.cs (1)
33throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\MouseButton.cs (1)
76throw new System.ComponentModel.InvalidEnumArgumentException("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseDevice.cs (1)
283throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\RawKeyboardInputReport.cs (1)
60throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawKeyboardActions));
System\Windows\Input\RawMouseInputReport.cs (1)
56throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawMouseActions));
System\Windows\Input\RawUIStateInputReport.cs (2)
39throw new System.ComponentModel.InvalidEnumArgumentException("action", (int)action, typeof(RawUIStateActions)); 41throw new System.ComponentModel.InvalidEnumArgumentException("targets", (int)targets, typeof(RawUIStateTargets));
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
51throw new InvalidEnumArgumentException("unit", (int)unit, typeof(StylusPointPropertyUnit));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
535throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
229throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\TextComposition.cs (1)
87throw new InvalidEnumArgumentException("autoComplete",
System\Windows\InterOp\HwndSource.cs (1)
981throw new InvalidEnumArgumentException("value", (int)value, typeof(SizeToContent));
System\Windows\InterOp\HwndTarget.cs (1)
659throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
System\Windows\LocalizabilityAttribute.cs (3)
41throw new InvalidEnumArgumentException( 77throw new InvalidEnumArgumentException("Readability", (int) value, typeof(Readability)); 97throw new InvalidEnumArgumentException("Modifiability", (int) value, typeof(Modifiability));
System\Windows\Media\FormattedText.cs (2)
282throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1359throw new InvalidEnumArgumentException("value", (int)value, typeof(TextTrimming));
System\Windows\Media\GlyphTypeface.cs (1)
132throw new InvalidEnumArgumentException("styleSimulations", (int)styleSimulations, typeof(StyleSimulations));
System\Windows\Media\RenderOptions.cs (1)
244throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
System\Windows\Media\textformatting\NumberSubstitution.cs (2)
55throw new InvalidEnumArgumentException("CultureSource", (int)value, typeof(NumberCultureSource)); 124throw new InvalidEnumArgumentException("Substitution", (int)value, typeof(NumberSubstitutionMethod));
System\Windows\Media\textformatting\TextFormatter.cs (1)
46throw new System.ComponentModel.InvalidEnumArgumentException("textFormattingMode", (int)textFormattingMode, typeof(TextFormattingMode));
PresentationFramework (24)
MS\Internal\IO\Packaging\ByteStream.cs (1)
216throw new System.ComponentModel.InvalidEnumArgumentException("origin",
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
57throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
57throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
System\Windows\Application.cs (1)
837throw new InvalidEnumArgumentException("value", (int)value, typeof(ShutdownMode));
System\Windows\Controls\TextChangedEventArgs.cs (1)
75throw new InvalidEnumArgumentException("action", (int)action, typeof(UndoAction));
System\Windows\Data\Binding.cs (2)
364throw new InvalidEnumArgumentException("value", (int) value, typeof(BindingMode)); 392throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Documents\ValidationHelper.cs (2)
74throw new InvalidEnumArgumentException(argumentName, (int)direction, typeof(LogicalDirection)); 86throw new InvalidEnumArgumentException(param, (int)edge, typeof(ElementEdge));
System\Windows\FrameworkContentElement.cs (1)
1491throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkElement.cs (1)
2629throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkPropertyMetadata.cs (2)
223throw new InvalidEnumArgumentException("defaultUpdateSourceTrigger", (int) defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger)); 482throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Input\KeyboardNavigation.cs (4)
2548throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2590throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2610throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2698throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
235throw new InvalidEnumArgumentException(nameof(origin), (int)origin, typeof(SeekOrigin));
System\Windows\Markup\XamlDesignerSerializationManager.cs (1)
74throw new InvalidEnumArgumentException("value", (int)value, typeof(XamlWriterMode));
System\Windows\MessageBox.cs (4)
350throw new InvalidEnumArgumentException ("button", (int)button, typeof(MessageBoxButton)); 354throw new InvalidEnumArgumentException ("icon", (int)icon, typeof(MessageBoxImage)); 358throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(MessageBoxResult)); 362throw new InvalidEnumArgumentException("options", (int)options, typeof(MessageBoxOptions));
System\Windows\Window.cs (1)
1127throw new InvalidEnumArgumentException("value", (int)value, typeof( WindowStartupLocation ));
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (1)
485throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ProcessPriorityClass));
System\Diagnostics\ProcessStartInfo.cs (1)
179throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(ProcessWindowStyle));
System.Private.Windows.Core (1)
System\Private\Windows\Ole\DragDropHelper.cs (1)
335throw 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.NetFramingBase (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25throw 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 (33)
System\Windows\Forms\Control.cs (1)
5217throw new InvalidEnumArgumentException(nameof(skipValue), value, typeof(GetChildAtPointSkip));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
896throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewAutoSizeColumnsMode)); 962throw 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)); 28172throw new InvalidEnumArgumentException(nameof(direction), (int)direction, typeof(ListSortDirection));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
503throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewTriState));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
2547throw new InvalidEnumArgumentException(nameof(flags), (int)flags, typeof(TextFormatFlags)); 2571throw new InvalidEnumArgumentException(nameof(flags), (int)flags, typeof(TextFormatFlags)); 2615throw 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)
91throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(DataGridViewAutoSizeColumnMode)); 905throw new InvalidEnumArgumentException(nameof(autoSizeColumnMode), (int)autoSizeColumnMode, typeof(DataGridViewAutoSizeColumnMode));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
1278throw new InvalidEnumArgumentException(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode)); 1692throw new InvalidEnumArgumentException(nameof(paintParts), (int)paintParts, typeof(DataGridViewPaintParts));
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
422throw new InvalidEnumArgumentException(nameof(headerAutoResize), (int)headerAutoResize, typeof(ColumnHeaderAutoResizeStyle));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
382throw new InvalidEnumArgumentException(nameof(FirstDayOfWeek), (int)value, typeof(Day));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2654_ => 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)); 2060throw 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)
367throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(Orientation)); 538throw 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)); 1862throw new InvalidEnumArgumentException(nameof(validationConstraints), (int)validationConstraints, typeof(ValidationConstraints));
System\Windows\Forms\NativeWindow.cs (1)
829throw 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.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (2)
1032throw new InvalidEnumArgumentException(nameof(unit), (int)unit, typeof(TextUnit)); 1162throw new InvalidEnumArgumentException(nameof(unit), (int)unit, typeof(TextUnit));
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
175throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 917throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 1055throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit));