15 references to InvalidEnumArgumentException
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
327_ => throw new System.ComponentModel.InvalidEnumArgumentException($"Cannot convert {nameof(WatchEventType)} with value {watchEventType} into enum of type {nameof(ResourceSnapshotChangeType)}.")
Microsoft.Maui.Controls (4)
LegacyLayouts\Grid.cs (4)
406 throw new InvalidEnumArgumentException($"{nameof(view)} must be a BindableObject"); 416 throw new InvalidEnumArgumentException($"{nameof(view)} must be a BindableObject"); 426 throw new InvalidEnumArgumentException($"{nameof(view)} must be a BindableObject"); 436 throw new InvalidEnumArgumentException($"{nameof(view)} must be a BindableObject");
PresentationCore (8)
System\Windows\Input\Stylus\Common\RawStylusInputReport.cs (2)
182throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(actions))); 238throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(actions)));
System\Windows\Input\Stylus\Common\RawStylusSystemGestureInputReport.cs (1)
158throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, nameof(systemGesture)));
System\Windows\Input\Stylus\Common\StylusSystemGestureEventArgs.cs (2)
36throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "systemGesture")); 78throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "systemGesture"));
System\Windows\Media\Animation\ClockController.cs (2)
157throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin")); 199throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System\Windows\Media\Animation\TimeManager.cs (1)
258throw new InvalidEnumArgumentException(SR.Format(SR.Enum_Invalid, "TimeSeekOrigin"));
System.ComponentModel.Primitives (1)
System\ComponentModel\InvalidEnumArgumentException.cs (1)
21public InvalidEnumArgumentException() : this(null)
System.Data.Common (1)
System\Data\DataException.cs (1)
344private static Exception _InvalidEnumArgumentException(string error) => TraceExceptionAsReturnValue(new InvalidEnumArgumentException(error));