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)
816
return new System.
NotSupportedException
(SR.Image_PropertyNotSupported, exceptionForHR);
825
return new System.
NotSupportedException
(SR.Image_NoThumbnail, exceptionForHR);
841
return new System.
NotSupportedException
(SR.Image_ComponentNotFound, exceptionForHR);
863
return new System.
NotSupportedException
(SR.Image_UnsupportedPixelFormat, exceptionForHR);
866
return new System.
NotSupportedException
(SR.Image_UnsupportedOperation, exceptionForHR);
896
return new System.
NotSupportedException
(SR.Image_StreamNotAvailable, exceptionForHR);
917
return new System.
NotSupportedException
(SR.Format(SR.Media_InsufficientVideoResources, null), exceptionForHR);
920
return new System.
NotSupportedException
(SR.Format(SR.Media_HardwareVideoAccelerationNotAvailable, null), exceptionForHR);
923
return new System.
NotSupportedException
(SR.Format(SR.Media_PlayerIsClosed, null), exceptionForHR);
PresentationFramework (3)
MS\Internal\AppModel\ReturnEventSaver.cs (1)
131
throw new
NotSupportedException
(SR.ReturnEventHandlerMustBeOnParentPage, ex);
System\Windows\Documents\WinRTSpellerInterop.cs (2)
72
throw new
NotSupportedException
(string.Empty, ex);
322
throw new
NotSupportedException
(string.Empty, ex);
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\MetadataViewProvider.cs (1)
41
throw 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)
1019
throw new
NotSupportedException
(SR.NotSupported_ResourceObjectSerialization, fileNotFoundException);
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
59
new
NotSupportedException
(ex.Message, ex), ex.StackTrace ?? string.Empty);
System.Private.Windows.Core.Tests (4)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (4)
200
NotSupportedException value =
new
("Error message", new ArgumentException());
202
result.Should().BeEquivalentTo(new
NotSupportedException
("Error message", innerException: null));
208
NotSupportedException value =
new
("Error message", new ArgumentException());
210
result.Should().BeEquivalentTo(new
NotSupportedException
("Error message", innerException: null));
System.Text.Json (2)
System\Text\Json\ThrowHelper.Serialization.cs (2)
591
throw new
NotSupportedException
(message, innerException);
617
throw new
NotSupportedException
(message, innerException);
System.Windows.Forms (3)
System\Resources\ResXDataNode.cs (1)
377
throw new
NotSupportedException
(newMessage, xml);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
552
throw new
NotSupportedException
(SR.BindingSourceInstanceError, instanceException);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
267
throw new
NotSupportedException
(SR.BindingSourceInstanceError, instanceException);