105 instantiations of InvalidEnumArgumentException
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))
PresentationCore (48)
System\Windows\clipboard.cs (3)
133
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
231
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
344
throw new
InvalidEnumArgumentException
(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\dataobject.cs (3)
389
throw new
InvalidEnumArgumentException
("format", (int)format, typeof(TextDataFormat));
445
throw new
InvalidEnumArgumentException
("format", (int)format, typeof(TextDataFormat));
541
throw new
InvalidEnumArgumentException
("format", (int)format, typeof(TextDataFormat));
System\Windows\EventManager.cs (1)
68
throw new System.ComponentModel.
InvalidEnumArgumentException
("routingStrategy", (int)routingStrategy, typeof(RoutingStrategy));
System\Windows\Input\Command\KeyGesture.cs (2)
95
throw new
InvalidEnumArgumentException
("modifiers", (int)modifiers, typeof(ModifierKeys));
98
throw new
InvalidEnumArgumentException
("key", (int)key, typeof(Key));
System\Windows\Input\Command\MouseActionConverter.cs (1)
136
throw new
InvalidEnumArgumentException
("value", (int)mouseActionValue, typeof(MouseAction));
System\Windows\Input\Command\MouseGesture.cs (4)
62
throw new
InvalidEnumArgumentException
("mouseAction", (int)mouseAction, typeof(MouseAction));
65
throw new
InvalidEnumArgumentException
("modifiers", (int)modifiers, typeof(ModifierKeys));
93
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(MouseAction));
114
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(ModifierKeys));
System\Windows\Input\InputReport.cs (2)
92
throw new System.ComponentModel.
InvalidEnumArgumentException
("mode", (int)mode, typeof(InputMode));
112
throw new System.ComponentModel.
InvalidEnumArgumentException
("type", (int)type, typeof(InputType));
System\Windows\Input\KeyboardDevice.cs (1)
232
throw new System.ComponentModel.
InvalidEnumArgumentException
("key", (int)key, typeof(Key));
System\Windows\Input\KeyEventArgs.cs (1)
39
throw new System.ComponentModel.
InvalidEnumArgumentException
("key", (int)key, typeof(Key));
System\Windows\Input\MouseButton.cs (1)
81
throw new System.ComponentModel.
InvalidEnumArgumentException
("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseDevice.cs (1)
317
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\RawKeyboardInputReport.cs (1)
66
throw new System.ComponentModel.
InvalidEnumArgumentException
("actions", (int)actions, typeof(RawKeyboardActions));
System\Windows\Input\RawMouseInputReport.cs (1)
64
throw new System.ComponentModel.
InvalidEnumArgumentException
("actions", (int)actions, typeof(RawMouseActions));
System\Windows\Input\RawUIStateInputReport.cs (2)
45
throw new System.ComponentModel.
InvalidEnumArgumentException
("action", (int)action, typeof(RawUIStateActions));
47
throw new System.ComponentModel.
InvalidEnumArgumentException
("targets", (int)targets, typeof(RawUIStateTargets));
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
192
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, nameof(actions)));
248
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, nameof(actions)));
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (1)
162
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, nameof(systemGesture)));
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
60
throw new
InvalidEnumArgumentException
("unit", (int)unit, typeof(StylusPointPropertyUnit));
System\Windows\Input\Stylus\Common\StylusSystemGestureEventArgs.cs (2)
41
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, "systemGesture"));
83
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, "systemGesture"));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
559
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
262
throw new System.ComponentModel.
InvalidEnumArgumentException
("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\TextComposition.cs (1)
99
throw new
InvalidEnumArgumentException
("autoComplete",
System\Windows\InterOp\HwndSource.cs (1)
1003
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(SizeToContent));
System\Windows\InterOp\HwndTarget.cs (1)
674
throw new System.ComponentModel.
InvalidEnumArgumentException
("value", (int)value, typeof(RenderMode));
System\Windows\LocalizabilityAttribute.cs (3)
42
throw new
InvalidEnumArgumentException
(
78
throw new
InvalidEnumArgumentException
("Readability", (int) value, typeof(Readability));
98
throw new
InvalidEnumArgumentException
("Modifiability", (int) value, typeof(Modifiability));
System\Windows\Media\Animation\ClockController.cs (2)
170
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
212
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\Animation\TimeManager.cs (1)
272
throw new
InvalidEnumArgumentException
(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\FormattedText.cs (2)
301
throw new
InvalidEnumArgumentException
(parameterName, (int)flowDirection, typeof(FlowDirection));
1395
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(TextTrimming));
System\Windows\Media\GlyphTypeface.cs (1)
140
throw new
InvalidEnumArgumentException
("styleSimulations", (int)styleSimulations, typeof(StyleSimulations));
System\Windows\Media\RenderOptions.cs (1)
248
throw new System.ComponentModel.
InvalidEnumArgumentException
("value", (int)value, typeof(RenderMode));
System\Windows\Media\textformatting\NumberSubstitution.cs (2)
72
throw new
InvalidEnumArgumentException
("CultureSource", (int)value, typeof(NumberCultureSource));
141
throw new
InvalidEnumArgumentException
("Substitution", (int)value, typeof(NumberSubstitutionMethod));
System\Windows\Media\textformatting\TextFormatter.cs (1)
48
throw new System.ComponentModel.
InvalidEnumArgumentException
("textFormattingMode", (int)textFormattingMode, typeof(TextFormattingMode));
PresentationFramework (24)
MS\Internal\IO\Packaging\ByteStream.cs (1)
220
throw new System.ComponentModel.
InvalidEnumArgumentException
("origin",
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
58
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(AnnotationAction));
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
58
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(AnnotationAction));
System\Windows\Application.cs (1)
870
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(ShutdownMode));
System\Windows\Controls\TextChangedEventArgs.cs (1)
77
throw new
InvalidEnumArgumentException
("action", (int)action, typeof(UndoAction));
System\Windows\Data\Binding.cs (2)
389
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(BindingMode));
417
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Documents\ValidationHelper.cs (2)
76
throw new
InvalidEnumArgumentException
(argumentName, (int)direction, typeof(LogicalDirection));
88
throw new
InvalidEnumArgumentException
(param, (int)edge, typeof(ElementEdge));
System\Windows\FrameworkContentElement.cs (1)
1511
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkElement.cs (1)
2641
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkPropertyMetadata.cs (2)
225
throw new
InvalidEnumArgumentException
("defaultUpdateSourceTrigger", (int) defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger));
484
throw new
InvalidEnumArgumentException
("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Input\KeyboardNavigation.cs (4)
2558
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2600
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2620
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
2708
throw new System.ComponentModel.
InvalidEnumArgumentException
("direction", (int)direction, typeof(FocusNavigationDirection));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
236
throw new
InvalidEnumArgumentException
(nameof(origin), (int)origin, typeof(SeekOrigin));
System\Windows\Markup\XamlDesignerSerializationManager.cs (1)
78
throw new
InvalidEnumArgumentException
("value", (int)value, typeof(XamlWriterMode));
System\Windows\MessageBox.cs (4)
357
throw new
InvalidEnumArgumentException
("button", (int)button, typeof(MessageBoxButton));
361
throw new
InvalidEnumArgumentException
("icon", (int)icon, typeof(MessageBoxImage));
365
throw new
InvalidEnumArgumentException
("defaultResult", (int)defaultResult, typeof(MessageBoxResult));
369
throw new
InvalidEnumArgumentException
("options", (int)options, typeof(MessageBoxOptions));
System\Windows\Window.cs (1)
1076
throw new
InvalidEnumArgumentException
("value", (int)value, typeof( WindowStartupLocation ));
System.Data.Common (1)
System\Data\DataException.cs (1)
344
private static Exception _InvalidEnumArgumentException(string error) => TraceExceptionAsReturnValue(new
InvalidEnumArgumentException
(error));
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.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
384
throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new
InvalidEnumArgumentException
(nameof(value), (int)value, typeof(SecurityKeyEntropyMode)), EventLevel.Error);
System.ServiceModel.Http (1)
System\ServiceModel\Channels\WebSocketTransportUsageHelper.cs (1)
24
new
InvalidEnumArgumentException
("value", (int)value, typeof(WebSocketTransportUsage)));
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SslProtocolsHelper.cs (1)
25
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System.ServiceModel.Primitives (18)
System\IdentityModel\Tokens\SecurityKeyType.cs (1)
31
throw Fx.Exception.AsError(new
InvalidEnumArgumentException
("value", (int)value,
System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
29
throw Fx.Exception.AsError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\AuditLevel.cs (1)
32
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\AuditLogLocation.cs (1)
36
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\Channels\SecurityHeaderLayout.cs (1)
32
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\HostnameComparisonMode.cs (1)
31
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\Security\SecurityKeyEntropyMode.cs (1)
30
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\Security\SecurityTokenAttachmentMode.cs (1)
32
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\Security\SecurityUtils.cs (5)
41
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
(nameof(value), (int)value,
79
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
110
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
(nameof(impersonationLevel), (int)impersonationLevel,
163
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("y", (int)y,
171
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("x", (int)x,
System\ServiceModel\Security\Tokens\SecurityTokenInclusionMode.cs (1)
32
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\Security\Tokens\SecurityTokenReferenceStyle.cs (1)
27
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\Security\Tokens\X509KeyIdentifierClauseType.cs (1)
34
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\Security\X509CertificateValidationMode.cs (1)
56
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
InvalidEnumArgumentException
("value", (int)value,
System\ServiceModel\TransferMode.cs (1)
43
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,
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
181
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));
923
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));
1061
throw new System.ComponentModel.
InvalidEnumArgumentException
("unit", (int)unit, typeof(TextUnit));
17 references to InvalidEnumArgumentException
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
10
[assembly: ProducesErrorResponseType(typeof(
InvalidEnumArgumentException
))]
85
var expected = typeof(
InvalidEnumArgumentException
);
netstandard (1)
netstandard.cs (1)
351
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
InvalidEnumArgumentException
))]
PresentationFramework (9)
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
49
/// <exception cref="
InvalidEnumArgumentException
">action is not a valid value from AnnotationAction</exception>
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
49
/// <exception cref="
InvalidEnumArgumentException
">action is not a valid value from AnnotationAction</exception>
System\Windows\Documents\ITextView.cs (7)
83
/// <exception cref="System.ComponentModel.
InvalidEnumArgumentException
">
120
/// <exception cref="System.ComponentModel.
InvalidEnumArgumentException
">
180
/// <exception cref="System.ComponentModel.
InvalidEnumArgumentException
">
258
/// <exception cref="System.ComponentModel.
InvalidEnumArgumentException
">
297
/// <exception cref="System.ComponentModel.
InvalidEnumArgumentException
">
323
/// <exception cref="System.ComponentModel.
InvalidEnumArgumentException
">
381
/// <exception cref="System.ComponentModel.
InvalidEnumArgumentException
">
System (1)
src\libraries\shims\System\ref\System.cs (1)
337
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
InvalidEnumArgumentException
))]
System.ComponentModel.Primitives (3)
System\ComponentModel\InvalidEnumArgumentException.cs (3)
18
/// Initializes a new instance of the <see cref='
InvalidEnumArgumentException
'/>
26
/// Initializes a new instance of the <see cref='
InvalidEnumArgumentException
'/>
43
/// Initializes a new instance of the <see cref='
InvalidEnumArgumentException
'/>
System.ComponentModel.TypeConverter (1)
artifacts\obj\System.ComponentModel.TypeConverter\Debug\net9.0\System.ComponentModel.TypeConverter.Forwards.cs (1)
8
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
InvalidEnumArgumentException
))]