152 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)
1017
Throw New
InvalidEnumArgumentException
(paramName, value, GetType(AuthenticationMode))
1027
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)
61
? throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat))
131
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
199
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\dataobject.cs (3)
287
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
329
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
391
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\EventManager.cs (1)
61
throw new System.ComponentModel.
InvalidEnumArgumentException
("routingStrategy", (int)routingStrategy, typeof(RoutingStrategy));
System\Windows\Input\Command\KeyGesture.cs (2)
91
throw new
InvalidEnumArgumentException
("modifiers", (int)modifiers, typeof(ModifierKeys));
94
throw 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)
58
throw new
InvalidEnumArgumentException
("mouseAction", (int)mouseAction, typeof(MouseAction));
61
throw new
InvalidEnumArgumentException
("modifiers", (int)modifiers, typeof(ModifierKeys));
89
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(MouseAction));
110
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(ModifierKeys));
System\Windows\Input\InputReport.cs (2)
76
throw new System.ComponentModel.
InvalidEnumArgumentException
("mode", (int)mode, typeof(InputMode));
96
throw new System.ComponentModel.
InvalidEnumArgumentException
("type", (int)type, typeof(InputType));
System\Windows\Input\KeyboardDevice.cs (1)
205
throw new System.ComponentModel.
InvalidEnumArgumentException
("key", (int)key, typeof(Key));
System\Windows\Input\KeyEventArgs.cs (1)
32
throw new System.ComponentModel.
InvalidEnumArgumentException
("key", (int)key, typeof(Key));
System\Windows\Input\MouseButton.cs (1)
75
throw new System.ComponentModel.
InvalidEnumArgumentException
("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseDevice.cs (1)
282
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\RawKeyboardInputReport.cs (1)
59
throw new System.ComponentModel.
InvalidEnumArgumentException
("actions", (int)actions, typeof(RawKeyboardActions));
System\Windows\Input\RawMouseInputReport.cs (1)
55
throw new System.ComponentModel.
InvalidEnumArgumentException
("actions", (int)actions, typeof(RawMouseActions));
System\Windows\Input\RawUIStateInputReport.cs (2)
38
throw new System.ComponentModel.
InvalidEnumArgumentException
("action", (int)action, typeof(RawUIStateActions));
40
throw new System.ComponentModel.
InvalidEnumArgumentException
("targets", (int)targets, typeof(RawUIStateTargets));
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
50
throw new
InvalidEnumArgumentException
("unit", (int)unit, typeof(StylusPointPropertyUnit));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
534
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
228
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\TextComposition.cs (1)
86
throw new
InvalidEnumArgumentException
("autoComplete",
System\Windows\InterOp\HwndSource.cs (1)
980
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(SizeToContent));
System\Windows\InterOp\HwndTarget.cs (1)
658
throw new System.ComponentModel.
InvalidEnumArgumentException
("value", (int)value, typeof(RenderMode));
System\Windows\LocalizabilityAttribute.cs (3)
40
throw new
InvalidEnumArgumentException
(
76
throw new
InvalidEnumArgumentException
("Readability", (int) value, typeof(Readability));
96
throw new
InvalidEnumArgumentException
("Modifiability", (int) value, typeof(Modifiability));
System\Windows\Media\FormattedText.cs (2)
281
throw new
InvalidEnumArgumentException
(parameterName, (int)flowDirection, typeof(FlowDirection));
1358
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(TextTrimming));
System\Windows\Media\GlyphTypeface.cs (1)
131
throw new
InvalidEnumArgumentException
("styleSimulations", (int)styleSimulations, typeof(StyleSimulations));
System\Windows\Media\RenderOptions.cs (1)
243
throw new System.ComponentModel.
InvalidEnumArgumentException
("value", (int)value, typeof(RenderMode));
System\Windows\Media\textformatting\NumberSubstitution.cs (2)
54
throw new
InvalidEnumArgumentException
("CultureSource", (int)value, typeof(NumberCultureSource));
123
throw new
InvalidEnumArgumentException
("Substitution", (int)value, typeof(NumberSubstitutionMethod));
System\Windows\Media\textformatting\TextFormatter.cs (1)
45
throw new System.ComponentModel.
InvalidEnumArgumentException
("textFormattingMode", (int)textFormattingMode, typeof(TextFormattingMode));
PresentationFramework (24)
MS\Internal\IO\Packaging\ByteStream.cs (1)
215
throw new System.ComponentModel.
InvalidEnumArgumentException
("origin",
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
56
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(AnnotationAction));
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
56
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(AnnotationAction));
System\Windows\Application.cs (1)
836
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(ShutdownMode));
System\Windows\Controls\TextChangedEventArgs.cs (1)
74
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(UndoAction));
System\Windows\Data\Binding.cs (2)
363
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(BindingMode));
391
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Documents\ValidationHelper.cs (2)
73
throw new
InvalidEnumArgumentException
(argumentName, (int)direction, typeof(LogicalDirection));
85
throw new
InvalidEnumArgumentException
(param, (int)edge, typeof(ElementEdge));
System\Windows\FrameworkContentElement.cs (1)
1490
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkElement.cs (1)
2628
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkPropertyMetadata.cs (2)
222
throw new
InvalidEnumArgumentException
("defaultUpdateSourceTrigger", (int) defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger));
481
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Input\KeyboardNavigation.cs (4)
2546
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2588
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2608
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2696
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
234
throw new
InvalidEnumArgumentException
(nameof(origin), (int)origin, typeof(SeekOrigin));
System\Windows\Markup\XamlDesignerSerializationManager.cs (1)
73
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(XamlWriterMode));
System\Windows\MessageBox.cs (4)
372
throw new
InvalidEnumArgumentException
("button", (int)button, typeof(MessageBoxButton));
376
throw new
InvalidEnumArgumentException
("icon", (int)icon, typeof(MessageBoxImage));
380
throw new
InvalidEnumArgumentException
("defaultResult", (int)defaultResult, typeof(MessageBoxResult));
384
throw new
InvalidEnumArgumentException
("options", (int)options, typeof(MessageBoxOptions));
System\Windows\Window.cs (1)
1126
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.Drawing.Common (32)
System\Drawing\Drawing2D\GraphicsPath.cs (1)
160
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(FillMode));
System\Drawing\Drawing2D\LinearGradientBrush.cs (2)
32
throw new
InvalidEnumArgumentException
(nameof(linearGradientMode), (int)linearGradientMode, typeof(LinearGradientMode));
278
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(WrapMode));
System\Drawing\Drawing2D\PathGradientBrush.cs (3)
38
throw new
InvalidEnumArgumentException
(nameof(wrapMode), (int)wrapMode, typeof(WrapMode));
79
throw new
InvalidEnumArgumentException
(nameof(wrapMode), (int)wrapMode, typeof(WrapMode));
403
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(WrapMode));
System\Drawing\FontConverter.cs (1)
245
throw new
InvalidEnumArgumentException
(nameof(style), (int)fontStyle, typeof(FontStyle));
System\Drawing\Graphics.cs (8)
234
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Drawing2D.CompositingMode));
251
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Drawing2D.CompositingQuality));
291
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Drawing2D.InterpolationMode));
339
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(GraphicsUnit));
356
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(PixelOffsetMode));
384
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Drawing2D.SmoothingMode));
415
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(TextRenderingHint));
2729
throw new
InvalidEnumArgumentException
(nameof(copyPixelOperation), (int)copyPixelOperation, typeof(CopyPixelOperation));
System\Drawing\Imaging\BitmapData.cs (1)
83
throw new ComponentModel.
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(PixelFormat));
System\Drawing\Pen.cs (6)
204
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(LineCap));
246
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(LineCap));
325
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(DashCap));
354
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(LineJoin));
407
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(PenAlignment));
663
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(DashStyle));
System\Drawing\Printing\PrinterResolution.cs (1)
40
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(PrinterResolutionKind));
System\Drawing\Printing\PrinterSettings.cs (2)
96
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Duplex));
288
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(PrintRange));
System\Drawing\StringFormat.cs (4)
157
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(StringAlignment));
181
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(StringAlignment));
205
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(HotkeyPrefix));
283
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(StringTrimming));
System\Drawing\TextureBrush.cs (3)
27
throw new
InvalidEnumArgumentException
(nameof(wrapMode), (int)wrapMode, typeof(Drawing2D.WrapMode));
42
throw new
InvalidEnumArgumentException
(nameof(wrapMode), (int)wrapMode, typeof(Drawing2D.WrapMode));
133
throw new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(Drawing2D.WrapMode));
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));
28165
throw new
InvalidEnumArgumentException
(nameof(direction), (int)direction, typeof(ListSortDirection));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
497
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)
1282
throw new
InvalidEnumArgumentException
(nameof(autoSizeRowMode), (int)autoSizeRowMode, typeof(DataGridViewAutoSizeRowMode));
1696
throw new
InvalidEnumArgumentException
(nameof(paintParts), (int)paintParts, typeof(DataGridViewPaintParts));
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (1)
419
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));
1856
throw new
InvalidEnumArgumentException
(nameof(validationConstraints), (int)validationConstraints, typeof(ValidationConstraints));
System\Windows\Forms\NativeWindow.cs (1)
823
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)
1034
throw new
InvalidEnumArgumentException
(nameof(unit), (int)unit, typeof(TextUnit));
1164
throw new
InvalidEnumArgumentException
(nameof(unit), (int)unit, typeof(TextUnit));
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
174
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));
916
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));
1054
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));