96 references to InvalidEnumArgumentException
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))
PresentationCore (40)
System\Windows\clipboard.cs (3)
133throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)); 231throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat)); 344throw new InvalidEnumArgumentException(nameof(format), (int)format, typeof(TextDataFormat));
System\Windows\dataobject.cs (3)
389throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 445throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat)); 541throw new InvalidEnumArgumentException("format", (int)format, typeof(TextDataFormat));
System\Windows\EventManager.cs (1)
68throw new System.ComponentModel.InvalidEnumArgumentException("routingStrategy", (int)routingStrategy, typeof(RoutingStrategy));
System\Windows\Input\Command\KeyGesture.cs (2)
95throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 98throw new InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\Command\MouseActionConverter.cs (1)
136throw new InvalidEnumArgumentException("value", (int)mouseActionValue, typeof(MouseAction));
System\Windows\Input\Command\MouseGesture.cs (4)
62throw new InvalidEnumArgumentException("mouseAction", (int)mouseAction, typeof(MouseAction)); 65throw new InvalidEnumArgumentException("modifiers", (int)modifiers, typeof(ModifierKeys)); 93throw new InvalidEnumArgumentException("value", (int)value, typeof(MouseAction)); 114throw new InvalidEnumArgumentException("value", (int)value, typeof(ModifierKeys));
System\Windows\Input\InputReport.cs (2)
92throw new System.ComponentModel.InvalidEnumArgumentException("mode", (int)mode, typeof(InputMode)); 112throw new System.ComponentModel.InvalidEnumArgumentException("type", (int)type, typeof(InputType));
System\Windows\Input\KeyboardDevice.cs (1)
232throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\KeyEventArgs.cs (1)
39throw new System.ComponentModel.InvalidEnumArgumentException("key", (int)key, typeof(Key));
System\Windows\Input\MouseButton.cs (1)
81throw new System.ComponentModel.InvalidEnumArgumentException("button", (int)button, typeof(MouseButton));
System\Windows\Input\MouseDevice.cs (1)
317throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\RawKeyboardInputReport.cs (1)
66throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawKeyboardActions));
System\Windows\Input\RawMouseInputReport.cs (1)
64throw new System.ComponentModel.InvalidEnumArgumentException("actions", (int)actions, typeof(RawMouseActions));
System\Windows\Input\RawUIStateInputReport.cs (2)
45throw new System.ComponentModel.InvalidEnumArgumentException("action", (int)action, typeof(RawUIStateActions)); 47throw new System.ComponentModel.InvalidEnumArgumentException("targets", (int)targets, typeof(RawUIStateTargets));
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (1)
60throw new InvalidEnumArgumentException("unit", (int)unit, typeof(StylusPointPropertyUnit));
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
559throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
262throw new System.ComponentModel.InvalidEnumArgumentException("captureMode", (int)captureMode, typeof(CaptureMode));
System\Windows\Input\TextComposition.cs (1)
99throw new InvalidEnumArgumentException("autoComplete",
System\Windows\InterOp\HwndSource.cs (1)
1003throw new InvalidEnumArgumentException("value", (int)value, typeof(SizeToContent));
System\Windows\InterOp\HwndTarget.cs (1)
674throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
System\Windows\LocalizabilityAttribute.cs (3)
42throw new InvalidEnumArgumentException( 78throw new InvalidEnumArgumentException("Readability", (int) value, typeof(Readability)); 98throw new InvalidEnumArgumentException("Modifiability", (int) value, typeof(Modifiability));
System\Windows\Media\FormattedText.cs (2)
301throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1395throw new InvalidEnumArgumentException("value", (int)value, typeof(TextTrimming));
System\Windows\Media\GlyphTypeface.cs (1)
140throw new InvalidEnumArgumentException("styleSimulations", (int)styleSimulations, typeof(StyleSimulations));
System\Windows\Media\RenderOptions.cs (1)
248throw new System.ComponentModel.InvalidEnumArgumentException("value", (int)value, typeof(RenderMode));
System\Windows\Media\textformatting\NumberSubstitution.cs (2)
72throw new InvalidEnumArgumentException("CultureSource", (int)value, typeof(NumberCultureSource)); 141throw new InvalidEnumArgumentException("Substitution", (int)value, typeof(NumberSubstitutionMethod));
System\Windows\Media\textformatting\TextFormatter.cs (1)
48throw new System.ComponentModel.InvalidEnumArgumentException("textFormattingMode", (int)textFormattingMode, typeof(TextFormattingMode));
PresentationFramework (24)
MS\Internal\IO\Packaging\ByteStream.cs (1)
220throw new System.ComponentModel.InvalidEnumArgumentException("origin",
System\Windows\Annotations\AnnotationAuthorChangedEventArgs.cs (1)
58throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
System\Windows\Annotations\AnnotationResourceChangedEventArgs.cs (1)
58throw new InvalidEnumArgumentException("action", (int)action, typeof(AnnotationAction));
System\Windows\Application.cs (1)
870throw new InvalidEnumArgumentException("value", (int)value, typeof(ShutdownMode));
System\Windows\Controls\TextChangedEventArgs.cs (1)
77throw new InvalidEnumArgumentException("action", (int)action, typeof(UndoAction));
System\Windows\Data\Binding.cs (2)
389throw new InvalidEnumArgumentException("value", (int) value, typeof(BindingMode)); 417throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Documents\ValidationHelper.cs (2)
76throw new InvalidEnumArgumentException(argumentName, (int)direction, typeof(LogicalDirection)); 88throw new InvalidEnumArgumentException(param, (int)edge, typeof(ElementEdge));
System\Windows\FrameworkContentElement.cs (1)
1511throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkElement.cs (1)
2641throw new InvalidEnumArgumentException("value", (int)value, typeof(InheritanceBehavior));
System\Windows\FrameworkPropertyMetadata.cs (2)
225throw new InvalidEnumArgumentException("defaultUpdateSourceTrigger", (int) defaultUpdateSourceTrigger, typeof(UpdateSourceTrigger)); 484throw new InvalidEnumArgumentException("value", (int) value, typeof(UpdateSourceTrigger));
System\Windows\Input\KeyboardNavigation.cs (4)
2558throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2600throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2620throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection)); 2708throw new System.ComponentModel.InvalidEnumArgumentException("direction", (int)direction, typeof(FocusNavigationDirection));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
236throw new InvalidEnumArgumentException(nameof(origin), (int)origin, typeof(SeekOrigin));
System\Windows\Markup\XamlDesignerSerializationManager.cs (1)
78throw new InvalidEnumArgumentException("value", (int)value, typeof(XamlWriterMode));
System\Windows\MessageBox.cs (4)
357throw new InvalidEnumArgumentException ("button", (int)button, typeof(MessageBoxButton)); 361throw new InvalidEnumArgumentException ("icon", (int)icon, typeof(MessageBoxImage)); 365throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(MessageBoxResult)); 369throw new InvalidEnumArgumentException("options", (int)options, typeof(MessageBoxOptions));
System\Windows\Window.cs (1)
1076throw 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.ServiceModel.Federation (1)
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (1)
384throw DiagnosticUtility.ExceptionUtility.ThrowHelper(new InvalidEnumArgumentException(nameof(value), (int)value, typeof(SecurityKeyEntropyMode)), EventLevel.Error);
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,
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (3)
181throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 923throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit)); 1061throw new System.ComponentModel.InvalidEnumArgumentException("unit", (int)unit, typeof(TextUnit));