1447 references to NotSupportedException
AssemblyStripper (4)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Signatures\SignatureWriter.cs (1)
544 throw new NotSupportedException ("Unknown state");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\BaseAssemblyResolver.cs (1)
164 throw new NotSupportedException ("Version not supported: " + reference.Version);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ReflectionReader.cs (1)
450 throw new NotSupportedException ("Lookup is not allowed on this kind of token");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\StructureWriter.cs (1)
74 throw new NotSupportedException ("Can not write a mixed mode assembly");
AutobahnTestApp (1)
Program.cs (1)
51throw new NotSupportedException("This test app does not support multiple endpoints.");
Http2SampleApp (1)
Program.cs (1)
50throw new NotSupportedException("Prohibited cipher: " + tlsFeature.CipherAlgorithm);
illink (6)
Microsoft.AspNetCore (23)
ConfigureHostBuilder.cs (5)
40throw new NotSupportedException($"Call {nameof(WebApplicationBuilder)}.{nameof(WebApplicationBuilder.Build)}() instead."); 77throw new NotSupportedException($"The application name changed from \"{previousApplicationName}\" to \"{_configuration[HostDefaults.ApplicationKey]}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 83throw new NotSupportedException($"The content root changed from \"{previousContentRoot}\" to \"{HostingPathResolver.ResolvePath(_configuration[HostDefaults.ContentRootKey])}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 88throw new NotSupportedException($"The environment changed from \"{previousEnvironment}\" to \"{_configuration[HostDefaults.EnvironmentKey]}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 119throw new NotSupportedException("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.");
ConfigureWebHostBuilder.cs (17)
33throw new NotSupportedException($"Call {nameof(WebApplicationBuilder)}.{nameof(WebApplicationBuilder.Build)}() instead."); 55throw new NotSupportedException($"The web root changed from \"{HostingPathResolver.ResolvePath(previousWebRoot, previousContentRoot)}\" to \"{HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.WebRootKey], previousContentRoot)}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 60throw new NotSupportedException($"The application name changed from \"{previousApplication}\" to \"{_configuration[WebHostDefaults.ApplicationKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 66throw new NotSupportedException($"The content root changed from \"{previousContentRoot}\" to \"{HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.ContentRootKey])}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 71throw new NotSupportedException($"The environment changed from \"{previousEnvironment}\" to \"{_configuration[WebHostDefaults.EnvironmentKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 76throw new NotSupportedException($"The hosting startup assemblies changed from \"{previousHostingStartupAssemblies}\" to \"{_configuration[WebHostDefaults.HostingStartupAssembliesKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 81throw new NotSupportedException($"The hosting startup assemblies exclude list changed from \"{previousHostingStartupAssembliesExclude}\" to \"{_configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 127throw new NotSupportedException($"The web root changed from \"{HostingPathResolver.ResolvePath(previousWebRoot, previousContentRoot)}\" to \"{HostingPathResolver.ResolvePath(value, previousContentRoot)}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 133throw new NotSupportedException($"The application name changed from \"{previousApplication}\" to \"{value}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 139throw new NotSupportedException($"The content root changed from \"{previousContentRoot}\" to \"{HostingPathResolver.ResolvePath(value)}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 145throw new NotSupportedException($"The environment changed from \"{previousEnvironment}\" to \"{value}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 151throw new NotSupportedException($"The hosting startup assemblies changed from \"{previousHostingStartupAssemblies}\" to \"{value}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 157throw new NotSupportedException($"The hosting startup assemblies exclude list changed from \"{previousHostingStartupAssembliesExclude}\" to \"{value}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 168throw new NotSupportedException("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead."); 173throw new NotSupportedException("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead."); 178throw new NotSupportedException("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead."); 183throw new NotSupportedException("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead.");
WebApplication.cs (1)
306throw new NotSupportedException("Unable to get configured middleware.");
Microsoft.AspNetCore.Authentication.Negotiate (2)
NegotiateHandler.cs (2)
411?? throw new NotSupportedException($"Negotiate authentication requires a server that supports {nameof(IConnectionItemsFeature)} like Kestrel."); 417?? throw new NotSupportedException($"Negotiate authentication requires a server that supports {nameof(IConnectionCompleteFeature)} like Kestrel.");
Microsoft.AspNetCore.Components (2)
NavigationManager.cs (1)
473=> throw new NotSupportedException($"To support navigation locks, {GetType().Name} must override {nameof(SetNavigationLockState)}");
RenderTree\Renderer.cs (1)
1258throw new NotSupportedException($"Cannot supply a component of type '{componentType}' because the current platform does not support the render mode '{renderMode}'.");
Microsoft.AspNetCore.Components.Authorization (1)
AuthorizeViewCore.cs (1)
126throw new NotSupportedException($"The authorization data specifies an authentication scheme with value '{entry.AuthenticationSchemes}'. Authentication schemes cannot be specified for components.");
Microsoft.AspNetCore.Components.QuickGrid (2)
Columns\PropertyColumn.cs (1)
36set => throw new NotSupportedException($"PropertyColumn generates this member internally. For custom sorting rules, see '{typeof(TemplateColumn<TGridItem>)}'.");
QuickGrid.razor.cs (1)
253_ => throw new NotSupportedException($"Unknown sort direction {direction}"),
Microsoft.AspNetCore.Components.Server (4)
Circuits\RemoteJSDataStream.cs (1)
167=> throw new NotSupportedException("Synchronous reads are not supported.");
Circuits\RemoteRenderer.cs (1)
308_ => throw new NotSupportedException($"Cannot create a component of type '{componentType}' because its render mode '{renderMode}' is not supported by interactive server-side rendering."),
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (2)
625throw new NotSupportedException($"The MsgPack spec does not define a format for {nameof(DateTime)} in {nameof(this.OldSpec)} mode. Turn off {nameof(this.OldSpec)} mode or use NativeDateTimeFormatter."); 1119throw new NotSupportedException("This instance was not initialized to support this operation.");
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
5147var other => throw new NotSupportedException($"{nameof(RendererWithRenderModeResolver)} should not have received rendermode {other}"),
Microsoft.AspNetCore.Components.Web (2)
Forms\InputCheckbox.cs (1)
53=> throw new NotSupportedException($"This component does not parse string inputs. Bind to the '{nameof(CurrentValue)}' property, not '{nameof(CurrentValueAsString)}'.");
Forms\InputFile\BrowserFileStream.cs (1)
56=> throw new NotSupportedException("Synchronous reads are not supported.");
Microsoft.AspNetCore.Components.WebAssembly (2)
Rendering\WebAssemblyRenderer.cs (1)
186_ => throw new NotSupportedException($"Cannot create a component of type '{componentType}' because its render mode '{renderMode}' is not supported by WebAssembly rendering."),
src\Components\Shared\src\PullFromJSDataStream.cs (1)
61=> throw new NotSupportedException("Synchronous reads are not supported.");
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\PullFromJSDataStream.cs (1)
61=> throw new NotSupportedException("Synchronous reads are not supported.");
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\ContainerNode.cs (1)
50throw new NotSupportedException("Not implemented: moving existing logical children");
Microsoft.AspNetCore.DataProtection.Tests (2)
HostingTests.cs (1)
78.Throws(new NotSupportedException("This mock doesn't actually work, but shouldn't kill the server"))
XmlAssert.cs (1)
124throw new NotSupportedException(string.Format(CultureInfo.InvariantCulture, "Node of type '{0}' is not supported.", node.GetType().Name));
Microsoft.AspNetCore.Hosting (4)
GenericHost\GenericWebHostBuilder.cs (2)
228throw new NotSupportedException($"{typeof(IStartup)} isn't supported"); 232throw new NotSupportedException($"ConfigureServices returning an {typeof(IServiceProvider)} isn't supported.");
GenericHost\HostingStartupWebHostBuilder.cs (1)
28throw new NotSupportedException($"Building this implementation of {nameof(IWebHostBuilder)} is not supported.");
GenericHost\WebHostBuilderBase.cs (1)
31throw new NotSupportedException($"Building this implementation of {nameof(IWebHostBuilder)} is not supported.");
Microsoft.AspNetCore.Http (2)
Builder\ApplicationBuilder.cs (1)
220throw new NotSupportedException("Unable to get configured middleware.");
Internal\DefaultWebSocketManager.cs (1)
72throw new NotSupportedException("WebSockets are not supported");
Microsoft.AspNetCore.Http.Abstractions (4)
Extensions\RequestTrailerExtensions.cs (1)
58throw new NotSupportedException("This request does not support trailers.");
Extensions\UseMiddlewareExtensions.cs (3)
59throw new NotSupportedException(Resources.FormatException_UseMiddlewareExplicitArgumentsNotSupported(typeof(IMiddleware))); 208throw new NotSupportedException(Resources.FormatException_InvokeDoesNotSupportRefOrOutParams(InvokeMethodName)); 268throw new NotSupportedException(Resources.FormatException_InvokeDoesNotSupportRefOrOutParams(InvokeMethodName));
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (1)
67set => throw new NotSupportedException("The transport pipe isn't settable.");
HttpConnectionFactory.cs (1)
50throw new NotSupportedException($"The provided {nameof(EndPoint)} must be of type {nameof(UriEndPoint)}.");
Microsoft.AspNetCore.Http.Extensions (8)
HeaderDictionaryTypeExtensions.cs (2)
285throw new NotSupportedException( 319throw new NotSupportedException(string.Format(
RequestDelegateFactory.cs (6)
698throw new NotSupportedException($"The by reference parameter '{attribute} {TypeNameHelper.GetTypeDisplayName(parameter.ParameterType, fullName: false)} {parameter.Name}' is not supported."); 745throw new NotSupportedException( 759throw new NotSupportedException( 783throw new NotSupportedException( 802throw new NotSupportedException( 2587return new NotSupportedException($"Unsupported return type: {TypeNameHelper.GetTypeDisplayName(returnType)}");
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\HashCode.cs (2)
430public override int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 434public override bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
Microsoft.AspNetCore.Http.Results (1)
PhysicalFileHttpResult.cs (1)
145throw new NotSupportedException($"Path '{fileName}' was not rooted.");
Microsoft.AspNetCore.Http.Tests (1)
ApplicationBuilderTests.cs (1)
176_statusCode = HasStarted ? throw new NotSupportedException("The response has already started") : value;
Microsoft.AspNetCore.Identity (5)
IdentityApiEndpointRouteBuilderExtensions.cs (5)
64throw new NotSupportedException($"{nameof(MapIdentityApi)} requires a user store with email support."); 320throw new NotSupportedException("The user manager must produce an authenticator key after reset."); 392throw new NotSupportedException("No email confirmation endpoint was registered!"); 414?? throw new NotSupportedException($"Could not find endpoint named '{confirmEmailEndpointName}'."); 460Email = await userManager.GetEmailAsync(user) ?? throw new NotSupportedException("Users must have an email."),
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (1)
249throw new NotSupportedException("The default UI requires a user store with email support.");
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (1)
188throw new NotSupportedException("The default UI requires a user store with email support.");
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (1)
249throw new NotSupportedException("The default UI requires a user store with email support.");
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (1)
188throw new NotSupportedException("The default UI requires a user store with email support.");
Microsoft.AspNetCore.JsonPatch (1)
Operations\Operation.cs (1)
61throw new NotSupportedException(Resources.TestOperationNotSupported);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\BindingInfo.cs (1)
184throw new NotSupportedException(
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\PhysicalFileResultExecutor.cs (1)
81throw new NotSupportedException(Resources.FormatFileResult_PathNotRooted(result.FileName));
ModelBinding\ModelBindingHelper.cs (1)
236throw new NotSupportedException(Resources.FormatTryUpdateModel_RecordTypeNotSupported(nameof(TryUpdateModelAsync), modelType));
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\FileStreamResultExecutorTest.cs (2)
49public override int Read(byte[] buffer, int offset, int count) => throw new NotSupportedException("Must use ReadAsync"); 60protected override void Dispose(bool disposing) => throw new NotSupportedException("Must use DisposeAsync");
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\ResourceFile.cs (1)
211throw new NotSupportedException("Calling UpdateFile is not supported when GenerateBaselines=false");
Microsoft.AspNetCore.OpenApi (2)
Schemas\JsonSchemaMapper\JsonSchemaMapper.cs (1)
955throw new NotSupportedException("Schema generation not supported with ReferenceHandler.Preserve enabled.");
Schemas\OpenApiJsonSchema.cs (1)
50throw new NotSupportedException("OpenApiJsonSchema serialization is not supported.");
Microsoft.AspNetCore.Owin (4)
OwinFeatureCollection.cs (3)
187throw new NotSupportedException(OwinConstants.CommonKeys.OnSendingHeaders); 237throw new NotSupportedException(OwinConstants.SendFiles.SendAsync); 316throw new NotSupportedException("WebSockets are not supported"); // TODO: LOC
WebSockets\WebSocketAdapter.cs (1)
136throw new NotSupportedException($"Unsupported {nameof(WebSocketState)} value: {_webSocket.State}.");
Microsoft.AspNetCore.ResponseCaching (4)
src\Shared\SegmentWriteStream.cs (4)
52throw new NotSupportedException("The stream does not support seeking."); 110throw new NotSupportedException("The stream does not support reading."); 115throw new NotSupportedException("The stream does not support seeking."); 120throw new NotSupportedException("The stream does not support seeking.");
Microsoft.AspNetCore.Rewrite (28)
ApacheModRewrite\RuleBuilder.cs (3)
144throw new NotSupportedException("Existing Url lookups not supported because it requires a subrequest"); 146throw new NotSupportedException("Executable Property is not supported because Windows " + 185throw new NotSupportedException(Resources.Error_ChangeEnvironmentNotSupported);
ApacheModRewrite\ServerVariables.cs (16)
40throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 44throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 46throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 56throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 58throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 62throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 68throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 70throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 72throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 76throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 78throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 84throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 102throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 106throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 108throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 116throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable));
IISUrlRewrite\ServerVariables.cs (4)
28managedVariableThunk = () => throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 31managedVariableThunk = () => throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 67managedVariableThunk = () => throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable)); 76managedVariableThunk = () => throw new NotSupportedException(Resources.FormatError_UnsupportedServerVariable(serverVariable));
IISUrlRewrite\UrlRewriteFileParser.cs (4)
173throw new NotSupportedException("Wildcard syntax is not supported"); 234throw new NotSupportedException("Status codes must be between 200 and 999 (inclusive)"); 239throw new NotSupportedException("Substatus codes are not supported"); 248throw new NotSupportedException($"The action type {actionType} wasn't recognized");
IISUrlRewrite\UrlRewriteRuleBuilder.cs (1)
60throw new NotSupportedException("Wildcard syntax is not supported");
Microsoft.AspNetCore.Routing (2)
EndpointDataSource.cs (1)
49throw new NotSupportedException(Resources.FormatMapGroup_CustomEndpointUnsupported(endpoint.GetType()));
Patterns\RoutePatternTransformer.cs (1)
62=> throw new NotSupportedException("This API is not supported.");
Microsoft.AspNetCore.Server.HttpSys (15)
RequestProcessing\OpaqueStream.cs (5)
43get { throw new NotSupportedException(Resources.Exception_NoSeek); } 48get { throw new NotSupportedException(Resources.Exception_NoSeek); } 49set { throw new NotSupportedException(Resources.Exception_NoSeek); } 68throw new NotSupportedException(Resources.Exception_NoSeek); 73throw new NotSupportedException(Resources.Exception_NoSeek);
RequestProcessing\RequestStream.cs (5)
67public override long Length => throw new NotSupportedException(Resources.Exception_NoSeek); 71get => throw new NotSupportedException(Resources.Exception_NoSeek); 72set => throw new NotSupportedException(Resources.Exception_NoSeek); 76=> throw new NotSupportedException(Resources.Exception_NoSeek); 78public override void SetLength(long value) => throw new NotSupportedException(Resources.Exception_NoSeek);
RequestProcessing\ResponseBody.cs (5)
74throw new NotSupportedException(Resources.Exception_NoSeek); 82throw new NotSupportedException(Resources.Exception_NoSeek); 86throw new NotSupportedException(Resources.Exception_NoSeek); 424throw new NotSupportedException(Resources.Exception_NoSeek); 429throw new NotSupportedException(Resources.Exception_NoSeek);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\ApplicationDeployerFactory.cs (2)
29throw new NotSupportedException("Use Microsoft.AspNetCore.Server.IntegrationTesting.IIS package and IISApplicationDeployerFactory for IIS support."); 36throw new NotSupportedException(
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
220throw new NotSupportedException("Cannot set port 0 for IIS.");
Microsoft.AspNetCore.Server.Kestrel.Core (10)
HttpsConfigurationService.cs (2)
197get => throw new NotSupportedException("Not supported by HTTP/3 connections."); 198set => throw new NotSupportedException("Not supported by HTTP/3 connections.");
Internal\Http2\Http2Stream.FeatureCollection.cs (2)
50get => throw new NotSupportedException(CoreStrings.HttpMinDataRateNotSupported); 55throw new NotSupportedException(CoreStrings.HttpMinDataRateNotSupported);
Internal\Http3\Http3Stream.FeatureCollection.cs (2)
43get => throw new NotSupportedException(CoreStrings.HttpMinDataRateNotSupported); 48throw new NotSupportedException(CoreStrings.HttpMinDataRateNotSupported);
Internal\HttpConnection.cs (1)
82throw new NotSupportedException($"{nameof(SelectProtocol)} returned something other than Http1, Http2 or None.");
Middleware\HttpsConnectionMiddleware.cs (3)
499throw new NotSupportedException(CoreStrings.Http2NoTlsAlpn); 503throw new NotSupportedException(CoreStrings.Http2NoTlsWin81); 535throw new NotSupportedException($"The {nameof(HttpsConnectionAdapterOptions.OnAuthenticate)} callback is not supported with HTTP/3.");
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Internal\NamedPipeTransportFactory.cs (2)
41throw new NotSupportedException($"{endpoint.GetType()} is not supported."); 45throw new NotSupportedException($@"Server name '{namedPipeEndPoint.ServerName}' is invalid. The server name must be ""{LocalComputerServerName}"".");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicConnectionListener.cs (1)
40throw new NotSupportedException("QUIC is not supported or enabled on this platform. See https://aka.ms/aspnet/kestrel/http3reqs for details.");
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Client\SocketConnectionFactory.cs (1)
53throw new NotSupportedException("The SocketConnectionFactory only supports IPEndPoints for now.");
Microsoft.AspNetCore.Shared.Tests (5)
SingleThreadedSynchronizationContext.cs (1)
18throw new NotSupportedException($"{nameof(SingleThreadedSynchronizationContext)} does not support synchronous operations.");
src\Shared\SegmentWriteStream.cs (4)
52throw new NotSupportedException("The stream does not support seeking."); 110throw new NotSupportedException("The stream does not support reading."); 115throw new NotSupportedException("The stream does not support seeking."); 120throw new NotSupportedException("The stream does not support seeking.");
Microsoft.AspNetCore.SignalR.Core (3)
Internal\DefaultHubDispatcher.cs (3)
211throw new NotSupportedException($"Received unsupported message: {hubMessage}"); 713throw new NotSupportedException($"Method '{methodInfo.Name}' is a generic method which is not supported on a Hub."); 722throw new NotSupportedException($"Duplicate definitions of '{methodName}'. Overloading is not supported.");
Microsoft.AspNetCore.SignalR.Specification.Tests (5)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (5)
125throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 138throw new NotSupportedException($"TestClient recieved an unexpected message: {message}."); 158throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 164throw new NotSupportedException("Use 'StreamAsync' to call a streaming method"); 178throw new NotSupportedException($"TestClient recieved an unexpected message: {message}.");
Microsoft.AspNetCore.SignalR.Tests.Utils (5)
TestClient.cs (5)
125throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 138throw new NotSupportedException($"TestClient recieved an unexpected message: {message}."); 158throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 164throw new NotSupportedException("Use 'StreamAsync' to call a streaming method"); 178throw new NotSupportedException($"TestClient recieved an unexpected message: {message}.");
Microsoft.AspNetCore.TestHost (6)
AsyncStreamWrapper.cs (5)
23public override long Length => throw new NotSupportedException("The stream is not seekable."); 27get => throw new NotSupportedException("The stream is not seekable."); 28set => throw new NotSupportedException("The stream is not seekable."); 74throw new NotSupportedException("The stream is not seekable."); 79throw new NotSupportedException("The stream is not seekable.");
ClientHandler.cs (1)
62throw new NotSupportedException(
Microsoft.AspNetCore.WebUtilities (3)
FileBufferingReadStream.cs (3)
219throw new NotSupportedException("The content has not been fully buffered yet."); 224throw new NotSupportedException("The content has not been fully buffered yet."); 229throw new NotSupportedException("The content has not been fully buffered yet.");
Microsoft.Build (16)
BackEnd\Components\Communications\TaskHostNodeManager.cs (6)
50=> throw new NotSupportedException("not used"); 59throw new NotSupportedException("not used"); 129throw new NotSupportedException("not used"); 138throw new NotSupportedException("not used"); 149throw new NotSupportedException("not used"); 159throw new NotSupportedException("not used");
FileMatcher.cs (2)
2393throw new NotSupportedException(action.ToString()); 2443throw new NotSupportedException(excludeAction.ToString());
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (3)
172throw new NotSupportedException(text); 252throw new NotSupportedException( 273throw new NotSupportedException(
Logging\BinaryLogger\Postprocessing\SubStream.cs (1)
27throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_MustBeReadable"));
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (3)
94throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_SeekNonOrigin")); 104throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_SetLengthUnsupported")); 109throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_WriteUnsupported"));
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
611_ => throw new NotSupportedException(Convert.ToString(item.Value))
Microsoft.Build.Framework (10)
SegmentedArray`1.cs (9)
194throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 199throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 215throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 272throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 277throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 282throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 287throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 292throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 297throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
ThrowHelper.cs (1)
171throw new NotSupportedException(GetResourceString(resource));
Microsoft.Build.Tasks.Core (3)
FileMatcher.cs (2)
2393throw new NotSupportedException(action.ToString()); 2443throw new NotSupportedException(excludeAction.ToString());
ResourceHandling\MSBuildResXReader.cs (1)
211throw new NotSupportedException(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("GenerateResource.MimeTypeNotSupportedOnCore", name, resxFilename, mimetype));
Microsoft.Build.Utilities.Core (2)
FileMatcher.cs (2)
2393throw new NotSupportedException(action.ToString()); 2443throw new NotSupportedException(excludeAction.ToString());
Microsoft.Cci.Extensions (10)
Comparers\CciComparers.cs (2)
57throw new NotSupportedException("Comparer not supported for type " + typeof(T).FullName); 77throw new NotSupportedException("Comparer not supported for type " + typeof(T).FullName);
Extensions\TypeExtensions.cs (1)
151throw new NotSupportedException(string.Format("Unknown IReference '{0}' so we cannot get assembly reference!", reference.GetType().FullName));
Mappings\ElementMapping.cs (1)
91throw new NotSupportedException("Diffing is not supported without a IDifferFactory!");
Writers\CSharp\CSDeclarationWriter.Attributes.cs (1)
238throw new NotSupportedException("IMetadataExpression type not supported");
Writers\CSharp\CSDeclarationWriter.Types.cs (2)
177throw new NotSupportedException("This method doesn't support delegates!"); 199throw new NotSupportedException("Don't understand what kind of type this is!");
Writers\Syntax\HtmlSyntaxWriter.cs (1)
53throw new NotSupportedException("Style not supported!");
Writers\Syntax\OpenXmlSyntaxWriter.cs (1)
56throw new NotSupportedException("Style not supported!");
Writers\Syntax\TextSyntaxWriter.cs (1)
41throw new NotSupportedException("Style not supported!");
Microsoft.DotNet.ApiCompat (1)
Rules\Compat\TypeCannotChangeClassification.cs (1)
58throw new System.NotSupportedException(string.Format("Only support types that are class, struct, or interface. {0}", type.GetType()));
Microsoft.DotNet.Helix.Client (1)
HelixApiTokenAuthenticationPolicy.cs (1)
40throw new NotSupportedException("Sync method not supported");
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (6)
Languages\angular\Angular.cs (3)
97throw new NotSupportedException(reference.ToString()); 186throw new NotSupportedException(reference.ToString()); 275throw new NotSupportedException(reference.ToString());
Languages\csharp\CSharp.cs (1)
158throw new NotSupportedException(reference.ToString());
Modeler\ServiceClientModelFactory.cs (2)
232throw new NotSupportedException(type.ToString()); 364throw new NotSupportedException(type);
Microsoft.DotNet.VersionTools (3)
src\Automation\GitHubApi\GitHubClient.cs (1)
429throw new NotSupportedException($"Authentication is required, but {nameof(Auth)} is null, indicating anonymous mode.");
src\Automation\VstsApi\VstsAdapterClient.cs (1)
406throw new NotSupportedException($"Authentication is required, but {nameof(Auth)} is null, indicating anonymous mode.");
src\Dependencies\Submodule\SubmoduleDependencyInfo.cs (1)
37throw new NotSupportedException(
Microsoft.DotNet.VersionTools.Tasks (2)
src\BaseDependenciesTask.cs (2)
175throw new NotSupportedException( 232throw new NotSupportedException(
Microsoft.Extensions.Caching.Hybrid.Tests (11)
StampedeTests.cs (11)
41ICacheEntry IMemoryCache.CreateEntry(object key) => throw new NotSupportedException("Intentionally not provided"); 43byte[]? IDistributedCache.Get(string key) => throw new NotSupportedException("Intentionally not provided"); 45Task<byte[]?> IDistributedCache.GetAsync(string key, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 47void IDistributedCache.Refresh(string key) => throw new NotSupportedException("Intentionally not provided"); 49Task IDistributedCache.RefreshAsync(string key, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 51void IDistributedCache.Remove(string key) => throw new NotSupportedException("Intentionally not provided"); 53void IMemoryCache.Remove(object key) => throw new NotSupportedException("Intentionally not provided"); 55Task IDistributedCache.RemoveAsync(string key, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 57void IDistributedCache.Set(string key, byte[] value, DistributedCacheEntryOptions options) => throw new NotSupportedException("Intentionally not provided"); 59Task IDistributedCache.SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 61bool IMemoryCache.TryGetValue(object key, out object? value) => throw new NotSupportedException("Intentionally not provided");
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
557throw new NotSupportedException("Not implemented: " + entry.Priority);
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteVisitor.cs (1)
54throw new NotSupportedException(SR.Format(SR.CallSiteTypeNotSupported, callSite.GetType()));
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
296throw new NotSupportedException(SR.GetCaptureDisposableNotSupported);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
18throw new NotSupportedException($"{nameof(SingleThreadedSynchronizationContext)} does not support synchronous operations.");
Microsoft.Extensions.Hosting (3)
HostApplicationBuilder.cs (3)
290throw new NotSupportedException(SR.Format(SR.ApplicationNameChangeNotSupported, previousApplicationName, config[HostDefaults.ApplicationKey])); 294throw new NotSupportedException(SR.Format(SR.EnvironmentNameChangeNotSupoprted, previousEnvironment, config[HostDefaults.EnvironmentKey])); 302throw new NotSupportedException(SR.Format(SR.ContentRootChangeNotSupported, previousContentRootConfig, currentContentRootConfig));
Microsoft.Extensions.Http.Polly.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
18throw new NotSupportedException($"{nameof(SingleThreadedSynchronizationContext)} does not support synchronous operations.");
Microsoft.Extensions.Identity.Core (19)
RoleManager.cs (2)
112throw new NotSupportedException(Resources.StoreNotIQueryableRoleStore); 442throw new NotSupportedException(Resources.StoreNotIRoleClaimStore);
UserManager.cs (17)
386throw new NotSupportedException(Resources.StoreNotIQueryableUserStore); 1557throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 1587throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 1645throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 1672throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 2149throw new NotSupportedException(Resources.StoreNotIUserTwoFactorStore); 2159throw new NotSupportedException(Resources.StoreNotIUserLockoutStore); 2168throw new NotSupportedException(Resources.StoreNotIUserEmailStore); 2183throw new NotSupportedException(Resources.StoreNotIUserPhoneNumberStore); 2239throw new NotSupportedException(Resources.StoreNotIUserRoleStore); 2261throw new NotSupportedException(Resources.StoreNotIUserLoginStore); 2271throw new NotSupportedException(Resources.StoreNotIUserSecurityStampStore); 2281throw new NotSupportedException(Resources.StoreNotIUserClaimStore); 2388throw new NotSupportedException(Resources.StoreNotIUserAuthenticatorKeyStore); 2398throw new NotSupportedException(Resources.StoreNotIUserTwoFactorRecoveryCodeStore); 2408throw new NotSupportedException(Resources.StoreNotIUserAuthenticationTokenStore); 2418throw new NotSupportedException(Resources.StoreNotIUserPasswordStore);
Microsoft.JSInterop (4)
Infrastructure\DotNetStreamReferenceJsonConverter.cs (1)
21=> throw new NotSupportedException($"{nameof(DotNetStreamReference)} cannot be supplied from JavaScript to .NET because the stream contents have already been transferred.");
JSRuntime.cs (3)
186throw new NotSupportedException("JSRuntime subclasses are responsible for implementing byte array transfer to JS."); 225throw new NotSupportedException("The current JavaScript runtime does not support reading data streams."); 280throw new NotSupportedException("The current JS runtime does not support sending streams from .NET to JS.");
PresentationCore (64)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
550_erroredOutException = new NotSupportedException(SR.ByteRangeRequestIsNotSupported);
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (2)
75throw new NotSupportedException(SR.WriteNotSupported); 98throw new NotSupportedException(SR.SetLengthNotSupported);
MS\Internal\IO\Packaging\NetStream.cs (2)
308throw new NotSupportedException(SR.SetLengthNotSupported); 318throw new NotSupportedException(SR.WriteNotSupported);
MS\Internal\PartialArray.cs (4)
76throw new NotSupportedException(SR.CollectionIsFixedSize); 81throw new NotSupportedException(SR.CollectionIsFixedSize); 91throw new NotSupportedException(SR.CollectionIsFixedSize); 96throw new NotSupportedException(SR.CollectionIsFixedSize);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (4)
236throw new NotSupportedException(SR.CollectionIsFixedSize); 242throw new NotSupportedException(SR.CollectionIsFixedSize); 248throw new NotSupportedException(SR.CollectionIsFixedSize); 254throw new NotSupportedException(SR.CollectionIsFixedSize);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (4)
178throw new NotSupportedException(SR.CollectionIsFixedSize); 184throw new NotSupportedException(SR.CollectionIsFixedSize); 190throw new NotSupportedException(SR.CollectionIsFixedSize); 196throw new NotSupportedException(SR.CollectionIsFixedSize);
System\Windows\Ink\StrokeCollection.cs (1)
877throw new NotSupportedException(SR.StrokeCollectionIsReadOnly);
System\Windows\Input\Command\CommandBindingCollection.cs (4)
144throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 183throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 209throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 227throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings);
System\Windows\Input\Command\InputBindingCollection.cs (4)
160throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 232throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 286throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 301throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings);
System\Windows\Input\Command\InputGestureCollection.cs (13)
111throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 123throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 135throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 153throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 186throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 239throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 264throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 284throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 304throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 318throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 321throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 346throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 375throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection);
System\Windows\Input\Command\KeyGesture.cs (1)
104throw new NotSupportedException(SR.Format(SR.KeyGesture_Invalid, modifiers, key));
System\Windows\Input\Command\MouseActionConverter.cs (1)
97throw new NotSupportedException(SR.Format(SR.Unsupported_MouseAction, mouseActionToken));
System\Windows\Media\Animation\Clock.cs (1)
627throw new NotSupportedException(SR.Timing_CanSlipOnlyOnSimpleTimelines);
System\Windows\Media\Animation\ClockGroup.cs (1)
133throw new NotSupportedException(SR.Timing_SlipBehavior_SlipOnlyOnSimpleTimelines);
System\Windows\Media\Animation\KeySplineConverter.cs (1)
77throw new NotSupportedException(SR.Converter_ConvertFromNotSupported);
System\Windows\Media\FamilyMapCollection.cs (1)
371throw new NotSupportedException(SR.General_ObjectIsReadOnly);
System\Windows\Media\FamilyTypeface.cs (1)
287throw new NotSupportedException(SR.General_ObjectIsReadOnly);
System\Windows\Media\FamilyTypefaceCollection.cs (1)
364throw new NotSupportedException(SR.General_ObjectIsReadOnly);
System\Windows\Media\FontFamily.cs (1)
324throw new NotSupportedException(SR.FontFamily_ReadOnly);
System\Windows\Media\Generated\BrushConverter.cs (1)
156throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\CacheModeConverter.cs (1)
156throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\GeometryConverter.cs (1)
156throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
156throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\TransformConverter.cs (1)
156throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\ImageSourceConverter.cs (1)
220throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Imaging\BitmapEncoder.cs (2)
351throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null)); 357throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null));
System\Windows\Media\Imaging\BitmapImage.cs (1)
154throw new System.NotSupportedException(SR.Image_MetadataNotSupported);
System\Windows\Media\Imaging\PropVariant.cs (1)
769throw new System.NotSupportedException(SR.Image_PropertyNotSupported);
System\Windows\Media\MediaPlayer.cs (1)
830throw new System.NotSupportedException(SR.Media_UnknownChannelType);
System\Windows\Media\MediaPlayerState.cs (2)
848_mediaEventsHelper.RaiseMediaFailed(new System.NotSupportedException(SR.Format(SR.Media_PackURIsAreNotSupported, null))); 996throw new System.NotSupportedException(SR.Image_BadVersion);
System\Windows\Media\PixelFormat.cs (1)
584throw new System.NotSupportedException(SR.Image_NoPixelFormatFound);
System\Windows\Media3D\MatrixCamera.cs (1)
115throw new NotSupportedException(SR.HitTest_Singular);
System\Windows\Media3D\Viewport3DVisual.cs (1)
515throw new NotSupportedException(SR.Format(SR.HitTest_Invalid, typeof(GeometryHitTestParameters).Name, this.GetType().Name));
PresentationFramework (127)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
313throw new NotSupportedException(SR.NotSupported);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
265throw new NotSupportedException(SR.NotSupported);
MS\Internal\AppModel\ReturnEventSaver.cs (1)
124throw new NotSupportedException(SR.ReturnEventHandlerMustBeOnParentPage);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
968throw new NotSupportedException(SR.NotSupported);
MS\Internal\Data\BindingCollection.cs (1)
122throw new NotSupportedException(SR.Format(SR.BindingCollectionContainsNonBinding, binding.GetType().Name));
MS\Internal\Data\CompositeCollectionView.cs (7)
653throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 797throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 1450throw new NotSupportedException(SR.RangeActionsNotSupported); 1455throw new NotSupportedException(SR.RangeActionsNotSupported); 1460throw new NotSupportedException(SR.RangeActionsNotSupported); 1465throw new NotSupportedException(SR.RangeActionsNotSupported); 1474throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
MS\Internal\Data\PropertyPathWorker.cs (2)
308throw new NotSupportedException(SR.IndexedPropDescNotImplemented); 395throw new NotSupportedException(SR.IndexedPropDescNotImplemented);
MS\Internal\Data\ValueChangedEventManager.cs (2)
93throw new NotSupportedException(SR.NoMulticastHandlers); 105throw new NotSupportedException(SR.NoMulticastHandlers);
MS\Internal\IO\Packaging\ByteStream.cs (5)
147throw new NotSupportedException(SR.SetPositionNotSupported); 195throw new NotSupportedException(SR.SeekNotSupported); 238throw new NotSupportedException(SR.SetLengthNotSupported); 255throw new NotSupportedException(SR.ReadNotSupported); 322throw new NotSupportedException(SR.WriteNotSupported);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (2)
157throw new NotSupportedException(SR.StreamDoesNotSupportWrite); 170throw new NotSupportedException(SR.StreamDoesNotSupportWrite);
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (6)
66throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 82throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 103throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 123throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 137throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 151throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic);
MS\Internal\IO\Packaging\XpsFilter.cs (1)
596throw new NotSupportedException(SR.FilterIPersistFileIsReadOnly);
System\Windows\Annotations\Annotation.cs (3)
737throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 791throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 840throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\AVElementHelper.cs (1)
279throw new NotSupportedException(SR.AudioVideo_CannotControlMedia);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (4)
161throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 182throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 205throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 226throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported);
System\Windows\Controls\CustomDictionarySources.cs (1)
369throw new NotSupportedException(SR.CustomDictionarySourcesUnsupportedURI);
System\Windows\Controls\DataGrid.cs (1)
8275throw new NotSupportedException(SR.ClipboardCopyMode_Disabled);
System\Windows\Controls\DocumentViewer.cs (2)
882throw new NotSupportedException(SR.DocumentViewerOnlySupportsFixedDocumentSequence); 2121throw new NotSupportedException(SR.DocumentViewerStyleMustIncludeContentHost);
System\Windows\Controls\FlowDocumentReader.cs (1)
104throw new NotSupportedException(SR.FlowDocumentReaderDecoratorMarkedAsContentHostMustHaveNoContent);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
131throw new NotSupportedException(SR.FlowDocumentScrollViewerMarkedAsContentHostMustHaveNoContent);
System\Windows\Controls\ItemCollection.cs (2)
765throw new NotSupportedException(SR.ItemCollectionShouldUseInnerSyncRoot); 2254throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\ItemContainerGenerator.cs (5)
2404throw new NotSupportedException(SR.RangeActionsNotSupported); 2410throw new NotSupportedException(SR.RangeActionsNotSupported); 2419throw new NotSupportedException(SR.RangeActionsNotSupported); 2429throw new NotSupportedException(SR.RangeActionsNotSupported); 2439throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\Controls\ListBox.cs (1)
109throw new NotSupportedException(SR.ListBoxSelectAllSelectionMode);
System\Windows\Controls\MultipleCopiesCollection.cs (5)
234throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 239throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 258throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 273throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 278throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource);
System\Windows\Controls\PasswordBox.cs (3)
960throw new NotSupportedException(SR.TextBoxScrollViewerMarkedAsTextBoxContentMustHaveNoContent); 972throw new NotSupportedException(SR.TextBoxDecoratorMarkedAsTextBoxContentMustHaveNoContent); 991throw new NotSupportedException(SR.PasswordBoxInvalidTextContainer);
System\Windows\Controls\PopupControlService.cs (1)
467throw new NotSupportedException(SR.ToolTipStaysOpenFalseNotAllowed);
System\Windows\Controls\Primitives\MultiSelector.cs (1)
90throw new NotSupportedException(SR.MultiSelectorSelectAll);
System\Windows\Controls\Primitives\Selector.cs (5)
885throw new NotSupportedException(SR.RangeActionsNotSupported); 892throw new NotSupportedException(SR.RangeActionsNotSupported); 914throw new NotSupportedException(SR.RangeActionsNotSupported); 924throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 1255throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\Primitives\TextBoxBase.cs (3)
1992throw new NotSupportedException(SR.TextBoxScrollViewerMarkedAsTextBoxContentMustHaveNoContent); 2007throw new NotSupportedException(SR.TextBoxDecoratorMarkedAsTextBoxContentMustHaveNoContent); 2026throw new NotSupportedException(SR.TextBoxInvalidTextContainer);
System\Windows\Controls\Primitives\Track.cs (2)
180throw new NotSupportedException(SR.Track_SameButtons); 221throw new NotSupportedException(SR.Track_SameButtons);
System\Windows\Controls\SelectedDatesCollection.cs (4)
138throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 156throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 217throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 266throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported);
System\Windows\Controls\SinglePageViewer.cs (1)
517throw new NotSupportedException(SR.FlowDocumentPageViewerOnlySupportsFlowDocument);
System\Windows\Controls\ToolBar.cs (2)
612throw new NotSupportedException(SR.Format(SR.ToolBar_InvalidStyle_ToolBarPanel, child.GetType())); 635throw new NotSupportedException(SR.Format(SR.ToolBar_InvalidStyle_ToolBarOverflowPanel, child.GetType()));
System\Windows\Controls\TreeView.cs (1)
445throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\TreeViewItem.cs (1)
1001throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
336throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 374throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 394throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 1632throw new NotSupportedException(SR.VirtualizedCellInfoCollection_IsReadOnly);
System\Windows\Data\BindingListCollectionView.cs (7)
310throw new NotSupportedException(SR.BindingListCannotCustomFilter); 1578throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 2455throw new NotSupportedException(SR.RangeActionsNotSupported); 2460throw new NotSupportedException(SR.RangeActionsNotSupported); 2465throw new NotSupportedException(SR.RangeActionsNotSupported); 2470throw new NotSupportedException(SR.RangeActionsNotSupported); 2479throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Data\CollectionView.cs (6)
1173throw new NotSupportedException(SR.MultiThreadedCollectionChangeNotSupported); 1985throw new NotSupportedException(SR.RangeActionsNotSupported); 1990throw new NotSupportedException(SR.RangeActionsNotSupported); 1997throw new NotSupportedException(SR.RangeActionsNotSupported); 2002throw new NotSupportedException(SR.RangeActionsNotSupported); 2011throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Data\ListCollectionView.cs (6)
2436throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 2526throw new NotSupportedException(SR.RangeActionsNotSupported); 2531throw new NotSupportedException(SR.RangeActionsNotSupported); 2536throw new NotSupportedException(SR.RangeActionsNotSupported); 2541throw new NotSupportedException(SR.RangeActionsNotSupported); 2550throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Documents\DocumentSequence.cs (2)
734throw new NotSupportedException(SR.RangeActionsNotSupported); 764throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
613throw new NotSupportedException(SR.RangeActionsNotSupported); 622throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 652throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\FrameworkElementFactory.cs (2)
227throw new NotSupportedException(SR.Format(SR.ModifyingLogicalTreeViaStylesNotImplemented, value, "FrameworkElementFactory.SetValue")); 850throw new NotSupportedException(SR.Format(SR.Template3DValueOnly, propertyValue.Property) );
System\Windows\Markup\BamlWriter.cs (2)
914throw new NotSupportedException(SR.Format(SR.ParserBamlEvent, eventIdName)); 943throw new NotSupportedException(SR.Format(SR.ParserBamlEvent, eventName));
System\Windows\Markup\DependencyPropertyConverter.cs (5)
166throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 189throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 213throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 233throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 243throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
System\Windows\Markup\ProvideValueServiceProvider.cs (1)
76set { throw new NotSupportedException(SR.ParserProvideValueCantSetUri); }
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
108throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 170throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 175throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName));
System\Windows\Markup\XamlStream.cs (2)
163throw new NotSupportedException(SR.ParserWriterNoSeekEnd); 307throw new NotSupportedException(SR.ParserWriterNoSeekEnd);
System\Windows\ResourceDictionary.cs (1)
291throw new NotSupportedException(SR.NamesNotSupportedInsideResourceDictionary);
System\Windows\Shell\JumpList.cs (1)
384throw new NotSupportedException(SR.JumpList_CantCallUnbalancedEndInit);
System\Windows\TemplateContentLoader.cs (1)
34throw new NotSupportedException(SR.Format(SR.DeferringLoaderNoSave, typeof(TemplateContentLoader).Name));
PresentationUI (3)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
39throw new NotSupportedException(SR.DocumentPropertiesDialogDocumentPropertiesMustExist);
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (1)
58throw new NotSupportedException(SR.PackagePartTypeNotWritable);
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (1)
279throw new NotSupportedException(
ReachFramework (6)
Serialization\ColorTypeConverter.cs (2)
114throw new NotSupportedException(SR.Converter_ConvertFromNotSupported); 152throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
Serialization\FontTypeConverter.cs (2)
111throw new NotSupportedException(SR.Converter_ConvertFromNotSupported); 152throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
Serialization\ImageSourceTypeConverter.cs (2)
121throw new NotSupportedException(SR.Converter_ConvertFromNotSupported); 162throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System.Collections (18)
System\Collections\Generic\SortedDictionary.cs (6)
607throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 612throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 622throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 768throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 773throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 783throw new NotSupportedException(SR.NotSupported_ValueCollectionSet);
System\Collections\Generic\SortedList.cs (12)
1032throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1037throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1069throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1080throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 1102throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1108throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1146throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1151throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1183throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1194throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1211throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1217throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite);
System.Collections.Concurrent (6)
System\Collections\Concurrent\BlockingCollection.cs (1)
133throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported);
System\Collections\Concurrent\ConcurrentBag.cs (1)
597get { throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported); }
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1906object ICollection.SyncRoot => throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported);
System\Collections\Concurrent\ConcurrentStack.cs (1)
184throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported);
System\Collections\Concurrent\OrderablePartitioner.cs (1)
128throw new NotSupportedException(SR.Partitioner_DynamicPartitionsNotSupported);
System\Collections\Concurrent\Partitioner.cs (1)
96throw new NotSupportedException(SR.Partitioner_DynamicPartitionsNotSupported);
System.Collections.NonGeneric (12)
System\Collections\SortedList.cs (12)
924throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 930throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 949throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 960throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 981throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 986throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1028throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1033throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1052throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1063throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1079throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1084throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite);
System.Collections.Specialized (22)
System\Collections\Specialized\NameObjectCollectionBase.cs (6)
174throw new NotSupportedException(SR.CollectionReadOnly); 203throw new NotSupportedException(SR.CollectionReadOnly); 240throw new NotSupportedException(SR.CollectionReadOnly); 267throw new NotSupportedException(SR.CollectionReadOnly); 295throw new NotSupportedException(SR.CollectionReadOnly); 341throw new NotSupportedException(SR.CollectionReadOnly);
System\Collections\Specialized\NameValueCollection.cs (3)
190throw new NotSupportedException(SR.CollectionReadOnly); 259throw new NotSupportedException(SR.CollectionReadOnly); 305throw new NotSupportedException(SR.CollectionReadOnly);
System\Collections\Specialized\OrderedDictionary.cs (13)
162throw new NotSupportedException(SR.OrderedDictionary_ReadOnly); 193throw new NotSupportedException(SR.OrderedDictionary_ReadOnly); 228throw new NotSupportedException(SR.OrderedDictionary_ReadOnly); 243throw new NotSupportedException(SR.OrderedDictionary_ReadOnly); 314throw new NotSupportedException(SR.OrderedDictionary_ReadOnly); 331throw new NotSupportedException(SR.OrderedDictionary_ReadOnly); 349throw new NotSupportedException(SR.OrderedDictionary_ReadOnly); 638set => throw new NotSupportedException(GetNotSupportedErrorMessage()); 643throw new NotSupportedException(GetNotSupportedErrorMessage()); 648throw new NotSupportedException(GetNotSupportedErrorMessage()); 653throw new NotSupportedException(GetNotSupportedErrorMessage()); 658throw new NotSupportedException(GetNotSupportedErrorMessage()); 663throw new NotSupportedException(GetNotSupportedErrorMessage());
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
308throw new NotSupportedException(SR.Format(
System.ComponentModel.TypeConverter (7)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
158throw new NotSupportedException(SR.BinaryFormatterMessage);
System\ComponentModel\ToolboxItemAttribute.cs (1)
47throw new NotSupportedException(SR.IDesignerHostNotSupported);
System\ComponentModel\TypeConverter.cs (2)
195throw new NotSupportedException(SR.Format(SR.ConvertFromException, GetType().Name, valueTypeName)); 205throw new NotSupportedException(SR.Format(SR.ConvertToException, GetType().Name, valueTypeName, destinationType.FullName));
System\ComponentModel\TypeDescriptor.cs (3)
1743throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported); 1752throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported); 3048throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported);
System.Console (3)
System\IO\Error.cs (3)
15return new NotSupportedException(SR.NotSupported_UnreadableStream); 20return new NotSupportedException(SR.NotSupported_UnseekableStream); 25return new NotSupportedException(SR.NotSupported_UnwritableStream);
System.Data.Common (8)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
128NotSupportedException e = new NotSupportedException(error);
System\Data\DataSetUtil.cs (1)
45return new NotSupportedException(message);
System\Data\SQLTypes\SqlXml.cs (3)
505throw new NotSupportedException(SQLResource.InvalidOpStreamNonSeekable(method)); 511throw new NotSupportedException(SQLResource.InvalidOpStreamNonReadable(method)); 517throw new NotSupportedException(SQLResource.InvalidOpStreamNonWritable(method));
System\Xml\XmlDataDocument.cs (3)
396throw new NotSupportedException(SR.DataDom_NotSupport_EntRef); 1344throw new NotSupportedException(SR.DataDom_NotSupport_Clear); 3090throw new NotSupportedException(SR.DataDom_NotSupport_GetElementById);
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (1)
973throw new NotSupportedException(SR.NotSupportedRemote);
System\Diagnostics\ProcessThread.cs (1)
157throw new NotSupportedException(SR.NotSupportedRemoteThread);
System.Formats.Tar (4)
System\Formats\Tar\SubReadStream.cs (3)
172public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 174public override void SetLength(long value) => throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 176public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream);
System\Formats\Tar\TarHeader.Read.cs (1)
415TarEntryType.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header._typeFlag)),
System.IO.Compression (44)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (5)
63get { throw new NotSupportedException(SR.NotSupported); } 68get { throw new NotSupportedException(SR.NotSupported); } 69set { throw new NotSupportedException(SR.NotSupported); } 87throw new NotSupportedException(SR.NotSupported); 92throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\DeflateZLib\DeflateStream.cs (5)
153get { throw new NotSupportedException(SR.NotSupported); } 158get { throw new NotSupportedException(SR.NotSupported); } 159set { throw new NotSupportedException(SR.NotSupported); } 216throw new NotSupportedException(SR.NotSupported); 221throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\GZipStream.cs (5)
43get { throw new NotSupportedException(SR.NotSupported); } 48get { throw new NotSupportedException(SR.NotSupported); } 49set { throw new NotSupportedException(SR.NotSupported); } 60throw new NotSupportedException(SR.NotSupported); 65throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (5)
30set { throw new NotSupportedException(SR.NotSupported); } 98get { throw new NotSupportedException(SR.NotSupported); } 103throw new NotSupportedException(SR.NotSupported); 108throw new NotSupportedException(SR.NotSupported); 113throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\ZipArchive.cs (3)
238throw new NotSupportedException(SR.EntriesInCreateMode); 347throw new NotSupportedException(SR.EntriesInCreateMode); 397throw new NotSupportedException(SR.CreateInReadMode);
System\IO\Compression\ZipArchiveEntry.cs (7)
269throw new NotSupportedException(SR.ReadOnlyArchive); 313throw new NotSupportedException(SR.DeleteOnlyInUpdate); 1185throw new NotSupportedException(SR.SeekingNotSupported); 1198throw new NotSupportedException(SR.SeekingNotSupported); 1215throw new NotSupportedException(SR.ReadingNotSupported); 1221throw new NotSupportedException(SR.SeekingNotSupported); 1227throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipCustomStreams.cs (14)
78throw new NotSupportedException(SR.ReadingNotSupported); 84throw new NotSupportedException(SR.WritingNotSupported); 90throw new NotSupportedException(SR.SeekingNotSupported); 262throw new NotSupportedException(SR.SeekingNotSupported); 281throw new NotSupportedException(SR.ReadingNotSupported); 369throw new NotSupportedException(SR.SeekingNotSupported); 375throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting); 381throw new NotSupportedException(SR.WritingNotSupported); 387throw new NotSupportedException(SR.WritingNotSupported); 453throw new NotSupportedException(SR.SeekingNotSupported); 467throw new NotSupportedException(SR.SeekingNotSupported); 486throw new NotSupportedException(SR.ReadingNotSupported); 492throw new NotSupportedException(SR.SeekingNotSupported); 498throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System.IO.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
343throw new NotSupportedException(SR.NotSupported_GetHashCode);
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
474throw new NotSupportedException(SR.IsolatedStorage_NotValidOnDesktop);
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedViewStream.cs (1)
29throw new NotSupportedException(SR.NotSupported_MMViewStreamsFixedLength);
System.IO.Pipelines (3)
src\libraries\Common\src\System\IO\StreamHelpers.CopyValidation.cs (2)
36throw new NotSupportedException(SR.NotSupported_UnreadableStream); 41throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System\IO\Pipelines\ThrowHelper.cs (1)
90public static NotSupportedException CreateNotSupportedException_UnflushedBytes() => new NotSupportedException(SR.UnflushedBytesNotSupported);
System.IO.Pipes (15)
System\IO\Error.cs (3)
21return new NotSupportedException(SR.NotSupported_UnreadableStream); 26return new NotSupportedException(SR.NotSupported_UnseekableStream); 31return new NotSupportedException(SR.NotSupported_UnwritableStream);
System\IO\Pipes\AnonymousPipeClientStream.cs (3)
25throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 52throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 97throw new NotSupportedException(SR.NotSupported_AnonymousPipeMessagesNotSupported);
System\IO\Pipes\AnonymousPipeServerStream.cs (3)
38throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 68throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional); 156throw new NotSupportedException(SR.NotSupported_AnonymousPipeMessagesNotSupported);
System\IO\Pipes\NamedPipeClientStream.Unix.cs (2)
96if (!CanRead) throw new NotSupportedException(SR.NotSupported_UnreadableStream); 106if (!CanWrite) throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (2)
184if (!CanRead) throw new NotSupportedException(SR.NotSupported_UnreadableStream); 194if (!CanWrite) throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System\IO\Pipes\PipeStream.Unix.cs (2)
378throw new NotSupportedException(SR.NotSupported_UnreadableStream); 395throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System.Linq.Expressions (4)
System\Dynamic\Utils\TypeUtils.cs (1)
89throw new NotSupportedException(Strings.LiftingInExpressionRequiresDynamicCode(type));
System\Linq\Expressions\Error.cs (3)
68return new NotSupportedException(Strings.CollectionReadOnly); 1157return new NotSupportedException(Strings.TryNotSupportedForMethodsWithRefArgs(p0)); 1164return new NotSupportedException(Strings.TryNotSupportedForValueTypeInstances(p0));
System.Linq.Parallel (14)
System\Linq\ParallelEnumerable.cs (14)
653throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 717throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 784throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 850throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 919throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4294throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4347throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4454throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4535throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4578throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4625throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4673throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4722throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel); 4769throw new NotSupportedException(SR.ParallelEnumerable_BinaryOpMustUseAsParallel);
System.Net.Http (24)
System\Net\Http\EmptyReadStream.cs (1)
34public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.net_http_content_readonly_stream);
System\Net\Http\HttpContent.cs (1)
338throw new NotSupportedException(SR.Format(SR.net_http_missing_sync_implementation, GetType(), nameof(HttpContent), nameof(SerializeToStream)));
System\Net\Http\HttpMessageHandler.cs (1)
24throw new NotSupportedException(SR.Format(SR.net_http_missing_sync_implementation, GetType(), nameof(HttpMessageHandler), nameof(Send)));
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (6)
1504public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.net_http_content_readonly_stream); 1506public override ValueTask WriteAsync(ReadOnlyMemory<byte> destination, CancellationToken cancellationToken) => ValueTask.FromException(new NotSupportedException(SR.net_http_content_readonly_stream)); 1523public override int Read(Span<byte> buffer) => throw new NotSupportedException(SR.net_http_content_writeonly_stream); 1525public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken) => ValueTask.FromException<int>(new NotSupportedException(SR.net_http_content_writeonly_stream)); 1527public override void CopyTo(Stream destination, int bufferSize) => throw new NotSupportedException(SR.net_http_content_writeonly_stream); 1529public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken) => Task.FromException(new NotSupportedException(SR.net_http_content_writeonly_stream));
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
412throw new NotSupportedException(SR.net_http_invalid_proxy_scheme);
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (1)
23public sealed override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.net_http_content_readonly_stream);
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (5)
565throw new NotSupportedException(SR.Format(SR.net_http_http2_sync_not_supported, GetType())); 571throw new NotSupportedException(SR.Format(SR.net_http_upgrade_not_enabled_sync, nameof(Send), request.VersionPolicy)); 615return new NotSupportedException(SR.net_http_unsupported_version); 642return new NotSupportedException(SR.net_http_unsupported_chunking); 660return new NotSupportedException(SR.Format(SR.net_http_unsupported_requesturi_scheme, requestUri.Scheme));
System\Net\Http\StreamContent.cs (8)
160throw new NotSupportedException(SR.net_http_content_readonly_stream); 163throw new NotSupportedException(SR.net_http_content_readonly_stream); 166throw new NotSupportedException(SR.net_http_content_readonly_stream); 169throw new NotSupportedException(SR.net_http_content_readonly_stream); 172throw new NotSupportedException(SR.net_http_content_readonly_stream); 175throw new NotSupportedException(SR.net_http_content_readonly_stream); 178throw new NotSupportedException(SR.net_http_content_readonly_stream); 181throw new NotSupportedException(SR.net_http_content_readonly_stream);
System.Net.HttpListener (11)
System\Net\HttpRequestStream.cs (5)
42public override long Length => throw new NotSupportedException(SR.net_noseek); 46get => throw new NotSupportedException(SR.net_noseek); 47set => throw new NotSupportedException(SR.net_noseek); 50public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.net_noseek); 52public override void SetLength(long value) => throw new NotSupportedException(SR.net_noseek);
System\Net\HttpResponseStream.cs (5)
22public override long Length => throw new NotSupportedException(SR.net_noseek); 26get => throw new NotSupportedException(SR.net_noseek); 27set => throw new NotSupportedException(SR.net_noseek); 30public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.net_noseek); 32public override void SetLength(long value) => throw new NotSupportedException(SR.net_noseek);
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
53throw new NotSupportedException(SR.Format(SR.net_listener_invalid_cbt_type, kind.ToString()));
System.Net.Mail (19)
System\Net\DelegatedStream.cs (15)
58throw new NotSupportedException(SR.SeekNotSupported); 69throw new NotSupportedException(SR.SeekNotSupported); 76throw new NotSupportedException(SR.SeekNotSupported); 85throw new NotSupportedException(SR.ReadNotSupported); 93throw new NotSupportedException(SR.WriteNotSupported); 108throw new NotSupportedException(SR.ReadNotSupported); 116throw new NotSupportedException(SR.WriteNotSupported); 134throw new NotSupportedException(SR.ReadNotSupported); 142throw new NotSupportedException(SR.ReadNotSupported); 150throw new NotSupportedException(SR.ReadNotSupported); 158throw new NotSupportedException(SR.SeekNotSupported); 166throw new NotSupportedException(SR.SeekNotSupported); 174throw new NotSupportedException(SR.WriteNotSupported); 182throw new NotSupportedException(SR.WriteNotSupported); 190throw new NotSupportedException(SR.WriteNotSupported);
System\Net\Mail\SmtpClient.cs (2)
476throw new NotSupportedException(SR.SmtpGetIisPickupDirectoryNotSupported); 610throw new NotSupportedException(SR.SmtpGetIisPickupDirectoryNotSupported);
System\Net\Mime\MimeMultiPart.cs (1)
31throw new NotSupportedException(value.ToString());
System\Net\Mime\MimePart.cs (1)
99throw new NotSupportedException(SR.Format(SR.MimeTransferEncodingNotSupported, value));
System.Net.NetworkInformation (13)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (3)
53throw new NotSupportedException(SR.net_collection_readonly); 78throw new NotSupportedException(SR.net_collection_readonly); 83throw new NotSupportedException(SR.net_collection_readonly);
System\Net\NetworkInformation\InternalIPAddressCollection.cs (1)
45throw new NotSupportedException(SR.net_collection_readonly);
System\Net\NetworkInformation\IPAddressInformationCollection.cs (3)
39throw new NotSupportedException(SR.net_collection_readonly); 72throw new NotSupportedException(SR.net_collection_readonly); 77throw new NotSupportedException(SR.net_collection_readonly);
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (3)
39throw new NotSupportedException(SR.net_collection_readonly); 72throw new NotSupportedException(SR.net_collection_readonly); 77throw new NotSupportedException(SR.net_collection_readonly);
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (3)
40throw new NotSupportedException(SR.net_collection_readonly); 73throw new NotSupportedException(SR.net_collection_readonly); 78throw new NotSupportedException(SR.net_collection_readonly);
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
742throw new NotSupportedException(SR.net_ipv4_not_installed); 746throw new NotSupportedException(SR.net_ipv6_not_installed);
System.Net.Primitives (3)
System\Net\NetworkInformation\IPAddressCollection.cs (3)
37throw new NotSupportedException(SR.net_collection_readonly); 65throw new NotSupportedException(SR.net_collection_readonly); 70throw new NotSupportedException(SR.net_collection_readonly);
System.Net.Requests (6)
System\Net\ExceptionHelper.cs (1)
8internal static NotSupportedException PropertyNotSupportedException => new NotSupportedException(SR.net_PropertyNotSupportedException);
System\Net\FileWebRequest.cs (2)
289get { throw new NotSupportedException(SR.net_PropertyNotSupportedException); } 290set { throw new NotSupportedException(SR.net_PropertyNotSupportedException); }
System\Net\ServicePoint\ServicePointManager.cs (1)
45throw new NotSupportedException(SR.net_securityprotocolnotsupported);
System\Net\WebRequest.cs (2)
136throw new NotSupportedException(SR.net_unknown_prefix); 209throw new NotSupportedException(SR.net_unknown_prefix);
System.Net.Security (17)
System\Net\Security\NegotiateStream.cs (4)
284set => throw new NotSupportedException(SR.net_noseek); 291throw new NotSupportedException(SR.net_noseek); 345throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 511throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write"));
System\Net\Security\SslAuthenticationOptions.cs (1)
81throw new NotSupportedException(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStream.cs (3)
671set => throw new NotSupportedException(SR.net_noseek); 676public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.net_noseek); 740throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read"));
System\Net\Security\SslStream.IO.cs (4)
177throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 184throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write")); 805throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 946throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write"));
System\Net\Security\SslStream.Protocol.cs (3)
706throw new NotSupportedException(SR.net_ssl_io_no_server_cert); 725throw new NotSupportedException(SR.net_ssl_io_no_server_cert); 735throw new NotSupportedException(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStreamCertificateContext.cs (1)
44throw new NotSupportedException(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
82throw new NotSupportedException(SR.net_ssl_io_no_server_cert);
System.Net.Sockets (23)
System\Net\Sockets\NetworkStream.cs (5)
180throw new NotSupportedException(SR.net_noseek); 189throw new NotSupportedException(SR.net_noseek); 194throw new NotSupportedException(SR.net_noseek); 202throw new NotSupportedException(SR.net_noseek); 655throw new NotSupportedException(SR.net_noseek);
System\Net\Sockets\Socket.cs (17)
609throw new NotSupportedException(SR.net_invalidversion); 630throw new NotSupportedException(SR.net_invalidversion); 645throw new NotSupportedException(SR.net_invalidversion); 657throw new NotSupportedException(SR.net_invalidversion); 676throw new NotSupportedException(SR.net_invalidversion); 693throw new NotSupportedException(SR.net_invalidversion); 732throw new NotSupportedException(SR.net_invalidversion); 825throw new NotSupportedException(SR.net_invalidversion); 857throw new NotSupportedException(SR.net_invalidversion); 875throw new NotSupportedException(SR.net_invalidversion); 908throw new NotSupportedException(SR.net_invalidversion); 1263throw new NotSupportedException(SR.net_notconnected); 2205throw new NotSupportedException(SR.net_invalidversion); 2429throw new NotSupportedException(SR.net_notconnected); 2754throw new NotSupportedException(SR.net_invalidversion); 2776throw new NotSupportedException(SR.net_invalidversion); 3068throw new NotSupportedException(SR.net_notconnected);
System\Net\Sockets\Socket.Tasks.cs (1)
760var ex = new NotSupportedException(SR.net_notconnected);
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
95throw new NotSupportedException(SR.net_webclient_no_concurrent_io_allowed);
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (2)
431throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 442throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System\Numerics\Tensors\netcore\TensorSpan.cs (2)
436throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 447throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System.ObjectModel (12)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (12)
297set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 302public int Add(object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 304public void Clear() => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 314public void Insert(int index, object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 316public void Remove(object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 318public void RemoveAt(int index) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 334set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 362public int Add(object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 363public void Clear() => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 364public void Insert(int index, object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 365public void Remove(object? value) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 366public void RemoveAt(int index) => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System.Private.CoreLib (339)
src\Internal\Runtime\InteropServices\ComponentActivator.CoreCLR.cs (1)
22throw new NotSupportedException(SR.NotSupported_CppCli);
src\libraries\System.Private.CoreLib\src\System\Activator.RuntimeType.cs (1)
26throw new NotSupportedException(SR.NotSupported_CreateInstanceWithTypeBuilder);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.cs (1)
338throw new NotSupportedException(SR.Argument_GWithPrecisionNotSupported);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (37)
794throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1615throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1620throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1645throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1650throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1655throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1691throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1696throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1707set => throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1712throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1764throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1769throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1789throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1794throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1799throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1843throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1867set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1874throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1879throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1904throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1909throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1914throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1938set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1945throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1950throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1962set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1967throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2019throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2024throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2044throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2049throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2054throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2059throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2074throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2079throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2095throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2545throw new NotSupportedException(SR.NotSupported_RangeCollection);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (16)
57throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 62throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 68set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 87throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 92throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 97throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 119throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 124throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 149throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 172set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 265throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 270throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 289throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 321throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 326throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 342throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
752throw new NotSupportedException(SR.NotSupported_ChangeType);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\FieldMetadata.cs (4)
123throw new NotSupportedException(SR.EventSource_NotSupportedArrayOfNil); 127throw new NotSupportedException(SR.EventSource_NotSupportedArrayOfBinary); 132throw new NotSupportedException(SR.EventSource_NotSupportedArrayOfNullTerminatedString); 153throw new NotSupportedException(SR.EventSource_TooManyFields);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
402throw new NotSupportedException(SR.EventSource_RecursiveTypeDefinition);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingMetadataCollector.cs (3)
238throw new NotSupportedException(SR.EventSource_NotSupportedNestedArraysEnums); 250throw new NotSupportedException(SR.EventSource_NotSupportedNestedArraysEnums); 280throw new NotSupportedException(SR.EventSource_NotSupportedCustomSerializedData);
src\libraries\System.Private.CoreLib\src\System\HashCode.cs (2)
499public override int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 503public override bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
399throw new NotSupportedException(SR.NotSupported_CannotWriteToBufferedStreamIfReadBufferCannotBeFlushed);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
269throw new NotSupportedException(SR.NotSupported_MemStreamNotExpandable);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (6)
291throw new NotSupportedException(SR.NotSupported_Reading); 329throw new NotSupportedException(SR.NotSupported_Reading); 519throw new NotSupportedException(SR.NotSupported_Writing); 561throw new NotSupportedException(SR.NotSupported_Writing); 575throw new NotSupportedException(SR.NotSupported_Reading); 599throw new NotSupportedException(SR.NotSupported_Writing);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (5)
301throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 314throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 573throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 641throw new NotSupportedException(SR.IO_FixedCapacity); 768throw new NotSupportedException(SR.IO_FixedCapacity);
src\libraries\System.Private.CoreLib\src\System\PlatformNotSupportedException.cs (2)
18: base(SR.Arg_PlatformNotSupported) 24: base(message ?? SR.Arg_PlatformNotSupported)
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (2)
190throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 201throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (2)
37throw new NotSupportedException(SR.Format(SR.NotSupported_NoTypeInfo, types[i].FullName)); 391throw new NotSupportedException(SR.NotSupported_AssemblyLoadFromHash);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (8)
57public override string? CodeBase => throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 64throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 68throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 72throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 75throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 78throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 81throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 84throw new NotSupportedException(SR.NotSupported_DynamicAssembly);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (2)
228throw new NotSupportedException(SR.NotSupported_DynamicMethodFlags); 251(returnType.UnderlyingSystemType as RuntimeType) ?? throw new NotSupportedException(SR.Arg_InvalidTypeInRetType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (2)
171throw new NotSupportedException(SR.NotSupported_OutputStreamUsingTypeBuilder); 262throw new NotSupportedException(SR.NotSupported_EmitDebugInfo);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\LocalBuilder.cs (1)
36protected virtual void SetLocalSymInfoCore(string name) => throw new NotSupportedException(SR.NotSupported_EmitDebugInfo);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
56public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (24)
306public override Guid GUID => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 312throw new NotSupportedException(SR.NotSupported_NonReflectedType); 338public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 371throw new NotSupportedException(SR.NotSupported_NonReflectedType); 377throw new NotSupportedException(SR.NotSupported_NonReflectedType); 384throw new NotSupportedException(SR.NotSupported_NonReflectedType); 390throw new NotSupportedException(SR.NotSupported_NonReflectedType); 396throw new NotSupportedException(SR.NotSupported_NonReflectedType); 402throw new NotSupportedException(SR.NotSupported_NonReflectedType); 409throw new NotSupportedException(SR.NotSupported_NonReflectedType); 415throw new NotSupportedException(SR.NotSupported_NonReflectedType); 421throw new NotSupportedException(SR.NotSupported_NonReflectedType); 427throw new NotSupportedException(SR.NotSupported_NonReflectedType); 434throw new NotSupportedException(SR.NotSupported_NonReflectedType); 440throw new NotSupportedException(SR.NotSupported_NonReflectedType); 446throw new NotSupportedException(SR.NotSupported_NonReflectedType); 452throw new NotSupportedException(SR.NotSupported_NonReflectedType); 458throw new NotSupportedException(SR.NotSupported_NonReflectedType); 464throw new NotSupportedException(SR.NotSupported_NonReflectedType); 476throw new NotSupportedException(SR.NotSupported_NonReflectedType); 482throw new NotSupportedException(SR.NotSupported_NonReflectedType); 539throw new NotSupportedException(SR.NotSupported_NonReflectedType); 544throw new NotSupportedException(SR.NotSupported_NonReflectedType); 549throw new NotSupportedException(SR.NotSupported_NonReflectedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldInfo.cs (3)
72public virtual void SetValueDirect(TypedReference obj, object value) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); } 74public virtual object? GetValueDirect(TypedReference obj) { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); } 76public virtual object? GetRawConstantValue() { throw new NotSupportedException(SR.NotSupported_AbstractNonCLS); }
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
51public virtual Type[] GetGenericArguments() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); }
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInfo.cs (5)
18public override Type[] GetGenericArguments() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 19public virtual MethodInfo GetGenericMethodDefinition() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 23public virtual MethodInfo MakeGenericMethod(params Type[] typeArguments) { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 29public virtual Delegate CreateDelegate(Type delegateType) { throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 30public virtual Delegate CreateDelegate(Type delegateType, object? target) { throw new NotSupportedException(SR.NotSupported_SubclassOverride); }
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (27)
70public override bool Equals([NotNullWhen(true)] object? obj) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 71public override bool Equals(Type? other) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 72public override int GetHashCode() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 85=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 88public override int MetadataToken => throw new NotSupportedException(SR.NotSupported_ModifiedType); 91public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_ModifiedType); 96public override Type? BaseType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 97public override Type? DeclaringType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 98public override Type? ReflectedType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 102CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 105public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 110=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 113public override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 116public override FieldInfo? GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 119public override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 127public override Type? GetInterface(string name, bool ignoreCase) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 130public override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 134public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 137public override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 142=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 145public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 148public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 151public override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 154public override Type? GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 157public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 160public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 162public override MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs (2)
87throw new NotSupportedException(SR.NotSupported_ByRefToByRefLikeReturn); 89throw new NotSupportedException(SR.NotSupported_ByRefToVoidReturn);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (64)
54public sealed override Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_SignatureType); // There is no SignatureType for type definition types so it would never be legal to call this. 81public sealed override Assembly Assembly => throw new NotSupportedException(SR.NotSupported_SignatureType); 82public sealed override Module Module => throw new NotSupportedException(SR.NotSupported_SignatureType); 84public sealed override Type ReflectedType => throw new NotSupportedException(SR.NotSupported_SignatureType); 85public sealed override Type BaseType => throw new NotSupportedException(SR.NotSupported_SignatureType); 88public sealed override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_SignatureType); 89public sealed override bool IsAssignableFrom([NotNullWhen(true)] Type? c) => throw new NotSupportedException(SR.NotSupported_SignatureType); 90public sealed override int MetadataToken => throw new NotSupportedException(SR.NotSupported_SignatureType); 91public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 93public sealed override Type DeclaringType => throw new NotSupportedException(SR.NotSupported_SignatureType); 94public sealed override MethodBase DeclaringMethod => throw new NotSupportedException(SR.NotSupported_SignatureType); 96public sealed override Type[] GetGenericParameterConstraints() => throw new NotSupportedException(SR.NotSupported_SignatureType); 97public sealed override GenericParameterAttributes GenericParameterAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType); 98public sealed override bool IsEnumDefined(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType); 99public sealed override string GetEnumName(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType); 100public sealed override string[] GetEnumNames() => throw new NotSupportedException(SR.NotSupported_SignatureType); 101public sealed override Type GetEnumUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SignatureType); 103public sealed override Array GetEnumValues() => throw new NotSupportedException(SR.NotSupported_SignatureType); 104public sealed override Guid GUID => throw new NotSupportedException(SR.NotSupported_SignatureType); 105protected sealed override TypeCode GetTypeCodeImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 106protected sealed override TypeAttributes GetAttributeFlagsImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 109public sealed override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 112public sealed override EventInfo GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 115public sealed override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 118public sealed override FieldInfo GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 121public sealed override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 124public sealed override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 127public sealed override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 130public sealed override Type GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 133public sealed override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 136public sealed override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 139public sealed override object InvokeMember(string name, BindingFlags invokeAttr, Binder? binder, object? target, object?[]? args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? namedParameters) => throw new NotSupportedException(SR.NotSupported_SignatureType); 142protected sealed override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 145protected sealed override MethodInfo GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 148protected sealed override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder? binder, Type? returnType, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 151public sealed override MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter? filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType); 154public sealed override MemberInfo[] GetMember(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 157public sealed override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 166public sealed override MemberInfo[] GetDefaultMembers() => throw new NotSupportedException(SR.NotSupported_SignatureType); 169public sealed override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_SignatureType); 171public sealed override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 172public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 173public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 174public sealed override IList<CustomAttributeData> GetCustomAttributesData() => throw new NotSupportedException(SR.NotSupported_SignatureType); 178public sealed override Type GetInterface(string name, bool ignoreCase) => throw new NotSupportedException(SR.NotSupported_SignatureType); 181protected sealed override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 183protected sealed override bool IsCOMObjectImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 184protected sealed override bool IsPrimitiveImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 185public sealed override IEnumerable<CustomAttributeData> CustomAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType); 188public sealed override Type[] FindInterfaces(TypeFilter filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType); 189public sealed override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException(SR.NotSupported_SignatureType); 190protected sealed override bool IsContextfulImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 191public sealed override bool IsEnum => throw new NotSupportedException(SR.NotSupported_SignatureType); 192public sealed override bool IsEquivalentTo([NotNullWhen(true)] Type? other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 193public sealed override bool IsInstanceOfType([NotNullWhen(true)] object? o) => throw new NotSupportedException(SR.NotSupported_SignatureType); 194protected sealed override bool IsMarshalByRefImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 195public sealed override bool IsSecurityCritical => throw new NotSupportedException(SR.NotSupported_SignatureType); 196public sealed override bool IsSecuritySafeCritical => throw new NotSupportedException(SR.NotSupported_SignatureType); 197public sealed override bool IsSecurityTransparent => throw new NotSupportedException(SR.NotSupported_SignatureType); 199public sealed override bool IsSerializable => throw new NotSupportedException(SR.NotSupported_SignatureType); 200public sealed override bool IsSubclassOf(Type c) => throw new NotSupportedException(SR.NotSupported_SignatureType); 201protected sealed override bool IsValueTypeImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 203public sealed override StructLayoutAttribute StructLayoutAttribute => throw new NotSupportedException(SR.NotSupported_SignatureType); 205public sealed override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (2)
209throw new NotSupportedException(SR.Format(SR.NotSupported_ObsoleteResourcesFile, _mediator.MainAssembly.GetName().Name)); 233throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (3)
52throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed); 57throw new NotSupportedException(SR.NotSupported_ResourceObjectSerialization); 78throw new NotSupportedException(SR.BinaryFormatter_SerializationDisallowed);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
834throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 972throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
806throw new NotSupportedException(SR.NotSupported_ByRefLike); 877throw new NotSupportedException(SR.NotSupported_ByRefLike);
src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
195throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 206throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (3)
241throw new NotSupportedException(exceptionMessage); // matches generic "unknown code page" exception type 252throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, codepage)); 334throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, _codePage));
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (3)
77public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 81get => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 447=> throw new NotSupportedException(SR.NotSupported_UnseekableStream);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
310throw new NotSupportedException(SR.NotSupported_MaxWaitHandles);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (4)
440throw new NotSupportedException(GetResourceString(resource)); 446throw new NotSupportedException(SR.NotSupported_UnseekableStream); 452throw new NotSupportedException(SR.NotSupported_UnreadableStream); 458throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\libraries\System.Private.CoreLib\src\System\Type.cs (8)
66public virtual bool IsByRefLike { [Intrinsic] get => throw new NotSupportedException(SR.NotSupported_SubclassOverride); } 75public virtual int GetArrayRank() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 77public virtual Type GetGenericTypeDefinition() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 79public virtual Type[] GetGenericArguments() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 255public virtual MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 591public virtual InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 631public virtual Array GetEnumValuesAsUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 641public virtual Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_SubclassOverride);
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (1)
77throw new NotSupportedException(SR.NotSupported_NYI);
src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
45throw new NotSupportedException(SR.NotSupported_UnitySerHolder);
src\System\Reflection\Emit\DynamicILGenerator.cs (5)
331throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 345throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 391throw new NotSupportedException(SR.InvalidOperation_NotAllowedInDynamicMethod); 396throw new NotSupportedException(SR.InvalidOperation_NotAllowedInDynamicMethod); 401throw new NotSupportedException(SR.InvalidOperation_NotAllowedInDynamicMethod);
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (1)
120throw new NotSupportedException(SR.NotSupported_CallToVarArg);
src\System\Reflection\Emit\RuntimeConstructorBuilder.cs (2)
78throw new NotSupportedException(SR.NotSupported_DynamicModule); 101throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
162throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (6)
94throw new NotSupportedException(SR.NotSupported_DynamicModule); 103throw new NotSupportedException(SR.NotSupported_DynamicModule); 106public override RuntimeFieldHandle FieldHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 115throw new NotSupportedException(SR.NotSupported_DynamicModule); 120throw new NotSupportedException(SR.NotSupported_DynamicModule); 125throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\System\Reflection\Emit\RuntimeILGenerator.cs (7)
217throw new NotSupportedException(SR.Format(SR.NotSupported_IllegalOneByteBranch, fixupData.m_fixupPos, updateAddr)); 236throw new NotSupportedException(SR.Argument_UnclosedExceptionBlock); 949throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 991throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 1009throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 1040throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 1057throw new NotSupportedException(SR.Argument_NotInExceptionBlock);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (6)
428throw new NotSupportedException(SR.NotSupported_DynamicModule); 440public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 460throw new NotSupportedException(SR.InvalidOperation_TypeNotCreated); 484throw new NotSupportedException(SR.NotSupported_DynamicModule); 489throw new NotSupportedException(SR.NotSupported_DynamicModule); 494throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (9)
113throw new NotSupportedException(SR.NotSupported_DynamicModule); 118throw new NotSupportedException(SR.NotSupported_DynamicModule); 123throw new NotSupportedException(SR.NotSupported_DynamicModule); 128throw new NotSupportedException(SR.NotSupported_DynamicModule); 133throw new NotSupportedException(SR.NotSupported_DynamicModule); 158throw new NotSupportedException(SR.NotSupported_DynamicModule); 177throw new NotSupportedException(SR.NotSupported_DynamicModule); 182throw new NotSupportedException(SR.NotSupported_DynamicModule); 187throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (26)
633throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 644throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 651public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 666throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 675throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 685throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 701throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 710throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 719throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 729throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 754throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 763throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 772throw new NotSupportedException(SR.NotSupported_DynamicModule); 779throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 788throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 797throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 806throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 814throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 823throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 832throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 923throw new NotSupportedException(SR.NotSupported_DynamicModule); 984throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 992throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 1005throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated); 1256throw new NotSupportedException(SR.NotSupported_DynamicModule); 1271throw new NotSupportedException(SR.NotSupported_NoParentDefaultConstructor);
src\System\Reflection\Emit\SymbolMethod.cs (8)
84throw new NotSupportedException(SR.NotSupported_SymbolMethod); 89throw new NotSupportedException(SR.NotSupported_SymbolMethod); 92public override MethodAttributes Attributes => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 96public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 107throw new NotSupportedException(SR.NotSupported_SymbolMethod); 119throw new NotSupportedException(SR.NotSupported_SymbolMethod); 124throw new NotSupportedException(SR.NotSupported_SymbolMethod); 129throw new NotSupportedException(SR.NotSupported_SymbolMethod);
src\System\Reflection\MdFieldInfo.cs (1)
97throw new NotSupportedException(SR.Arg_EnumLitValueNotFound);
src\System\Reflection\RuntimeAssembly.cs (2)
103throw new NotSupportedException(SR.NotSupported_DynamicAssembly); 110throw new NotSupportedException(SR.NotSupported_CodeBase);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
447throw new NotSupportedException(SR.NotSupported_ByRefLike);
src\System\RuntimeType.ActivatorCache.cs (1)
64case NotSupportedException: throw new NotSupportedException(friendlyMessage);
src\System\RuntimeType.CoreCLR.cs (3)
3777throw new NotSupportedException(SR.Acc_CreateArgIterator); 3780throw new NotSupportedException(SR.Acc_CreateVoid); 3858throw new NotSupportedException(SR.NotSupported_CallToVarArg);
src\System\StubHelpers.cs (2)
516throw new NotSupportedException(SR.Interop_Marshal_CannotCreateSafeHandleField); 521throw new NotSupportedException(SR.Interop_Marshal_CannotCreateCriticalHandleField);
System.Private.DataContractSerialization (34)
System\Runtime\Serialization\CodeGenerator.cs (1)
819throw new NotSupportedException(SR.CharIsInvalidPrimitive);
System\Runtime\Serialization\CollectionDataContract.cs (2)
507throw new NotSupportedException(SR.SupportForMultidimensionalArraysNotPresent); 532throw new NotSupportedException(SR.SupportForMultidimensionalArraysNotPresent);
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
1630throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "CreateSigningNodeWriter"));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (27)
258throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 263throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 268throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 273throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 278throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 283throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 288throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 293throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 298throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 303throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 308throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 313throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 318throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 323throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 328throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 333throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 338throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 343throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 348throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 353throw new NotSupportedException(SR.JsonWriteArrayNotSupported); 415throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "WriteComment")); 420throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "WriteDocType")); 644throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "WriteEntityRef")); 1069throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "WriteXmlAttribute")); 1074throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "WriteXmlAttribute")); 1081throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "WriteXmlnsAttribute")); 1089throw new NotSupportedException(SR.Format(SR.JsonMethodNotSupported, "WriteXmlnsAttribute"));
System\Xml\XmlBaseWriter.cs (3)
487throw new NotSupportedException(SR.Format(SR.XmlMethodNotSupported, "WriteDocType")); 942throw new NotSupportedException(SR.Format(SR.XmlMethodNotSupported, "WriteEntityRef")); 955throw new NotSupportedException(SR.Format(SR.XmlMethodNotSupported, "WriteNmToken"));
System.Private.Xml (33)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
4415return new NotSupportedException(res);
System\Xml\Core\XmlReader.cs (5)
650throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 656throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 662throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 668throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex")); 680throw new NotSupportedException(SR.Xml_ReadValueChunkNotSupported);
System\Xml\Core\XmlReaderAsync.cs (5)
126throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 132throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 138throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 144throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex")); 151throw new NotSupportedException(SR.Xml_ReadValueChunkNotSupported);
System\Xml\Serialization\CodeGenerator.cs (2)
788throw new NotSupportedException(SR.XmlInvalidCharSchemaPrimitive); 868throw new NotSupportedException(SR.Format(SR.UnknownConstantType, valueType.AssemblyQualifiedName));
System\Xml\Serialization\Globals.cs (1)
17return new NotSupportedException(msg);
System\Xml\Serialization\Models.cs (2)
67if (!typeDesc.IsSpecial) throw new NotSupportedException(SR.Format(SR.XmlUnsupportedTypeKind, type.FullName)); 209typeDesc.Exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, typeDesc.FullName));
System\Xml\Serialization\SoapReflectionImporter.cs (4)
219throw new NotSupportedException(SR.Format(SR.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName)); 401throw new NotSupportedException(SR.Format(SR.XmlRpcRefsInValueType, model.TypeDesc.FullName)); 403throw new NotSupportedException(SR.Format(SR.XmlRpcNestedValueType, member.TypeDesc.FullName)); 426throw new NotSupportedException(SR.Format(SR.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName));
System\Xml\Serialization\Types.cs (9)
384throw new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, FullName)); 799exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 817exception ??= new NotSupportedException(SR.Format(SR.XmlUnsupportedRank, type.FullName)); 836exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 891exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterface, type.FullName)); 895exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterfaceDetails, $"{memberInfo.DeclaringType!.FullName}.{memberInfo.Name}", type.FullName)); 903exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 1322throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionary, type.FullName)); 1326throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionaryDetails, memberInfo, type.FullName));
System\Xml\Serialization\XmlReflectionImporter.cs (1)
787throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.Type.BaseType!.FullName));
System\Xml\Serialization\XmlSchemaImporter.cs (1)
430throw new NotSupportedException(SR.Format(SR.XmlUnsupportedRedefine, type.Name, typeNs));
System\Xml\Serialization\XmlSerializationReader.cs (1)
1663throw new NotSupportedException(SR.Format(SR.XmlRpcArrayOfValueTypes, elementType.FullName));
System\Xml\XmlResolver.cs (1)
63throw new NotSupportedException(SR.Xml_RelativeUriNotSupported);
System.Private.Xml.Linq (3)
System\Xml\Linq\XNodeBuilder.cs (2)
61throw new NotSupportedException(SR.NotSupported_WriteBase64); 133throw new NotSupportedException(SR.NotSupported_WriteEntityRef);
System\Xml\XPath\XNodeNavigator.cs (1)
451throw new NotSupportedException(SR.NotSupported_MoveToId);
System.Reflection.Emit (69)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
56public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (24)
306public override Guid GUID => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 312throw new NotSupportedException(SR.NotSupported_NonReflectedType); 338public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 371throw new NotSupportedException(SR.NotSupported_NonReflectedType); 377throw new NotSupportedException(SR.NotSupported_NonReflectedType); 384throw new NotSupportedException(SR.NotSupported_NonReflectedType); 390throw new NotSupportedException(SR.NotSupported_NonReflectedType); 396throw new NotSupportedException(SR.NotSupported_NonReflectedType); 402throw new NotSupportedException(SR.NotSupported_NonReflectedType); 409throw new NotSupportedException(SR.NotSupported_NonReflectedType); 415throw new NotSupportedException(SR.NotSupported_NonReflectedType); 421throw new NotSupportedException(SR.NotSupported_NonReflectedType); 427throw new NotSupportedException(SR.NotSupported_NonReflectedType); 434throw new NotSupportedException(SR.NotSupported_NonReflectedType); 440throw new NotSupportedException(SR.NotSupported_NonReflectedType); 446throw new NotSupportedException(SR.NotSupported_NonReflectedType); 452throw new NotSupportedException(SR.NotSupported_NonReflectedType); 458throw new NotSupportedException(SR.NotSupported_NonReflectedType); 464throw new NotSupportedException(SR.NotSupported_NonReflectedType); 476throw new NotSupportedException(SR.NotSupported_NonReflectedType); 482throw new NotSupportedException(SR.NotSupported_NonReflectedType); 539throw new NotSupportedException(SR.NotSupported_NonReflectedType); 544throw new NotSupportedException(SR.NotSupported_NonReflectedType); 549throw new NotSupportedException(SR.NotSupported_NonReflectedType);
System\Reflection\Emit\ArrayMethod.cs (8)
60public override ParameterInfo[] GetParameters() => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 62public override MethodImplAttributes GetMethodImplementationFlags() => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 68public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 74public override ICustomAttributeProvider ReturnTypeCustomAttributes => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 77=> throw new NotSupportedException(SR.NotSupported_SymbolMethod); 83public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 85public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SymbolMethod); 87public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SymbolMethod);
System\Reflection\Emit\ConstructorBuilderImpl.cs (6)
74public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 75public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 76public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 79=> throw new NotSupportedException(SR.NotSupported_DynamicModule); 81throw new NotSupportedException(SR.NotSupported_DynamicModule); 82public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System\Reflection\Emit\FieldBuilderImpl.cs (6)
172public override object? GetValue(object? obj) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 175=> throw new NotSupportedException(SR.NotSupported_DynamicModule); 176public override RuntimeFieldHandle FieldHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 187public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 189public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 191public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System\Reflection\Emit\ILGeneratorImpl.cs (5)
63throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 110throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 153throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 181throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 716throw new NotSupportedException(SR.Argument_NotInExceptionBlock);
System\Reflection\Emit\MethodBuilderImpl.cs (5)
253public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 275public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 277public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 316=> throw new NotSupportedException(SR.NotSupported_DynamicModule); 318public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System\Reflection\Emit\PropertyBuilderImpl.cs (9)
142public override object GetValue(object? obj, object?[]? index) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 144throw new NotSupportedException(SR.NotSupported_DynamicModule); 145public override void SetValue(object? obj, object? value, object?[]? index) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 147throw new NotSupportedException(SR.NotSupported_DynamicModule); 148public override MethodInfo[] GetAccessors(bool nonPublic) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 149public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 150public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 151public override ParameterInfo[] GetIndexParameters() => throw new NotSupportedException(SR.NotSupported_DynamicModule); 152public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System\Reflection\Emit\PseudoCustomAttributesData.cs (2)
323throw new NotSupportedException(SR.Format(SR.NotSupported_UnmanagedTypeOnlyForFields, nameof(UnmanagedType.ByValArray))); 333throw new NotSupportedException(SR.Format(SR.NotSupported_UnmanagedTypeOnlyForFields, nameof(UnmanagedType.ByValArray)));
System\Reflection\Emit\TypeBuilderImpl.cs (3)
228throw new NotSupportedException(SR.NotSupported_NoParentDefaultConstructor); 612public override Type GetElementType() => throw new NotSupportedException(SR.NotSupported_DynamicModule); 659throw new NotSupportedException(SR.NotSupported_TypeNotYetCreated);
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (1)
107throw new NotSupportedException(SR.CantGetOffsetForVirtualHeapHandle);
System.Reflection.MetadataLoadContext (33)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (4)
52public sealed override string CodeBase => throw new NotSupportedException(SR.NotSupported_AssemblyCodeBase); 57public sealed override string EscapedCodeBase => throw new NotSupportedException(SR.NotSupported_AssemblyCodeBase); 208public sealed override Assembly GetSatelliteAssembly(CultureInfo culture) => throw new NotSupportedException(SR.NotSupported_SatelliteAssembly); 209public sealed override Assembly GetSatelliteAssembly(CultureInfo culture, Version? version) => throw new NotSupportedException(SR.NotSupported_SatelliteAssembly);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
116public sealed override MethodInfo GetBaseDefinition() => throw new NotSupportedException(SR.NotSupported_GetBaseDefinition);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (1)
42public sealed override int MDStreamVersion => throw new NotSupportedException(SR.NotSupported_MDStreamVersion);
System\Reflection\TypeLoading\Modules\RoModule.cs (7)
86public sealed override FieldInfo ResolveField(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens); 87public sealed override MemberInfo ResolveMember(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens); 88public sealed override MethodBase ResolveMethod(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens); 89public sealed override byte[] ResolveSignature(int metadataToken) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens); 90public sealed override string ResolveString(int metadataToken) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens); 91public sealed override Type ResolveType(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens); 121throw new NotSupportedException(SR.NotSupported_CaseInsensitive);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (19)
115public override bool Equals([NotNullWhen(true)] object? obj) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 116public override bool Equals(Type? other) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 117public override int GetHashCode() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 150public override MethodBase? DeclaringMethod => throw new NotSupportedException(SR.NotSupported_ModifiedType); 151protected override RoType? ComputeDeclaringType() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 158get { throw new NotSupportedException(SR.NotSupported_ModifiedType); } 165public override int MetadataToken => throw new NotSupportedException(SR.NotSupported_ModifiedType); 169public override Type GetGenericTypeDefinition() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 176public override Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 183public override Type[] GetGenericParameterConstraints() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 186protected internal override RoType ComputeEnumUnderlyingType() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 188internal override RoType? ComputeBaseTypeWithoutDesktopQuirk() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 189internal override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 192internal override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 193internal override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 194internal override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 195internal override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 196internal override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 197internal override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
System\Reflection\TypeLoading\Types\RoType.cs (1)
248public sealed override InterfaceMapping GetInterfaceMap(Type interfaceType) => throw new NotSupportedException(SR.NotSupported_InterfaceMapping);
System.Resources.Extensions (2)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
834throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 972throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed);
System.Runtime.Caching (10)
System\Runtime\Caching\MemoryCache.cs (10)
447throw new NotSupportedException(SR.RegionName_not_supported); 513throw new NotSupportedException(SR.RegionName_not_supported); 616throw new NotSupportedException(SR.RegionName_not_supported); 637throw new NotSupportedException(SR.RegionName_not_supported); 657throw new NotSupportedException(SR.RegionName_not_supported); 678throw new NotSupportedException(SR.RegionName_not_supported); 801throw new NotSupportedException(SR.RegionName_not_supported); 819throw new NotSupportedException(SR.RegionName_not_supported); 838throw new NotSupportedException(SR.RegionName_not_supported); 848throw new NotSupportedException(SR.RegionName_not_supported);
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\Formatters\Binary\BinaryFormatter.Core.cs (2)
18throw new NotSupportedException(SR.BinaryFormatter_SerializationDisallowed); 66throw new NotSupportedException(SR.BinaryFormatter_SerializationDisallowed);
System.Security.Cryptography (36)
System\Security\Cryptography\CryptoStream.cs (12)
93get { throw new NotSupportedException(SR.NotSupported_UnseekableStream); } 98get { throw new NotSupportedException(SR.NotSupported_UnseekableStream); } 99set { throw new NotSupportedException(SR.NotSupported_UnseekableStream); } 138throw new NotSupportedException(SR.Cryptography_CryptoStream_FlushFinalBlockTwice); 209throw new NotSupportedException(SR.NotSupported_UnseekableStream); 214throw new NotSupportedException(SR.NotSupported_UnseekableStream); 227return ValueTask.FromException<int>(new NotSupportedException(SR.NotSupported_UnreadableStream)); 305throw new NotSupportedException(SR.NotSupported_UnreadableStream); 466return ValueTask.FromException(new NotSupportedException(SR.NotSupported_UnwritableStream)); 529throw new NotSupportedException(SR.NotSupported_UnwritableStream); 748throw new NotSupportedException(SR.NotSupported_UnwritableStream); 751throw new NotSupportedException(SR.NotSupported_UnreadableStream);
System\Security\Cryptography\ECAlgorithm.cs (4)
41throw new NotSupportedException(SR.NotSupported_SubclassOverride); 56throw new NotSupportedException(SR.NotSupported_SubclassOverride); 68throw new NotSupportedException(SR.NotSupported_SubclassOverride); 80throw new NotSupportedException(SR.NotSupported_SubclassOverride);
System\Security\Cryptography\ECDiffieHellmanPublicKey.ExportParameters.cs (2)
21throw new NotSupportedException(SR.NotSupported_SubclassOverride); 30throw new NotSupportedException(SR.NotSupported_SubclassOverride);
System\Security\Cryptography\ECDsa.cs (1)
1262throw new NotSupportedException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\RSA.cs (2)
365throw new NotSupportedException(SR.NotSupported_Method); // Same as Desktop 370throw new NotSupportedException(SR.NotSupported_Method); // Same as Desktop
System\Security\Cryptography\SymmetricAlgorithm.cs (6)
1470throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1494throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1525throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1551throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1580throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1613throw new NotSupportedException(SR.NotSupported_SubclassOverride);
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (3)
43throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 73throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 85throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
342throw new NotSupportedException(
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (3)
17throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 25throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 42throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
94throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
275_ => throw new NotSupportedException(SR.NotSupported_KeyAlgorithm),
System.Text.Encoding.CodePages (6)
System\Text\BaseCodePageEncoding.cs (1)
255throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage));
System\Text\DBCSCodePageEncoding.cs (1)
99throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage));
System\Text\EncodingNLS.cs (3)
371throw new NotSupportedException( 384throw new NotSupportedException( 550throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage));
System\Text\SBCSCodePageEncoding.cs (1)
73throw new NotSupportedException(SR.Format(SR.NotSupported_NoCodepageData, CodePage));
System.Text.Json (17)
System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverter.cs (2)
15throw new NotSupportedException(ErrorMessage); 18throw new NotSupportedException(ErrorMessage);
System\Text\Json\ThrowHelper.Node.cs (1)
61return new NotSupportedException(SR.CollectionIsReadOnly);
System\Text\Json\ThrowHelper.Serialization.cs (14)
33throw new NotSupportedException(SR.Format(SR.SerializationNotSupportedType, propertyType)); 39throw new NotSupportedException(SR.Format(SR.TypeRequiresAsyncSerialization, propertyType)); 45throw new NotSupportedException(SR.Format(SR.DictionaryKeyTypeNotSupported, keyType, converter.GetType())); 105throw new NotSupportedException(SR.ObjectCreationHandlingPropertyDoesNotSupportParameterizedConstructors); 389NotSupportedException ex = new NotSupportedException( 617ThrowNotSupportedException(ref state, reader, new NotSupportedException(message)); 623ThrowNotSupportedException(ref state, reader, new NotSupportedException(SR.Format(SR.CannotPopulateCollection, type))); 786throw new NotSupportedException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>")); 791return new NotSupportedException(SR.Format(SR.AmbiguousMetadataForType, type, match1, match2)); 797throw new NotSupportedException(SR.Format(SR.ConstructorContainsNullParameterNames, declaringType)); 826throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType)); 832throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType)); 838throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeNotSupported, runtimeType, baseType)); 844throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeDiamondAmbiguity, runtimeType, derivedType1, derivedType2, baseType));
System.Text.RegularExpressions (40)
System\Text\RegularExpressions\CaptureCollection.cs (12)
128throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 131throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 136set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 140throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 143throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 149throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 152throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 155throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 164throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 169throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 172throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 177set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System\Text\RegularExpressions\GroupCollection.cs (12)
142throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 145throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 150set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 154throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 157throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 163throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 166throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 169throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 178throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 183throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 186throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 191set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System\Text\RegularExpressions\Match.cs (1)
119Regex? regex = _regex ?? throw new NotSupportedException(SR.NoResultOnFailed);
System\Text\RegularExpressions\MatchCollection.cs (12)
138throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 141throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 146set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 150throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 153throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 162throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 165throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 168throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 177throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 182throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 185throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 190set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System\Text\RegularExpressions\RegexRunner.cs (1)
145throw new NotSupportedException(SR.UsingSpanAPIsWithCompiledToAssembly);
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
178throw new NotSupportedException(SR.Format(SR.NotSupported_NonBacktrackingConflictingExpression, node.Kind switch
System\Text\RegularExpressions\Symbolic\SymbolicRegexRunnerFactory.cs (1)
35throw new NotSupportedException(SR.Format(SR.NotSupported_NonBacktrackingUnsafeSize, size, threshold));
System.Threading.Tasks.Dataflow (10)
Base\DataflowBlock.cs (7)
203IDisposable ISourceBlock<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 736IDisposable ISourceBlock<TOutput>.LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 738void IDataflowBlock.Complete() { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 740void IDataflowBlock.Fault(Exception exception) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 1390Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } } 1518Task IDataflowBlock.Completion => throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); 2216Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
Blocks\BatchedJoinBlock.cs (1)
633Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
Blocks\JoinBlock.cs (1)
948public Task Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
Internal\TargetRegistry.cs (1)
353IDisposable ISourceBlock<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); }
System.Threading.Tasks.Parallel (3)
System\Threading\Tasks\ParallelLoopState.cs (3)
44throw new NotSupportedException( 101throw new NotSupportedException( 149throw new NotSupportedException(
System.Transactions.Local (1)
System\Transactions\TransactionScope.cs (1)
1156throw new NotSupportedException(SR.AsyncFlowAndESInteropNotSupported);
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\Exceptions.cs (1)
103return new NotSupportedException(Format(
System.Xaml (14)
System\Windows\Markup\ValueSerializer.cs (2)
249return new NotSupportedException(SR.Format(SR.ConvertToException, base.GetType().Name, text, destinationType.FullName)); 266return new NotSupportedException(SR.Format(SR.ConvertFromException, base.GetType().Name, text));
System\Xaml\Runtime\DynamicMethodRuntime.cs (2)
235throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, member)); 252throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, member));
System\Xaml\Schema\XamlMemberInvoker.cs (5)
60throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, _member)); 79throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, _member)); 173throw new NotSupportedException(SR.NotSupportedOnUnknownMember); 181throw new NotSupportedException(SR.NotSupportedOnDirective); 186throw new NotSupportedException(SR.NotSupportedOnDirective);
System\Xaml\Schema\XamlTypeInvoker.cs (4)
78throw new NotSupportedException(SR.OnlySupportedOnCollections); 110throw new NotSupportedException(SR.OnlySupportedOnDictionaries); 223throw new NotSupportedException(SR.OnlySupportedOnCollectionsAndDictionaries); 268throw new NotSupportedException(SR.NotSupportedOnUnknownType);
System\Xaml\XamlXmlWriter.cs (1)
924throw new NotSupportedException(SR.MissingCaseXamlNodes);
WasmAppBuilder (2)
PInvokeCollector.cs (2)
93throw new NotSupportedException($"Unsupported parameter type in method '{type.FullName}.{method.Name}'"); 113throw new NotSupportedException($"Unsupported parameter type in method '{type.FullName}.{method.Name}'");