120 references to InvalidEnumArgumentException
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
523
throw new
InvalidEnumArgumentException
(paramName, (int)value, typeof(FieldType));
Microsoft.Data.Analysis.Tests (1)
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
523
throw new
InvalidEnumArgumentException
(paramName, (int)value, typeof(FieldType));
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\FileIO\FileSystem.vb (4)
1984
Throw New
InvalidEnumArgumentException
(argName, argValue, GetType(DeleteDirectoryOption))
1998
Throw New
InvalidEnumArgumentException
(argName, argValue, GetType(RecycleOption))
2012
Throw New
InvalidEnumArgumentException
(argName, argValue, GetType(SearchOption))
2026
Throw New
InvalidEnumArgumentException
(argName, argValue, GetType(UICancelOption))
Microsoft.VisualBasic.Forms (5)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (2)
1019
Throw New
InvalidEnumArgumentException
(paramName, value, GetType(AuthenticationMode))
1029
Throw New
InvalidEnumArgumentException
(paramName, value, GetType(ShutdownMode))
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
537
Throw New
InvalidEnumArgumentException
(paramName, value, GetType(DiskSpaceExhaustedOption))
547
Throw New
InvalidEnumArgumentException
(paramName, value, GetType(LogFileCreationScheduleOption))
557
Throw New
InvalidEnumArgumentException
(paramName, value, GetType(LogFileLocation))
PresentationCore (40)
System\Windows\clipboard.cs (3)
124
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
222
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
335
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\dataobject.cs (3)
375
throw new
InvalidEnumArgumentException
("format", (int)format, typeof(TextDataFormat));
431
throw new
InvalidEnumArgumentException
("format", (int)format, typeof(TextDataFormat));
527
throw new
InvalidEnumArgumentException
("format", (int)format, typeof(TextDataFormat));
System\Windows\EventManager.cs (1)
62
throw new System.ComponentModel.
InvalidEnumArgumentException
("routingStrategy", (int)routingStrategy, typeof(RoutingStrategy));
System\Windows\Input\Command\KeyGesture.cs (2)
92
throw new
InvalidEnumArgumentException
("modifiers", (int)modifiers, typeof(ModifierKeys));
95
throw 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)
59
throw new
InvalidEnumArgumentException
("mouseAction", (int)mouseAction, typeof(MouseAction));
62
throw new
InvalidEnumArgumentException
("modifiers", (int)modifiers, typeof(ModifierKeys));
90
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(MouseAction));
111
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(ModifierKeys));
System\Windows\Input\InputReport.cs (2)
77
throw new System.ComponentModel.
InvalidEnumArgumentException
("mode", (int)mode, typeof(InputMode));
97
throw new System.ComponentModel.
InvalidEnumArgumentException
("type", (int)type, typeof(InputType));
System\Windows\Input\KeyboardDevice.cs (1)
206
throw new System.ComponentModel.
InvalidEnumArgumentException
("key", (int)key, typeof(Key));
System\Windows\Input\KeyEventArgs.cs (1)
33
throw new System.ComponentModel.
InvalidEnumArgumentException
("key", (int)key, typeof(Key));
System\Windows\Input\MouseButton.cs (1)
76
throw new System.ComponentModel.
InvalidEnumArgumentException
("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseDevice.cs (1)
283
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\RawKeyboardInputReport.cs (1)
60
throw new System.ComponentModel.
InvalidEnumArgumentException
("actions", (int)actions, typeof(RawKeyboardActions));
System\Windows\Input\RawMouseInputReport.cs (1)
56
throw new System.ComponentModel.
InvalidEnumArgumentException
("actions", (int)actions, typeof(RawMouseActions));
System\Windows\Input\RawUIStateInputReport.cs (2)
39
throw new System.ComponentModel.
InvalidEnumArgumentException
("action", (int)action, typeof(RawUIStateActions));
41
throw new System.ComponentModel.
InvalidEnumArgumentException
("targets", (int)targets, typeof(RawUIStateTargets));
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
51
throw new
InvalidEnumArgumentException
("unit", (int)unit, typeof(StylusPointPropertyUnit));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
535
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
229
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\TextComposition.cs (1)
87
throw new
InvalidEnumArgumentException
("autoComplete",
System\Windows\InterOp\HwndSource.cs (1)
981
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(SizeToContent));
System\Windows\InterOp\HwndTarget.cs (1)
659
throw new System.ComponentModel.
InvalidEnumArgumentException
("value", (int)value, typeof(RenderMode));
System\Windows\LocalizabilityAttribute.cs (3)
41
throw new
InvalidEnumArgumentException
(
77
throw new
InvalidEnumArgumentException
("Readability", (int) value, typeof(Readability));
97
throw new
InvalidEnumArgumentException
("Modifiability", (int) value, typeof(Modifiability));
System\Windows\Media\FormattedText.cs (2)
282
throw new
InvalidEnumArgumentException
(parameterName, (int)flowDirection, typeof(FlowDirection));
1359
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(TextTrimming));
System\Windows\Media\GlyphTypeface.cs (1)
132
throw new
InvalidEnumArgumentException
("styleSimulations", (int)styleSimulations, typeof(StyleSimulations));
System\Windows\Media\RenderOptions.cs (1)
244
throw new System.ComponentModel.
InvalidEnumArgumentException
("value", (int)value, typeof(RenderMode));
System\Windows\Media\textformatting\NumberSubstitution.cs (2)
55
throw new
InvalidEnumArgumentException
("CultureSource", (int)value, typeof(NumberCultureSource));
124
throw new
InvalidEnumArgumentException
("Substitution", (int)value, typeof(NumberSubstitutionMethod));
System\Windows\Media\textformatting\TextFormatter.cs (1)
46
throw new System.ComponentModel.
InvalidEnumArgumentException
("textFormattingMode", (int)textFormattingMode, typeof(TextFormattingMode));
PresentationFramework (24)
MS\Internal\IO\Packaging\ByteStream.cs (1)
216
throw new System.ComponentModel.
InvalidEnumArgumentException
("origin",
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
57
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(AnnotationAction));
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
57
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(AnnotationAction));
System\Windows\Application.cs (1)
837
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(ShutdownMode));
System\Windows\Controls\TextChangedEventArgs.cs (1)
75
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(UndoAction));
System\Windows\Data\Binding.cs (2)
364
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(BindingMode));
392
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Documents\ValidationHelper.cs (2)
74
throw new
InvalidEnumArgumentException
(argumentName, (int)direction, typeof(LogicalDirection));
86
throw new
InvalidEnumArgumentException
(param, (int)edge, typeof(ElementEdge));
System\Windows\FrameworkContentElement.cs (1)
1491
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkElement.cs (1)
2629
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkPropertyMetadata.cs (2)
223
throw new
InvalidEnumArgumentException
("defaultUpdateSourceTrigger", (int) defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger));
482
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Input\KeyboardNavigation.cs (4)
2548
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2590
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2610
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2698
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
235
throw new
InvalidEnumArgumentException
(nameof(origin), (int)origin, typeof(SeekOrigin));
System\Windows\Markup\XamlDesignerSerializationManager.cs (1)
74
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(XamlWriterMode));
System\Windows\MessageBox.cs (4)
350
throw new
InvalidEnumArgumentException
("button", (int)button, typeof(MessageBoxButton));
354
throw new
InvalidEnumArgumentException
("icon", (int)icon, typeof(MessageBoxImage));
358
throw new
InvalidEnumArgumentException
("defaultResult", (int)defaultResult, typeof(MessageBoxResult));
362
throw new
InvalidEnumArgumentException
("options", (int)options, typeof(MessageBoxOptions));
System\Windows\Window.cs (1)
1127
throw new
InvalidEnumArgumentException
("value", (int)value, typeof( WindowStartupLocation ));
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (1)
485
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(ProcessPriorityClass));
System\Diagnostics\ProcessStartInfo.cs (1)
179
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(ProcessWindowStyle));
System.Private.Windows.Core (1)
System\Private\Windows\Ole\DragDropHelper.cs (1)
335
throw new
InvalidEnumArgumentException
(nameof(dropImageType), (int)dropImageType, typeof(DROPIMAGETYPE));
System.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
370
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(SecurityKeyEntropyMode));
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
(nameof(value), (int)value,
System.Windows.Forms (33)
System\Windows\Forms\Control.cs (1)
5217
throw new
InvalidEnumArgumentException
(nameof(skipValue), value, typeof(GetChildAtPointSkip));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
896
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(DataGridViewAutoSizeColumnsMode));
962
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(DataGridViewAutoSizeRowsMode));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
1710
throw new
InvalidEnumArgumentException
(nameof(autoSizeColumnMode), (int)autoSizeColumnMode, typeof(DataGridViewAutoSizeColumnMode));
1958
throw new
InvalidEnumArgumentException
(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode));
1992
throw new
InvalidEnumArgumentException
(nameof(rowHeadersWidthSizeMode), (int)rowHeadersWidthSizeMode, typeof(DataGridViewRowHeadersWidthSizeMode));
2137
throw new
InvalidEnumArgumentException
(nameof(rowHeadersWidthSizeMode), (int)rowHeadersWidthSizeMode, typeof(DataGridViewRowHeadersWidthSizeMode));
2359
throw new
InvalidEnumArgumentException
(nameof(autoSizeRowsMode), (int)autoSizeRowsMode, typeof(DataGridViewAutoSizeRowsMode));
2381
throw new
InvalidEnumArgumentException
(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode));
28172
throw new
InvalidEnumArgumentException
(nameof(direction), (int)direction, typeof(ListSortDirection));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
503
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(DataGridViewTriState));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
2547
throw new
InvalidEnumArgumentException
(nameof(flags), (int)flags, typeof(TextFormatFlags));
2571
throw new
InvalidEnumArgumentException
(nameof(flags), (int)flags, typeof(TextFormatFlags));
2615
throw new
InvalidEnumArgumentException
(nameof(flags), (int)flags, typeof(TextFormatFlags));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (1)
86
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(DataGridViewContentAlignment));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
91
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(DataGridViewAutoSizeColumnMode));
905
throw new
InvalidEnumArgumentException
(nameof(autoSizeColumnMode), (int)autoSizeColumnMode, typeof(DataGridViewAutoSizeColumnMode));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
1278
throw new
InvalidEnumArgumentException
(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode));
1692
throw new
InvalidEnumArgumentException
(nameof(paintParts), (int)paintParts, typeof(DataGridViewPaintParts));
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
422
throw new
InvalidEnumArgumentException
(nameof(headerAutoResize), (int)headerAutoResize, typeof(ColumnHeaderAutoResizeStyle));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
382
throw 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)
168
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(AutoCompleteSource));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
629
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(ToolStripDropDownDirection));
2060
throw new
InvalidEnumArgumentException
(nameof(direction), (int)direction, typeof(ArrowDirection));
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
100
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(CheckState));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
180
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(ToolStripDropDownDirection));
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
365
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Keys));
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
367
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Orientation));
538
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(TickStyle));
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
221
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(AutoValidate));
1862
throw new
InvalidEnumArgumentException
(nameof(validationConstraints), (int)validationConstraints, typeof(ValidationConstraints));
System\Windows\Forms\NativeWindow.cs (1)
829
throw new
InvalidEnumArgumentException
(nameof(mode), (int)mode, typeof(UnhandledExceptionMode));
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
110
throw new
InvalidEnumArgumentException
(nameof(style), (int)fontStyle, typeof(FontStyle));
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Automation\UiaTextRange.cs (2)
1032
throw new
InvalidEnumArgumentException
(nameof(unit), (int)unit, typeof(TextUnit));
1162
throw new
InvalidEnumArgumentException
(nameof(unit), (int)unit, typeof(TextUnit));
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
175
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));
917
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));
1055
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));