26 references to NotSupportedException
Microsoft.Maui.Essentials (1)
Types\Shared\Exceptions.shared.cs (1)
73 : base(message, innerException)
PresentationCore (9)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (9)
816return new System.NotSupportedException(SR.Image_PropertyNotSupported, exceptionForHR); 825return new System.NotSupportedException(SR.Image_NoThumbnail, exceptionForHR); 841return new System.NotSupportedException(SR.Image_ComponentNotFound, exceptionForHR); 863return new System.NotSupportedException(SR.Image_UnsupportedPixelFormat, exceptionForHR); 866return new System.NotSupportedException(SR.Image_UnsupportedOperation, exceptionForHR); 896return new System.NotSupportedException(SR.Image_StreamNotAvailable, exceptionForHR); 917return new System.NotSupportedException(SR.Format(SR.Media_InsufficientVideoResources, null), exceptionForHR); 920return new System.NotSupportedException(SR.Format(SR.Media_HardwareVideoAccelerationNotAvailable, null), exceptionForHR); 923return new System.NotSupportedException(SR.Format(SR.Media_PlayerIsClosed, null), exceptionForHR);
PresentationFramework (3)
MS\Internal\AppModel\ReturnEventSaver.cs (1)
131throw new NotSupportedException(SR.ReturnEventHandlerMustBeOnParentPage, ex);
System\Windows\Documents\WinRTSpellerInterop.cs (2)
72throw new NotSupportedException(string.Empty, ex); 322throw new NotSupportedException(string.Empty, ex);
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\MetadataViewProvider.cs (1)
41throw new NotSupportedException(SR.Format(SR.NotSupportedInterfaceMetadataView, metadataViewType.FullName), ex);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\PlatformNotSupportedException.cs (1)
30: base(message ?? SR.Arg_PlatformNotSupported, inner)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1019throw new NotSupportedException(SR.NotSupported_ResourceObjectSerialization, fileNotFoundException);
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
59new NotSupportedException(ex.Message, ex), ex.StackTrace ?? string.Empty);
System.Private.Windows.Core.Tests (4)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (4)
200NotSupportedException value = new("Error message", new ArgumentException()); 202result.Should().BeEquivalentTo(new NotSupportedException("Error message", innerException: null)); 208NotSupportedException value = new("Error message", new ArgumentException()); 210result.Should().BeEquivalentTo(new NotSupportedException("Error message", innerException: null));
System.Text.Json (2)
System\Text\Json\ThrowHelper.Serialization.cs (2)
591throw new NotSupportedException(message, innerException); 617throw new NotSupportedException(message, innerException);
System.Windows.Forms (3)
System\Resources\ResXDataNode.cs (1)
377throw new NotSupportedException(newMessage, xml);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
552throw new NotSupportedException(SR.BindingSourceInstanceError, instanceException);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
267throw new NotSupportedException(SR.BindingSourceInstanceError, instanceException);