2171 references to NotSupportedException
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\PropertyFetcher.AOT.cs (1)
115throw new NotSupportedException(
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
823throw new NotSupportedException($"Unexpected {nameof(FrontendAuthMode)} enum member: {dashboardOptions.Frontend.AuthMode}");
Aspire.Hosting (1)
Publishing\ResourceContainerImageBuilder.cs (1)
70throw new NotSupportedException($"The resource type '{resource.GetType().Name}' is not supported.");
Aspire.Hosting.Azure (6)
AzurePublishingContext.cs (1)
189_ => throw new NotSupportedException("Unsupported value type " + val.GetType())
AzureResourcePreparer.cs (1)
412throw new NotSupportedException("Unsupported value type " + value.GetType());
Provisioning\Provisioners\BicepProvisioner.cs (2)
489_ => throw new NotSupportedException($"The parameter value type {parameterValue.GetType()} is not supported.") 506_ => throw new NotSupportedException($"The scope value type {targetScope.GetType()} is not supported.")
src\Shared\BicepFunction2.cs (2)
28_ => throw new NotSupportedException($"{args[0]} is not supported") 64throw new NotSupportedException($"{argument} is not supported");
Aspire.Hosting.Azure.AppContainers (14)
AzureContainerAppEnvironmentResource.cs (1)
92throw new NotSupportedException("Automatic Key vault generation is not supported in this environment. Please create a key vault resource directly.");
AzureContainerAppExtensions.cs (1)
67throw new NotSupportedException($"Only one container app environment is supported at this time. Found: {existingContainerAppEnvResource.Name}");
AzureContainerAppsInfrastructure.cs (1)
38throw new NotSupportedException("Multiple container app environments are not supported.");
ContainerAppContext.cs (9)
208throw new NotSupportedException($"The endpoint(s) {string.Join(", ", unsupportedEndpoints.Select(e => $"'{e.Name}'"))} specify an unsupported scheme. The supported schemes are 'http', 'https', and 'tcp'."); 306throw new NotSupportedException("Multiple external endpoints are not supported"); 312throw new NotSupportedException("External non-HTTP(s) endpoints are not supported"); 322throw new NotSupportedException("HTTP(s) and TCP endpoints cannot be mixed"); 359throw new NotSupportedException($"The endpoint '{e.Name}' is an http endpoint and must use port 80"); 364throw new NotSupportedException($"The endpoint '{e.Name}' is an https endpoint and must use port 443"); 383throw new NotSupportedException("Container port is required for all endpoints"); 432_ => throw new NotSupportedException("Unsupported value type " + val.GetType()) 600throw new NotSupportedException("Unsupported value type " + value.GetType());
src\Shared\BicepFunction2.cs (2)
28_ => throw new NotSupportedException($"{args[0]} is not supported") 64throw new NotSupportedException($"{argument} is not supported");
Aspire.Hosting.Azure.AppService (7)
AzureAppServiceWebsiteContext.cs (5)
87throw new NotSupportedException($"The endpoint(s) {string.Join(", ", unsupportedEndpoints.Select(e => $"'{e.Name}'"))} on resource '{resource.Name}' specifies an unsupported scheme. Only http and https are supported in App Service."); 94throw new NotSupportedException($"The endpoint '{endpoint.Name}' on resource '{resource.Name}' is not external. App Service only supports external endpoints."); 184throw new NotSupportedException($"Unsupported value type {value.GetType()}"); 195_ => throw new NotSupportedException($"Unsupported value type {val.GetType()}") 312_ => throw new NotSupportedException($"Unsupported endpoint property {property}")
src\Shared\BicepFunction2.cs (2)
28_ => throw new NotSupportedException($"{args[0]} is not supported") 64throw new NotSupportedException($"{argument} is not supported");
Aspire.Hosting.Azure.CosmosDB (2)
AzureCosmosDBExtensions.cs (2)
211throw new NotSupportedException($"'{nameof(WithPartitionCount)}' does not work when using the preview version of the Azure Cosmos DB emulator."); 299throw new NotSupportedException($"The Data Explorer endpoint is only available when using the preview version of the Azure Cosmos DB emulator. Call '{nameof(RunAsPreviewEmulator)}' instead.");
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentContext.cs (1)
137throw new NotSupportedException("Command line args must be strings");
DockerComposeInfrastructure.cs (1)
30throw new NotSupportedException("Multiple Docker Compose environments are not supported.");
Aspire.Hosting.Kubernetes (3)
KubernetesInfrastructure.cs (1)
30throw new NotSupportedException("Multiple Kubernetes environments are not supported.");
KubernetesResource.cs (1)
241throw new NotSupportedException("Command line args must be strings");
KubernetesServiceResourceExtensions.cs (1)
92throw new NotSupportedException($"Unsupported value type: {value.GetType().Name}");
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
111throw new NotSupportedException(
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (1)
111throw new NotSupportedException(
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\PropertyFetcher.AOT.cs (1)
117throw new NotSupportedException(
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\TracerProviderBuilderExtensions.cs (1)
162throw new NotSupportedException("ConfigureRedisInstrumentation is not supported on the supplied builder type.");
AutobahnTestApp (1)
Program.cs (1)
51throw new NotSupportedException("This test app does not support multiple endpoints.");
dotnet-svcutil-lib (87)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
4506return new NotSupportedException(res);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (5)
736throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 742throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 748throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 754throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex")); 772throw new NotSupportedException(ResXml.Xml_ReadValueChunkNotSupported);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (5)
143throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 149throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 155throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 161throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex")); 168throw new NotSupportedException(ResXml.Xml_ReadValueChunkNotSupported);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (3)
124return new NotSupportedException(msg); 1142throw new NotSupportedException("Char is not a valid schema primitive and should be treated as int in DataContract"); 1193throw new NotSupportedException("UnknownConstantType"); //.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SR.UnknownConstantType, DataContract.GetClrTypeFullName(valueType))));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (2)
63if (!typeDesc.IsSpecial) throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedTypeKind, type.FullName)); 193typeDesc.Exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (4)
252throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName)); 430throw new NotSupportedException(string.Format(ResXml.XmlRpcRefsInValueType, model.TypeDesc.FullName)); 432throw new NotSupportedException(string.Format(ResXml.XmlRpcNestedValueType, member.TypeDesc.FullName)); 455throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
273throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (9)
388throw new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, FullName)); 823exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 845exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedRank, type.FullName)); 867exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 923exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterface, type.FullName)); 927exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterfaceDetails, memberInfo.DeclaringType.FullName + "." + memberInfo.Name, type.FullName)); 937exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 1346throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionary, type.FullName)); 1350throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionaryDetails, memberInfo, type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
802throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedInheritance, model.Type.GetTypeInfo().BaseType.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
558throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (1)
1766throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, elementType.FullName));
FrameworkFork\Microsoft.Xml\Xml\XmlResolver.cs (1)
62throw new NotSupportedException(ResXml.Xml_RelativeUriNotSupported);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
992throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.CharIsInvalidPrimitive)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (1)
682throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.SupportForMultidimensionalArraysNotPresent)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (3)
465throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteDocType"))); 909throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteEntityRef"))); 922throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteNmToken")));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (6)
82throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 86throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 160throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 165throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 170throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 175throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenProvider.cs (2)
64throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenRenewalNotSupported, this))); 69throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenCancellationNotSupported, this)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifierClause.cs (1)
52throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.KeyIdentifierClauseDoesNotSupportKeyCreation));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityToken.cs (1)
27throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
173throw FxTrace.Exception.AsError(new NotSupportedException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (9)
66throw new NotSupportedException("write"); 113get { throw new NotSupportedException("Position"); } 118get { throw new NotSupportedException("Position"); } 119set { throw new NotSupportedException("Position"); } 222throw new NotSupportedException("Read"); 227throw new NotSupportedException("ReadAsync"); 232throw new NotSupportedException("ReadByte"); 545throw new NotSupportedException("seek"); 551throw new NotSupportedException("SetLength");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (5)
290throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SPS_SeekNotSupported)); 298throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SPS_SeekNotSupported)); 302throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SPS_SeekNotSupported)); 433throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SPS_SeekNotSupported)); 439throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SPS_SeekNotSupported));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException( 552throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupported1, method.Name))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupportedOnCallback1, method.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (2)
123throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SFxCannotHaveDifferentTransactionProtocolsInOneBinding)); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (5)
961get { throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); } 968throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 973throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 1103throw FxTrace.Exception.AsError(new NotSupportedException("this method should never get called")); 1120throw FxTrace.Exception.AsError(new NotSupportedException("this method should never get called"));
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (1)
577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupported1, methodName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
637throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
186throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException
FrameworkFork\System.ServiceModel\System\ServiceModel\HttpBindingBase.cs (2)
320throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", mode))); 330throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Transport.ClientCredentialType", transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpBinding.cs (1)
267throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedBindingProperty, "MessageEncoding", this.MessageEncoding)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpsBinding.cs (1)
132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedBindingProperty, "MessageEncoding", MessageEncoding)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (2)
170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SecurityTokenManagerCannotCreateProviderForRequirement, tokenRequirement))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SecurityTokenManagerCannotCreateAuthenticatorForRequirement, tokenRequirement)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (1)
362throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedPasswordType, type)));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
122throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SFxCollectionReadOnly)); 182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRServiceModel.SFxCopyToRequiresICollection));
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
400=> throw e.Exception ?? new NotSupportedException(e.Message);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
154analyzerFileReference.AnalyzerLoadFailed += (sender, e) => throw e.Exception ?? new NotSupportedException(e.Message);
Http2SampleApp (1)
Program.cs (1)
53throw new NotSupportedException("Prohibited cipher: " + tlsFeature.CipherAlgorithm);
IdeCoreBenchmarks (1)
ProjectOperationBenchmarks.cs (1)
48_ => throw new NotSupportedException($"'{nameof(DocumentCount)}' is out of range"),
illink (6)
Metrics (4)
Program.cs (2)
314throw new NotSupportedException("Project must support compilation."); 347throw new NotSupportedException("Project must support compilation.");
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
Metrics.Legacy (4)
src\RoslynAnalyzers\Tools\Metrics\Program.cs (2)
314throw new NotSupportedException("Project must support compilation."); 347throw new NotSupportedException("Project must support compilation.");
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
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.App.CodeFixes (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.Authentication.Negotiate (2)
NegotiateHandler.cs (2)
408?? throw new NotSupportedException($"Negotiate authentication requires a server that supports {nameof(IConnectionItemsFeature)} like Kestrel."); 414?? throw new NotSupportedException($"Negotiate authentication requires a server that supports {nameof(IConnectionCompleteFeature)} like Kestrel.");
Microsoft.AspNetCore.Components (2)
NavigationManager.cs (1)
512=> throw new NotSupportedException($"To support navigation locks, {GetType().Name} must override {nameof(SetNavigationLockState)}");
RenderTree\Renderer.cs (1)
1291throw 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)
258_ => throw new NotSupportedException($"Unknown sort direction {direction}"),
Microsoft.AspNetCore.Components.Server (4)
Circuits\RemoteJSDataStream.cs (1)
171=> throw new NotSupportedException("Synchronous reads are not supported.");
Circuits\RemoteRenderer.cs (1)
313_ => 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)
191_ => 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)
65=> throw new NotSupportedException("Synchronous reads are not supported.");
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\PullFromJSDataStream.cs (1)
65=> 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 (1)
Error.cs (1)
108return new NotSupportedException(Resources.XmlKeyManager_DoesNotSupportKeyDeletion);
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)
60throw new NotSupportedException(Resources.FormatException_UseMiddlewareExplicitArgumentsNotSupported(typeof(IMiddleware))); 209throw new NotSupportedException(Resources.FormatException_InvokeDoesNotSupportRefOrOutParams(InvokeMethodName)); 309throw 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)
715throw new NotSupportedException($"The by reference parameter '{attribute} {TypeNameHelper.GetTypeDisplayName(parameter.ParameterType, fullName: false)} {parameter.Name}' is not supported."); 762throw new NotSupportedException( 776throw new NotSupportedException( 801throw new NotSupportedException( 821throw new NotSupportedException( 2624return 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.Http.ValidationsGenerator (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.Identity (5)
IdentityApiEndpointRouteBuilderExtensions.cs (5)
64throw new NotSupportedException($"{nameof(MapIdentityApi)} requires a user store with email support."); 322throw new NotSupportedException("The user manager must produce an authenticator key after reset."); 394throw new NotSupportedException("No email confirmation endpoint was registered!"); 416?? throw new NotSupportedException($"Could not find endpoint named '{confirmEmailEndpointName}'."); 462Email = 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.JsonPatch.SystemTextJson (1)
Operations\Operation.cs (1)
62throw new NotSupportedException(Resources.TestOperationNotSupported);
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\BindingInfo.cs (1)
184throw new NotSupportedException(
ModelBinding\ModelMetadata.cs (4)
460throw new NotSupportedException("ElementType is not initialized when `Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported` is false."); 509throw new NotSupportedException("IsCollectionType is not initialized when `Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported` is false."); 555throw new NotSupportedException("IsParseableType is not initialized when `Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported` is false."); 578throw new NotSupportedException("IsConvertibleType is not initialized when `Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported` is false.");
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.Mvc.Testing (1)
WebApplicationFactory.cs (1)
88throw new NotSupportedException(Resources.TestServerNotSupportedWhenUsingKestrel);
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchema.cs (1)
50throw new NotSupportedException("OpenApiJsonSchema serialization is not supported.");
Microsoft.AspNetCore.OpenApi.SourceGenerators (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.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."); 109throw new NotSupportedException("The stream does not support reading."); 114throw new NotSupportedException("The stream does not support seeking."); 119throw 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)
93throw new NotSupportedException($"{nameof(SelectProtocol)} returned something other than Http1, Http2 or None.");
Middleware\HttpsConnectionMiddleware.cs (3)
502throw new NotSupportedException(CoreStrings.Http2NoTlsAlpn); 506throw new NotSupportedException(CoreStrings.Http2NoTlsWin81); 538throw 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."); 109throw new NotSupportedException("The stream does not support reading."); 114throw new NotSupportedException("The stream does not support seeking."); 119throw new NotSupportedException("The stream does not support seeking.");
Microsoft.AspNetCore.SignalR.Core (3)
Internal\DefaultHubDispatcher.cs (3)
239throw new NotSupportedException($"Received unsupported message: {hubMessage}"); 782throw new NotSupportedException($"Method '{methodInfo.Name}' is a generic method which is not supported on a Hub."); 791throw 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)
131throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 144throw new NotSupportedException($"TestClient recieved an unexpected message: {message}."); 164throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 170throw new NotSupportedException("Use 'StreamAsync' to call a streaming method"); 184throw new NotSupportedException($"TestClient recieved an unexpected message: {message}.");
Microsoft.AspNetCore.SignalR.Tests.Utils (5)
TestClient.cs (5)
131throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 144throw new NotSupportedException($"TestClient recieved an unexpected message: {message}."); 164throw new NotSupportedException("TestClient does not support multiple outgoing invocations!"); 170throw new NotSupportedException("Use 'StreamAsync' to call a streaming method"); 184throw 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 (19)
BackEnd\Components\Communications\TaskHostNodeManager.cs (7)
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"); 169throw new NotSupportedException("not used");
FileMatcher.cs (2)
2382throw new NotSupportedException(action.ToString()); 2432throw new NotSupportedException(excludeAction.ToString());
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (3)
173throw new NotSupportedException(text); 253throw new NotSupportedException( 274throw new NotSupportedException(
Logging\BinaryLogger\Postprocessing\SubStream.cs (1)
29throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_MustBeReadable"));
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (3)
160throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_SeekNonOrigin")); 170throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_SetLengthUnsupported")); 175throw new NotSupportedException(ResourceUtilities.GetResourceString("Binlog_StreamUtils_WriteUnsupported"));
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
611_ => throw new NotSupportedException(Convert.ToString(item.Value))
TelemetryInfra\TelemetryDataUtils.cs (2)
88throw new NotSupportedException("TaskOrTargetTelemetryKey cannot be null in telemetry data"); 130throw new NotSupportedException("TaskOrTargetTelemetryKey cannot be null in telemetry data");
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)
2382throw new NotSupportedException(action.ToString()); 2432throw new NotSupportedException(excludeAction.ToString());
ResourceHandling\MSBuildResXReader.cs (1)
215throw new NotSupportedException(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("GenerateResource.MimeTypeNotSupportedOnCore", name, resxFilename, mimetype));
Microsoft.Build.Utilities.Core (2)
FileMatcher.cs (2)
2382throw new NotSupportedException(action.ToString()); 2432throw 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)
199throw new NotSupportedException("This method doesn't support delegates!"); 221throw 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.CodeAnalysis (17)
Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
MetadataReference\CompilationReference.cs (3)
36throw new NotSupportedException(CodeAnalysisResources.CannotCreateReferenceToSubmission); 41throw new NotSupportedException(CodeAnalysisResources.CannotCreateReferenceToModule); 101throw new NotSupportedException(CodeAnalysisResources.CannotCreateReferenceToModule);
MetadataReference\MetadataReference.cs (2)
346throw new NotSupportedException(CodeAnalysisResources.CantCreateReferenceToDynamicAssembly); 357throw new NotSupportedException(CodeAnalysisResources.CantCreateReferenceToAssemblyWithoutLocation);
ReferenceManager\CommonReferenceManager.State.cs (1)
564throw new NotSupportedException(CodeAnalysisResources.CompilationReferencesAssembliesWithDifferentAutoGeneratedVersion);
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
185throw new NotSupportedException(GetResourceString(resource));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.CodeAnalysis.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
Microsoft.CodeAnalysis.AnalyzerUtilities (40)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
88throw new NotSupportedException("Use SetAbstactValueForEntities API");
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (37)
3877throw new NotSupportedException($"'{nameof(IUsingOperation)}' must have been lowered in the CFG"); 3883throw new NotSupportedException($"'{nameof(IWhileLoopOperation)}' must have been lowered in the CFG"); 3889throw new NotSupportedException($"'{nameof(IForEachLoopOperation)}' must have been lowered in the CFG"); 3895throw new NotSupportedException($"'{nameof(IForLoopOperation)}' must have been lowered in the CFG"); 3901throw new NotSupportedException($"'{nameof(IForToLoopOperation)}' must have been lowered in the CFG"); 3907throw new NotSupportedException($"'{nameof(ICoalesceOperation)}' must have been lowered in the CFG"); 3913throw new NotSupportedException($"'{nameof(IConditionalOperation)}' must have been lowered in the CFG"); 3919throw new NotSupportedException($"'{nameof(IConditionalAccessOperation)}' must have been lowered in the CFG"); 3925throw new NotSupportedException($"'{nameof(IConditionalAccessInstanceOperation)}' must have been lowered in the CFG"); 3931throw new NotSupportedException($"'{nameof(IThrowOperation)}' must have been lowered in the CFG"); 3937throw new NotSupportedException($"'{nameof(IVariableDeclarationOperation)}' must have been lowered in the CFG"); 3943throw new NotSupportedException($"'{nameof(IVariableDeclarationOperation)}' must have been lowered in the CFG"); 3949throw new NotSupportedException($"'{nameof(IVariableDeclaratorOperation)}' must have been lowered in the CFG"); 3955throw new NotSupportedException($"'{nameof(ITryOperation)}' must have been lowered in the CFG"); 3961throw new NotSupportedException($"'{nameof(ICatchClauseOperation)}' must have been lowered in the CFG"); 3967throw new NotSupportedException($"'{nameof(ILockOperation)}' must have been lowered in the CFG"); 3973throw new NotSupportedException($"'{nameof(IBranchOperation)}' must have been lowered in the CFG"); 3979throw new NotSupportedException($"'{nameof(ILabeledOperation)}' must have been lowered in the CFG"); 3985throw new NotSupportedException($"'{nameof(ISwitchOperation)}' must have been lowered in the CFG"); 3991throw new NotSupportedException($"'{nameof(ISwitchCaseOperation)}' must have been lowered in the CFG"); 3997throw new NotSupportedException($"'{nameof(IDefaultCaseClauseOperation)}' must have been lowered in the CFG"); 4003throw new NotSupportedException($"'{nameof(IPatternCaseClauseOperation)}' must have been lowered in the CFG"); 4009throw new NotSupportedException($"'{nameof(IRangeCaseClauseOperation)}' must have been lowered in the CFG"); 4015throw new NotSupportedException($"'{nameof(IRelationalCaseClauseOperation)}' must have been lowered in the CFG"); 4021throw new NotSupportedException($"'{nameof(ISingleValueCaseClauseOperation)}' must have been lowered in the CFG"); 4027throw new NotSupportedException($"'{nameof(IObjectOrCollectionInitializerOperation)}' must have been lowered in the CFG"); 4033throw new NotSupportedException($"'{nameof(IMemberInitializerOperation)}' must have been lowered in the CFG"); 4039throw new NotSupportedException($"'{nameof(IBlockOperation)}' must have been lowered in the CFG"); 4045throw new NotSupportedException($"'{nameof(IVariableInitializerOperation)}' must have been lowered in the CFG"); 4051throw new NotSupportedException($"'{nameof(IFieldInitializerOperation)}' must have been lowered in the CFG"); 4057throw new NotSupportedException($"'{nameof(IParameterInitializerOperation)}' must have been lowered in the CFG"); 4063throw new NotSupportedException($"'{nameof(IPropertyInitializerOperation)}' must have been lowered in the CFG"); 4069throw new NotSupportedException($"'{nameof(IEndOperation)}' must have been lowered in the CFG"); 4075throw new NotSupportedException($"'{nameof(IEmptyOperation)}' must have been lowered in the CFG"); 4081throw new NotSupportedException($"'{nameof(INameOfOperation)}' must have been lowered in the CFG"); 4086throw new NotSupportedException($"'{nameof(IAnonymousFunctionOperation)}' must have been lowered in the CFG"); 4092throw new NotSupportedException($"'{nameof(ILocalFunctionOperation)}' must have been lowered in the CFG");
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
Microsoft.CodeAnalysis.CodeStyle (13)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
185throw new NotSupportedException(GetResourceString(resource));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer`1.cs (2)
20parseValue: _ => throw new NotSupportedException("Option does not support serialization to editorconfig format"), 21serializeValue: _ => throw new NotSupportedException("Option does not support serialization to editorconfig format"));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
526throw new NotSupportedException(WorkspaceExtensionsResources.Document_does_not_support_syntax_trees);
Microsoft.CodeAnalysis.Collections.Package (10)
Internal\ThrowHelper.cs (1)
185throw new NotSupportedException(GetResourceString(resource));
Segmented\SegmentedArray`1.cs (9)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ReferenceManager.cs (2)
90throw new NotSupportedException(string.Format(CSharpResources.CantReferenceCompilationOf, compilationReference.GetType(), "C#")); 292throw new NotSupportedException(string.Format(CodeAnalysisResources.ChangingVersionOfAssemblyReferenceIsNotAllowedDuringDebugging, identity, symbol.Identity.Version));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions_Parsing.cs (1)
88_ => throw new NotSupportedException(string.Format(CSharpCompilerExtensionsResources.EditorConfig_option_0_contains_unrecognized_value_1, "csharp_style_namespace_declarations", value)),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\ResourceTests.cs (1)
777new ResourceDescription(r2Name, "nonExistent", () => { throw new NotSupportedException("error in data provider"); }, false)
Microsoft.CodeAnalysis.CSharp.Features (2)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
1014_ => throw new NotSupportedException("SyntaxNode expected to be MethodDeclarationSyntax or LocalFunctionStatementSyntax."),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
77throw new System.NotSupportedException("Unexpected name kind: " + expression.Kind().ToString());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (1)
326throw new NotSupportedException("Type of syntax node is not supported by GetSemanticInfoSummary");
Extensions.cs (1)
663throw new NotSupportedException("This node type is not supported.");
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3364_ => throw new NotSupportedException("Unsupported SpecialType"),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions_Parsing.cs (1)
88_ => throw new NotSupportedException(string.Format(CSharpCompilerExtensionsResources.EditorConfig_option_0_contains_unrecognized_value_1, "csharp_style_namespace_declarations", value)),
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractiveEvaluator.cs (1)
128throw new NotSupportedException(EditorFeaturesWpfResources.The_CurrentWindow_property_may_only_be_assigned_once);
Microsoft.CodeAnalysis.Features (2)
ChangeSignature\AbstractChangeSignatureService.cs (1)
384throw new NotSupportedException(WorkspaceExtensionsResources.Document_does_not_support_syntax_trees);
CodeFixes\Service\CodeFixService.cs (1)
364return (TDocument)(solution.GetTextDocument(document.Id) ?? throw new NotSupportedException(FeaturesResources.Removal_of_document_not_supported));
Microsoft.CodeAnalysis.InteractiveHost (10)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
185throw new NotSupportedException(GetResourceString(resource));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionsAssemblyHelper.cs (1)
143throw new NotSupportedException($"{createCompletionProviderMethodInfo.Name} method could not be invoked");
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
187return solution.GetDocument(document.Id) ?? throw new NotSupportedException(FeaturesResources.Removal_of_document_not_supported);
Protocol\SumType.cs (1)
884throw new NotSupportedException(LanguageServerProtocolResources.NestedSumType);
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\InteractiveAssemblyLoaderException.cs (1)
14: base(message)
Microsoft.CodeAnalysis.Threading.Package (10)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
185throw new NotSupportedException(GetResourceString(resource));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.CodeAnalysis.UnitTests (3)
Collections\ImmutablesTestBase.cs (3)
67throw new NotSupportedException($"Unable to compare '{first.GetType()}' for identity."); 87throw new NotSupportedException($"Unable to compare '{first.GetType()}' for identity."); 108throw new NotSupportedException($"Unable to compare '{first.GetType()}' for identity.");
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Extensions.vb (1)
49Throw New NotSupportedException("This node type is not supported.")
Microsoft.CodeAnalysis.Workspaces (50)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
32throw new NotSupportedException(WorkspaceExtensionsResources.Document_does_not_support_syntax_trees);
CaseCorrection\CaseCorrector.cs (2)
31throw new NotSupportedException(WorkspaceExtensionsResources.Document_does_not_support_syntax_trees); 46throw new NotSupportedException(WorkspaceExtensionsResources.Document_does_not_support_syntax_trees);
CodeActions\CodeAction.cs (1)
377=> throw new NotSupportedException(GetType().FullName);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
185throw new NotSupportedException(GetResourceString(resource));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer`1.cs (2)
20parseValue: _ => throw new NotSupportedException("Option does not support serialization to editorconfig format"), 21serializeValue: _ => throw new NotSupportedException("Option does not support serialization to editorconfig format"));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
526throw new NotSupportedException(WorkspaceExtensionsResources.Document_does_not_support_syntax_trees);
Workspace\Host\HostWorkspaceServices.cs (1)
142=> throw new NotSupportedException(string.Format(WorkspacesResources.The_language_0_is_not_supported, languageName));
Workspace\Solution\ProjectState.cs (2)
794throw new NotSupportedException(WorkspacesResources.Removing_compilation_options_is_not_supported); 812throw new NotSupportedException(WorkspacesResources.Removing_parse_options_is_not_supported);
Workspace\Solution\SolutionCompilationState.cs (2)
569throw new NotSupportedException(WorkspacesResources.Changing_project_language_is_not_supported); 574throw new NotSupportedException(WorkspacesResources.Changing_project_between_ordinary_and_interactive_submission_is_not_supported);
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
163=> throw new NotSupportedException(WorkspacesResources.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed); 166=> throw new NotSupportedException(WorkspacesResources.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed); 169=> throw new NotSupportedException(WorkspacesResources.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed);
Workspace\Workspace.cs (23)
1691throw new NotSupportedException(WorkspacesResources.Removing_projects_is_not_supported); 1696throw new NotSupportedException(WorkspacesResources.Adding_projects_is_not_supported); 1701throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1706throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 1746throw new NotSupportedException(WorkspacesResources.Changing_compilation_options_is_not_supported); 1755throw new NotSupportedException(WorkspacesResources.Changing_parse_options_is_not_supported); 1760throw new NotSupportedException(WorkspacesResources.Adding_documents_is_not_supported); 1765throw new NotSupportedException(WorkspacesResources.Removing_documents_is_not_supported); 1771throw new NotSupportedException(WorkspacesResources.Changing_document_property_is_not_supported); 1778throw new NotSupportedException(WorkspacesResources.Changing_documents_is_not_supported); 1789throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 1795throw new NotSupportedException(WorkspacesResources.Adding_additional_documents_is_not_supported); 1800throw new NotSupportedException(WorkspacesResources.Removing_additional_documents_is_not_supported); 1805throw new NotSupportedException(WorkspacesResources.Changing_additional_documents_is_not_supported); 1810throw new NotSupportedException(WorkspacesResources.Adding_analyzer_config_documents_is_not_supported); 1815throw new NotSupportedException(WorkspacesResources.Removing_analyzer_config_documents_is_not_supported); 1820throw new NotSupportedException(WorkspacesResources.Changing_analyzer_config_documents_is_not_supported); 1825throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1830throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1835throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1840throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1845throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1850throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported);
Workspace\Workspace_Editor.cs (1)
155throw new NotSupportedException(WorkspacesResources.This_workspace_does_not_support_opening_and_closing_documents);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
185throw new NotSupportedException(GetResourceString(resource));
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
191throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 196throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 212throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 269throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 274throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 279throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 284throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 289throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 294throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.Data.Analysis (8)
DataFrame.IO.cs (1)
345throw new NotSupportedException(nameof(kind));
DataFrameColumns\ArrowStringDataFrameColumn.cs (3)
278protected override void SetValue(long rowIndex, object value) => throw new NotSupportedException(Strings.ImmutableColumn); 289set => throw new NotSupportedException(Strings.ImmutableColumn); 519throw new NotSupportedException(nameof(TKey));
DataFrameColumns\VBufferDataFrameColumn.cs (1)
124throw new NotSupportedException("Null values are not supported by VBufferDataFrameColumn");
IDataView.Extension.cs (2)
125throw new NotSupportedException(String.Format(Microsoft.Data.Strings.NotSupportedColumnType, type.RawType.Name)); 212throw new NotSupportedException(String.Format(Microsoft.Data.Strings.VectorSubTypeNotSupported, itemType.ToString()));
PrimitiveDataFrameColumn.cs (1)
856throw new NotSupportedException("Type is " + typeof(T).Name);
Microsoft.DotNet.Helix.Client (1)
HelixApiTokenAuthenticationPolicy.cs (1)
43throw new NotSupportedException("Sync method not supported");
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (6)
Languages\angular\Angular.cs (3)
100throw new NotSupportedException(reference.ToString()); 189throw new NotSupportedException(reference.ToString()); 278throw new NotSupportedException(reference.ToString());
Languages\csharp\CSharp.cs (1)
161throw new NotSupportedException(reference.ToString());
Modeler\ServiceClientModelFactory.cs (2)
235throw new NotSupportedException(type.ToString()); 367throw new NotSupportedException(type);
Microsoft.Extensions.AI.Abstractions (1)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
798throw new NotSupportedException("Schema generation not supported with ReferenceHandler.Preserve enabled.");
Microsoft.Extensions.AI.Evaluation.Quality (1)
EvaluationMetricExtensions.cs (1)
147throw new NotSupportedException($"{metric.GetType().Name} is not supported.");
Microsoft.Extensions.AI.Evaluation.Safety (3)
ContentSafetyServicePayloadUtilities.cs (3)
74_ => throw new NotSupportedException($"The payload kind '{payloadFormat}' is not supported."), 182throw new NotSupportedException( 260throw new NotSupportedException(
Microsoft.Extensions.Caching.Hybrid.Tests (11)
StampedeTests.cs (11)
39ICacheEntry IMemoryCache.CreateEntry(object key) => throw new NotSupportedException("Intentionally not provided"); 41byte[]? IDistributedCache.Get(string key) => throw new NotSupportedException("Intentionally not provided"); 43Task<byte[]?> IDistributedCache.GetAsync(string key, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 45void IDistributedCache.Refresh(string key) => throw new NotSupportedException("Intentionally not provided"); 47Task IDistributedCache.RefreshAsync(string key, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 49void IDistributedCache.Remove(string key) => throw new NotSupportedException("Intentionally not provided"); 51void IMemoryCache.Remove(object key) => throw new NotSupportedException("Intentionally not provided"); 53Task IDistributedCache.RemoveAsync(string key, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 55void IDistributedCache.Set(string key, byte[] value, DistributedCacheEntryOptions options) => throw new NotSupportedException("Intentionally not provided"); 57Task IDistributedCache.SetAsync(string key, byte[] value, DistributedCacheEntryOptions options, CancellationToken token) => throw new NotSupportedException("Intentionally not provided"); 59bool IMemoryCache.TryGetValue(object key, out object? value) => throw new NotSupportedException("Intentionally not provided");
Microsoft.Extensions.Caching.Memory (1)
MemoryCache.cs (1)
616throw 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)
297throw 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.Diagnostics (3)
Logging\Internal\HttpClientLogger.cs (3)
130=> throw new NotSupportedException(SyncLoggingExceptionMessage); 133=> throw new NotSupportedException(SyncLoggingExceptionMessage); 136=> throw new NotSupportedException(SyncLoggingExceptionMessage);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NotSeekableStream.cs (2)
28public override long Position { get => _innerStream.Position; set => throw new NotSupportedException("This is not a seekable stream."); } 42public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException("This is not a seekable stream.");
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\Internal\TestEnricher.cs (1)
33throw new NotSupportedException("Synthetic exception from enricher");
Logging\Internal\TestHttpMessageHandlerBuilder.cs (1)
21public override HttpMessageHandler Build() => throw new NotSupportedException("Test");
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.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (1)
152throw new NotSupportedException($"Report for metric kind: '{metricMethod.Kind}' is not supported.");
Microsoft.Gen.Metrics (2)
Emitter.cs (1)
179throw new NotSupportedException($"Instrument type '{metricMethod.InstrumentKind}' is not supported to generate metric");
MetricFactoryEmitter.cs (1)
132_ => throw new NotSupportedException($"Metric type '{metricMethod.InstrumentKind}' is not supported to generate factory"),
Microsoft.Gen.MetricsReports (1)
MetricDefinitionEmitter.cs (1)
152throw new NotSupportedException($"Report for metric kind: '{metricMethod.Kind}' is not supported.");
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)
226throw new NotSupportedException("JSRuntime subclasses are responsible for implementing byte array transfer to JS."); 265throw new NotSupportedException("The current JavaScript runtime does not support reading data streams."); 320throw new NotSupportedException("The current JS runtime does not support sending streams from .NET to JS.");
Microsoft.Maui.Controls (13)
BindableLayout\BindableLayout.cs (1)
301 throw new NotSupportedException($"You are using an instance of {nameof(DataTemplateSelector)} to set the {nameof(BindableLayout)}.{BindableLayout.ItemTemplateProperty.PropertyName} property. Use {nameof(BindableLayout)}.{BindableLayout.ItemTemplateSelectorProperty.PropertyName} property instead to set an item template selector");
DataTemplateSelector.cs (2)
27 throw new NotSupportedException( 33 throw new NotSupportedException(
ObservableWrapper.cs (5)
29 throw new NotSupportedException("The collection is read-only."); 41 throw new NotSupportedException("The collection is read-only."); 93 throw new NotSupportedException("The collection is read-only."); 135 throw new NotSupportedException("The collection is read-only."); 160 throw new NotSupportedException("The collection is read-only");
Shell\ShellContent.cs (3)
99 throw new NotSupportedException($"Shell is currently not compatible with TabbedPage. Please use TabBar, Tab or switch to using NavigationPage for your {Application.Current}.MainPage"); 102 throw new NotSupportedException("Shell is currently not compatible with FlyoutPage."); 105 throw new NotSupportedException("Shell is currently not compatible with NavigationPage. Shell has Navigation built in and doesn't require a NavigationPage.");
StyleSheets\StyleSheet.cs (1)
73 throw new NotSupportedException("AT-rules not supported");
TemplateUtilities.cs (1)
123 throw new NotSupportedException("ControlTemplate must return a type derived from View.");
Microsoft.Maui.Controls.BindingSourceGen (1)
AccessExpressionBuilder.cs (1)
18 _ => throw new NotSupportedException($"Unsupported path part type: {nextPart.GetType()}"),
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
287 throw new NotSupportedException(
Microsoft.Maui.Essentials (2)
Preferences\Preferences.shared.cs (1)
290 throw new NotSupportedException($"Preferences using '{type}' type is not supported");
Types\Shared\Exceptions.shared.cs (1)
63 : base(message)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\AsyncPump.cs (1)
109 throw new NotSupportedException("Synchronously sending is not supported.");
Microsoft.ML.AutoML (8)
Experiment\MetricsAgents\MetricsAgentUtil.cs (1)
13return new NotSupportedException($"{optimizingMetric} is not a supported sweep metric");
TrainerExtensions\TrainerExtensionCatalog.cs (1)
101throw new NotSupportedException($"unsupported machine learning task type {task}");
TrainerExtensions\TrainerExtensionUtil.cs (5)
318throw new NotSupportedException($"{binaryTrainer} not supported"); 340throw new NotSupportedException($"{multiTrainer} not supported"); 362throw new NotSupportedException($"{regressionTrainer} not supported"); 376throw new NotSupportedException($"{rankingTrainer} not supported"); 388throw new NotSupportedException($"{recommendationTrainer} not supported");
Utils\UserInputValidationUtil.cs (1)
323throw new NotSupportedException($"Unsupported task type: {task}");
Microsoft.ML.Core (6)
Utilities\Contracts.cs (4)
438=> Process(new NotSupportedException(msg)); 440=> Process(new NotSupportedException(msg), ctx); 442=> Process(new NotSupportedException(GetMsg(msg, args))); 444=> Process(new NotSupportedException(GetMsg(msg, args)), ctx);
Utilities\ResourceManagerUtils.cs (2)
120throw new NotSupportedException("The function ResourceManagerUtils.EnsureResourceAsync only supports downloading from URLs of the host \"aka.ms\""); 276throw new NotSupportedException($"The provided url ({uri}) redirects to the default url ({DefaultUrl})");
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
438=> Process(new NotSupportedException(msg)); 440=> Process(new NotSupportedException(msg), ctx); 442=> Process(new NotSupportedException(GetMsg(msg, args))); 444=> Process(new NotSupportedException(GetMsg(msg, args)), ctx);
Microsoft.ML.GenAI.LLaMA (2)
Llama3_1ChatTemplateBuilder.cs (2)
69throw new NotSupportedException($"Only text content is supported, but got {item.GetType().Name}"); 79_ => throw new NotSupportedException($"Unsupported role {message.Role}")
Microsoft.ML.GenAI.Phi (2)
Phi3\Phi3ChatTemplateBuilder.cs (2)
72throw new NotSupportedException($"Only text content is supported, but got {item.GetType().Name}"); 80_ => throw new NotSupportedException($"Unsupported role {message.Role}")
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
152throw new NotSupportedException("TensorFlow type not supported.");
Microsoft.ML.Tokenizers (2)
Model\TiktokenTokenizer.cs (2)
1123throw new NotSupportedException($"The model '{modelName}' is not supported."); 1161throw new NotSupportedException($"The model '{modelName ?? modelEncoding.ToString()}' is not supported.");
Microsoft.ML.TorchSharp (3)
NasBert\Modules\ActivationFunction.cs (1)
28_ => throw new NotSupportedException($"Activation function {name} not supported.")
NasBert\Modules\SearchSpace.cs (1)
221_ => throw new NotSupportedException(
Utils\FileUtils.cs (1)
50throw new NotSupportedException($"Type {typeof(T)} not supported in data loading.");
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (1)
157: throw new NotSupportedException($"Can't resolve {typeName.AssemblyQualifiedName}");
Microsoft.VisualStudio.LanguageServices (3)
StackTraceExplorer\StackTraceExplorerCommandHandler.cs (1)
156throw new NotSupportedException("Cannot create tool window");
Venus\ContainedLanguageCodeSupport.cs (2)
438throw new NotSupportedException(ServicesVSResources.Can_t_rename_other_elements); 457throw new NotSupportedException(ServicesVSResources.IDs_are_not_supported_for_this_symbol_type);
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
ReferenceCodeLensProvider.cs (1)
235throw new NotSupportedException(nameof(kind));
PresentationCore (66)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
544_erroredOutException = new NotSupportedException(SR.ByteRangeRequestIsNotSupported);
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (2)
72throw new NotSupportedException(SR.WriteNotSupported); 95throw new NotSupportedException(SR.SetLengthNotSupported);
MS\Internal\IO\Packaging\NetStream.cs (2)
301throw new NotSupportedException(SR.SetLengthNotSupported); 311throw new NotSupportedException(SR.WriteNotSupported);
MS\Internal\PartialArray.cs (4)
61throw new NotSupportedException(SR.CollectionIsFixedSize); 66throw new NotSupportedException(SR.CollectionIsFixedSize); 76throw new NotSupportedException(SR.CollectionIsFixedSize); 81throw new NotSupportedException(SR.CollectionIsFixedSize);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (4)
220throw new NotSupportedException(SR.CollectionIsFixedSize); 226throw new NotSupportedException(SR.CollectionIsFixedSize); 232throw new NotSupportedException(SR.CollectionIsFixedSize); 238throw new NotSupportedException(SR.CollectionIsFixedSize);
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (4)
164throw new NotSupportedException(SR.CollectionIsFixedSize); 170throw new NotSupportedException(SR.CollectionIsFixedSize); 176throw new NotSupportedException(SR.CollectionIsFixedSize); 182throw new NotSupportedException(SR.CollectionIsFixedSize);
System\Windows\DataObjectExtensions.cs (1)
21throw new NotSupportedException(string.Format(
System\Windows\Ink\StrokeCollection.cs (1)
858throw new NotSupportedException(SR.StrokeCollectionIsReadOnly);
System\Windows\Input\Command\CommandBindingCollection.cs (4)
130throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 166throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 192throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings); 210throw new NotSupportedException(SR.CollectionOnlyAcceptsCommandBindings);
System\Windows\Input\Command\InputBindingCollection.cs (4)
144throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 207throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 261throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings); 276throw new NotSupportedException(SR.CollectionOnlyAcceptsInputBindings);
System\Windows\Input\Command\InputGestureCollection.cs (13)
99throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 111throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 123throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 141throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 174throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 223throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 247throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 267throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 287throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 301throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 304throw new NotSupportedException(SR.CollectionOnlyAcceptsInputGestures); 328throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection); 357throw new NotSupportedException(SR.ReadOnlyInputGesturesCollection);
System\Windows\Input\Command\KeyGesture.cs (1)
100throw new NotSupportedException(SR.Format(SR.KeyGesture_Invalid, modifiers, key));
System\Windows\Input\Command\MouseActionConverter.cs (1)
70_ => throw new NotSupportedException(SR.Format(SR.Unsupported_MouseAction, mouseActionToken.ToString()))
System\Windows\Media\Animation\Clock.cs (1)
613throw new NotSupportedException(SR.Timing_CanSlipOnlyOnSimpleTimelines);
System\Windows\Media\Animation\ClockGroup.cs (1)
127throw new NotSupportedException(SR.Timing_SlipBehavior_SlipOnlyOnSimpleTimelines);
System\Windows\Media\Animation\KeySplineConverter.cs (1)
67throw new NotSupportedException(SR.Converter_ConvertFromNotSupported);
System\Windows\Media\FamilyMapCollection.cs (1)
358throw new NotSupportedException(SR.General_ObjectIsReadOnly);
System\Windows\Media\FamilyTypeface.cs (1)
270throw new NotSupportedException(SR.General_ObjectIsReadOnly);
System\Windows\Media\FamilyTypefaceCollection.cs (1)
350throw new NotSupportedException(SR.General_ObjectIsReadOnly);
System\Windows\Media\FontFamily.cs (1)
301throw new NotSupportedException(SR.FontFamily_ReadOnly);
System\Windows\Media\Generated\BrushConverter.cs (1)
137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\CacheModeConverter.cs (1)
137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\GeometryConverter.cs (1)
137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Generated\TransformConverter.cs (1)
137throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\ImageSourceConverter.cs (1)
197throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
System\Windows\Media\Imaging\BitmapEncoder.cs (2)
332throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null)); 338throw new System.NotSupportedException(SR.Format(SR.Image_NoFrames, null));
System\Windows\Media\Imaging\BitmapImage.cs (1)
135throw new System.NotSupportedException(SR.Image_MetadataNotSupported);
System\Windows\Media\Imaging\PropVariant.cs (1)
741throw new System.NotSupportedException(SR.Image_PropertyNotSupported);
System\Windows\Media\MediaPlayer.cs (1)
801throw new System.NotSupportedException(SR.Media_UnknownChannelType);
System\Windows\Media\MediaPlayerState.cs (2)
818_mediaEventsHelper.RaiseMediaFailed(new System.NotSupportedException(SR.Format(SR.Media_PackURIsAreNotSupported, null))); 966throw new System.NotSupportedException(SR.Image_BadVersion);
System\Windows\Media\PixelFormat.cs (1)
405throw new NotSupportedException(SR.Image_NoPixelFormatFound);
System\Windows\Media3D\MatrixCamera.cs (1)
103throw new NotSupportedException(SR.HitTest_Singular);
System\Windows\Media3D\Viewport3DVisual.cs (1)
495throw new NotSupportedException(SR.Format(SR.HitTest_Invalid, nameof(GeometryHitTestParameters), this.GetType().Name));
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
327exception = new NotSupportedException(classInfo.GetString("Message"));
PresentationFramework (127)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
304throw new NotSupportedException(SR.NotSupported);
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
258throw new NotSupportedException(SR.NotSupported);
MS\Internal\AppModel\ReturnEventSaver.cs (1)
118throw new NotSupportedException(SR.ReturnEventHandlerMustBeOnParentPage);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
957throw new NotSupportedException(SR.NotSupported);
MS\Internal\Data\BindingCollection.cs (1)
114throw new NotSupportedException(SR.Format(SR.BindingCollectionContainsNonBinding, binding.GetType().Name));
MS\Internal\Data\CompositeCollectionView.cs (7)
642throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 785throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 1434throw new NotSupportedException(SR.RangeActionsNotSupported); 1439throw new NotSupportedException(SR.RangeActionsNotSupported); 1444throw new NotSupportedException(SR.RangeActionsNotSupported); 1449throw new NotSupportedException(SR.RangeActionsNotSupported); 1458throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
MS\Internal\Data\PropertyPathWorker.cs (2)
301throw new NotSupportedException(SR.IndexedPropDescNotImplemented); 388throw new NotSupportedException(SR.IndexedPropDescNotImplemented);
MS\Internal\Data\ValueChangedEventManager.cs (2)
87throw new NotSupportedException(SR.NoMulticastHandlers); 99throw new NotSupportedException(SR.NoMulticastHandlers);
MS\Internal\IO\Packaging\ByteStream.cs (5)
142throw new NotSupportedException(SR.SetPositionNotSupported); 190throw new NotSupportedException(SR.SeekNotSupported); 233throw new NotSupportedException(SR.SetLengthNotSupported); 250throw new NotSupportedException(SR.ReadNotSupported); 317throw new NotSupportedException(SR.WriteNotSupported);
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (2)
154throw new NotSupportedException(SR.StreamDoesNotSupportWrite); 167throw new NotSupportedException(SR.StreamDoesNotSupportWrite);
MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (6)
63throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 79throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 100throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 120throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 134throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic); 148throw new NotSupportedException(SR.XmlGlyphRunInfoIsNonGraphic);
MS\Internal\IO\Packaging\XpsFilter.cs (1)
589throw new NotSupportedException(SR.FilterIPersistFileIsReadOnly);
System\Windows\Annotations\Annotation.cs (3)
733throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 787throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 836throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\AVElementHelper.cs (1)
271throw new NotSupportedException(SR.AudioVideo_CannotControlMedia);
System\Windows\Controls\CalendarBlackoutDatesCollection.cs (4)
158throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 179throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 202throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 223throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported);
System\Windows\Controls\CustomDictionarySources.cs (1)
344throw new NotSupportedException(SR.CustomDictionarySourcesUnsupportedURI);
System\Windows\Controls\DataGrid.cs (1)
8222throw new NotSupportedException(SR.ClipboardCopyMode_Disabled);
System\Windows\Controls\DocumentViewer.cs (2)
866throw new NotSupportedException(SR.DocumentViewerOnlySupportsFixedDocumentSequence); 2059throw new NotSupportedException(SR.DocumentViewerStyleMustIncludeContentHost);
System\Windows\Controls\FlowDocumentReader.cs (1)
98throw new NotSupportedException(SR.FlowDocumentReaderDecoratorMarkedAsContentHostMustHaveNoContent);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
124throw new NotSupportedException(SR.FlowDocumentScrollViewerMarkedAsContentHostMustHaveNoContent);
System\Windows\Controls\ItemCollection.cs (2)
749throw new NotSupportedException(SR.ItemCollectionShouldUseInnerSyncRoot); 2229throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\ItemContainerGenerator.cs (5)
2392throw new NotSupportedException(SR.RangeActionsNotSupported); 2398throw new NotSupportedException(SR.RangeActionsNotSupported); 2407throw new NotSupportedException(SR.RangeActionsNotSupported); 2417throw new NotSupportedException(SR.RangeActionsNotSupported); 2427throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\Controls\ListBox.cs (1)
102throw new NotSupportedException(SR.ListBoxSelectAllSelectionMode);
System\Windows\Controls\MultipleCopiesCollection.cs (5)
230throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 235throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 254throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 269throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource); 274throw new NotSupportedException(SR.DataGrid_ReadonlyCellsItemsSource);
System\Windows\Controls\PasswordBox.cs (3)
940throw new NotSupportedException(SR.TextBoxScrollViewerMarkedAsTextBoxContentMustHaveNoContent); 951throw new NotSupportedException(SR.TextBoxDecoratorMarkedAsTextBoxContentMustHaveNoContent); 970throw new NotSupportedException(SR.PasswordBoxInvalidTextContainer);
System\Windows\Controls\PopupControlService.cs (1)
460throw new NotSupportedException(SR.ToolTipStaysOpenFalseNotAllowed);
System\Windows\Controls\Primitives\MultiSelector.cs (1)
87throw new NotSupportedException(SR.MultiSelectorSelectAll);
System\Windows\Controls\Primitives\Selector.cs (5)
873throw new NotSupportedException(SR.RangeActionsNotSupported); 880throw new NotSupportedException(SR.RangeActionsNotSupported); 902throw new NotSupportedException(SR.RangeActionsNotSupported); 912throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 1242throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\Primitives\TextBoxBase.cs (3)
1907throw new NotSupportedException(SR.TextBoxScrollViewerMarkedAsTextBoxContentMustHaveNoContent); 1921throw new NotSupportedException(SR.TextBoxDecoratorMarkedAsTextBoxContentMustHaveNoContent); 1940throw new NotSupportedException(SR.TextBoxInvalidTextContainer);
System\Windows\Controls\Primitives\Track.cs (2)
164throw new NotSupportedException(SR.Track_SameButtons); 205throw new NotSupportedException(SR.Track_SameButtons);
System\Windows\Controls\SelectedDatesCollection.cs (4)
133throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 151throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 212throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported); 261throw new NotSupportedException(SR.CalendarCollection_MultiThreadedCollectionChangeNotSupported);
System\Windows\Controls\SinglePageViewer.cs (1)
513throw new NotSupportedException(SR.FlowDocumentPageViewerOnlySupportsFlowDocument);
System\Windows\Controls\ToolBar.cs (2)
596throw new NotSupportedException(SR.Format(SR.ToolBar_InvalidStyle_ToolBarPanel, child.GetType())); 619throw new NotSupportedException(SR.Format(SR.ToolBar_InvalidStyle_ToolBarOverflowPanel, child.GetType()));
System\Windows\Controls\TreeView.cs (1)
439throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\TreeViewItem.cs (1)
979throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Controls\VirtualizedCellInfoCollection.cs (4)
331throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 369throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 389throw new NotSupportedException(SR.VirtualizedCellInfoCollection_DoesNotSupportIndexChanges); 1627throw new NotSupportedException(SR.VirtualizedCellInfoCollection_IsReadOnly);
System\Windows\Data\BindingListCollectionView.cs (7)
304throw new NotSupportedException(SR.BindingListCannotCustomFilter); 1557throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 2434throw new NotSupportedException(SR.RangeActionsNotSupported); 2439throw new NotSupportedException(SR.RangeActionsNotSupported); 2444throw new NotSupportedException(SR.RangeActionsNotSupported); 2449throw new NotSupportedException(SR.RangeActionsNotSupported); 2458throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Data\CollectionView.cs (6)
1165throw new NotSupportedException(SR.MultiThreadedCollectionChangeNotSupported); 1952throw new NotSupportedException(SR.RangeActionsNotSupported); 1957throw new NotSupportedException(SR.RangeActionsNotSupported); 1964throw new NotSupportedException(SR.RangeActionsNotSupported); 1969throw new NotSupportedException(SR.RangeActionsNotSupported); 1978throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Data\ListCollectionView.cs (6)
2411throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action)); 2501throw new NotSupportedException(SR.RangeActionsNotSupported); 2506throw new NotSupportedException(SR.RangeActionsNotSupported); 2511throw new NotSupportedException(SR.RangeActionsNotSupported); 2516throw new NotSupportedException(SR.RangeActionsNotSupported); 2525throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, e.Action));
System\Windows\Documents\DocumentSequence.cs (2)
717throw new NotSupportedException(SR.RangeActionsNotSupported); 747throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
595throw new NotSupportedException(SR.RangeActionsNotSupported); 604throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 634throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action));
System\Windows\FrameworkElementFactory.cs (2)
215throw new NotSupportedException(SR.Format(SR.ModifyingLogicalTreeViaStylesNotImplemented, value, "FrameworkElementFactory.SetValue")); 839throw new NotSupportedException(SR.Format(SR.Template3DValueOnly, propertyValue.Property) );
System\Windows\Markup\BamlWriter.cs (2)
901throw new NotSupportedException(SR.Format(SR.ParserBamlEvent, eventIdName)); 930throw new NotSupportedException(SR.Format(SR.ParserBamlEvent, eventName));
System\Windows\Markup\DependencyPropertyConverter.cs (5)
156throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 179throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 203throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 223throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName)); 233throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Property", typeof(DependencyProperty).FullName));
System\Windows\Markup\ProvideValueServiceProvider.cs (1)
72set { throw new NotSupportedException(SR.ParserProvideValueCantSetUri); }
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
97throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 159throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName)); 164throw new NotSupportedException(SR.Format(SR.ParserCannotConvertPropertyValue, "Value", typeof(Object).FullName));
System\Windows\Markup\XamlStream.cs (2)
153throw new NotSupportedException(SR.ParserWriterNoSeekEnd); 297throw new NotSupportedException(SR.ParserWriterNoSeekEnd);
System\Windows\ResourceDictionary.cs (1)
280throw new NotSupportedException(SR.NamesNotSupportedInsideResourceDictionary);
System\Windows\Shell\JumpList.cs (1)
368throw new NotSupportedException(SR.JumpList_CantCallUnbalancedEndInit);
System\Windows\TemplateContentLoader.cs (1)
31throw new NotSupportedException(SR.Format(SR.DeferringLoaderNoSave, nameof(TemplateContentLoader)));
PresentationUI (3)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
31throw new NotSupportedException(SR.DocumentPropertiesDialogDocumentPropertiesMustExist);
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (1)
54throw new NotSupportedException(SR.PackagePartTypeNotWritable);
MS\Internal\Documents\Application\WriteableOnDemandStream.cs (1)
278throw new NotSupportedException(
ReachFramework (6)
Serialization\ColorTypeConverter.cs (2)
108throw new NotSupportedException(SR.Converter_ConvertFromNotSupported); 146throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
Serialization\FontTypeConverter.cs (2)
106throw new NotSupportedException(SR.Converter_ConvertFromNotSupported); 147throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
Serialization\ImageSourceTypeConverter.cs (2)
112throw new NotSupportedException(SR.Converter_ConvertFromNotSupported); 153throw new NotSupportedException(SR.Converter_ConvertToNotSupported);
Roslyn.Diagnostics.Analyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
src\RoslynAnalyzers\Utilities\Refactoring\AbstractRefactoringHelpers`3.cs (1)
485?? throw new NotSupportedException("Document does not support syntax trees");
Roslyn.Test.PdbUtilities (3)
Shared\DummyMetadataImport.cs (3)
60throw new NotSupportedException("Metadata not available"); 86throw new NotSupportedException("Metadata not available"); 125throw new NotSupportedException("Metadata not available");
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
207throw new NotSupportedException("Synchronously sending is not supported.");
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
798throw new NotSupportedException("Schema generation not supported with ReferenceHandler.Preserve enabled.");
System.Collections (18)
System\Collections\Generic\SortedDictionary.cs (6)
601throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 606throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 616throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 762throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 767throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 777throw new NotSupportedException(SR.NotSupported_ValueCollectionSet);
System\Collections\Generic\SortedList.cs (12)
1033throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1038throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1070throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1081throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 1103throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1109throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1147throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1152throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1184throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1195throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1212throw new NotSupportedException(SR.NotSupported_SortedListNestedWrite); 1218throw 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)
1953object 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)
159throw 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)
1748throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported); 1757throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported); 3053throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported);
System.Configuration.ConfigurationManager (7)
System\Configuration\Provider\ProviderCollection.cs (3)
39throw new NotSupportedException(SR.CollectionReadOnly); 53throw new NotSupportedException(SR.CollectionReadOnly); 67throw new NotSupportedException(SR.CollectionReadOnly);
System\Configuration\SettingsProperty.cs (1)
52throw new NotSupportedException(Obsoletions.BinaryFormatterMessage);
System\Configuration\SettingsPropertyValue.cs (3)
115throw new NotSupportedException(Obsoletions.BinaryFormatterMessage); 201throw new NotSupportedException(Obsoletions.BinaryFormatterMessage); 242throw new NotSupportedException(Obsoletions.BinaryFormatterMessage);
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 (14)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
128NotSupportedException e = new NotSupportedException(error);
System\Data\DataSet.cs (3)
3521throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported); 3551throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported); 3595throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported);
System\Data\DataSetUtil.cs (1)
45return new NotSupportedException(message);
System\Data\DataTable.cs (3)
6713throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported); 6748throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported); 6777throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported);
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)
384throw new NotSupportedException(SR.DataDom_NotSupport_EntRef); 1332throw new NotSupportedException(SR.DataDom_NotSupport_Clear); 3025throw new NotSupportedException(SR.DataDom_NotSupport_GetElementById);
System.Data.Odbc (1)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
128NotSupportedException e = new NotSupportedException(error);
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.Drawing.Common.Tests (4)
System\Drawing\ImageTests.cs (4)
709public override long Length => throw new NotSupportedException("This stream does not support seeking."); 712get => throw new NotSupportedException("This stream does not support seeking."); 713set => throw new NotSupportedException("This stream does not support seeking."); 720public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException("This stream does not support seeking.");
System.Formats.Nrbf (2)
System\Formats\Nrbf\Utils\BinaryReaderExtensions.cs (1)
46throw new NotSupportedException(SR.NotSupported_NonZeroOffsets);
System\Formats\Nrbf\Utils\ThrowHelper.cs (1)
56throw new NotSupportedException(SR.Format(SR.NotSupported_RecordType, recordType));
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)
416TarEntryType.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header._typeFlag)),
System.IO.Compression (50)
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)
188get { throw new NotSupportedException(SR.NotSupported); } 193get { throw new NotSupportedException(SR.NotSupported); } 194set { throw new NotSupportedException(SR.NotSupported); } 251throw new NotSupportedException(SR.NotSupported); 256throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\GZipStream.cs (5)
55get { throw new NotSupportedException(SR.NotSupported); } 60get { throw new NotSupportedException(SR.NotSupported); } 61set { throw new NotSupportedException(SR.NotSupported); } 72throw new NotSupportedException(SR.NotSupported); 77throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\PositionPreservingWriteOnlyStreamWrapper.cs (7)
30set { throw new NotSupportedException(SR.NotSupported); } 100get { throw new NotSupportedException(SR.NotSupported); } 105throw new NotSupportedException(SR.NotSupported); 110throw new NotSupportedException(SR.NotSupported); 113public override int Read(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported); 115public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported); 117public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\ZipArchive.cs (3)
230throw new NotSupportedException(SR.EntriesInCreateMode); 335throw new NotSupportedException(SR.EntriesInCreateMode); 387throw new NotSupportedException(SR.CreateInReadMode);
System\IO\Compression\ZipArchiveEntry.cs (9)
281throw new NotSupportedException(SR.ReadOnlyArchive); 332throw new NotSupportedException(SR.DeleteOnlyInUpdate); 1407throw new NotSupportedException(SR.SeekingNotSupported); 1420throw new NotSupportedException(SR.SeekingNotSupported); 1437throw new NotSupportedException(SR.ReadingNotSupported); 1443throw new NotSupportedException(SR.ReadingNotSupported); 1449throw new NotSupportedException(SR.ReadingNotSupported); 1455throw new NotSupportedException(SR.SeekingNotSupported); 1461throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipCustomStreams.cs (16)
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.ReadingNotSupported); 498throw new NotSupportedException(SR.ReadingNotSupported); 504throw new NotSupportedException(SR.SeekingNotSupported); 510throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System.IO.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
303throw 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.Packaging (7)
System\IO\Packaging\InterleavedZipPackagePartStream.cs (5)
88throw new NotSupportedException(SR.ReadNotSupported); 193throw new NotSupportedException(SR.SeekNotSupported); 244throw new NotSupportedException(SR.StreamDoesNotSupportWrite); 248throw new NotSupportedException(SR.SeekNotSupported); 302throw new NotSupportedException(SR.WriteNotSupported);
System\IO\Packaging\Package.cs (1)
869throw new NotSupportedException(SR.UnsupportedCombinationOfModeAccess);
System\IO\Packaging\PackagePart.cs (1)
246throw new NotSupportedException(SR.GetContentTypeCoreNotImplemented);
System.IO.Pipelines (3)
src\libraries\Common\src\System\IO\StreamHelpers.CopyValidation.cs (2)
33throw new NotSupportedException(SR.NotSupported_UnreadableStream); 38throw 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.IO.Ports (5)
System\IO\Ports\SerialStream.cs (5)
57get { throw new NotSupportedException(SR.NotSupported_UnseekableStream); } 62get { throw new NotSupportedException(SR.NotSupported_UnseekableStream); } 63set { throw new NotSupportedException(SR.NotSupported_UnseekableStream); } 68throw new NotSupportedException(SR.NotSupported_UnseekableStream); 73throw new NotSupportedException(SR.NotSupported_UnseekableStream);
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)
296throw 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)
588throw new NotSupportedException(SR.Format(SR.net_http_http2_sync_not_supported, GetType())); 594throw new NotSupportedException(SR.Format(SR.net_http_upgrade_not_enabled_sync, nameof(Send), request.VersionPolicy)); 638return new NotSupportedException(SR.net_http_unsupported_version); 665return new NotSupportedException(SR.net_http_unsupported_chunking); 683return 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 (18)
System\Net\DelegatedStream.cs (14)
35throw new NotSupportedException(SR.SeekNotSupported); 46throw new NotSupportedException(SR.SeekNotSupported); 53throw new NotSupportedException(SR.SeekNotSupported); 116throw new NotSupportedException(SR.ReadNotSupported); 124throw new NotSupportedException(SR.ReadNotSupported); 133throw new NotSupportedException(SR.ReadNotSupported); 142throw new NotSupportedException(SR.ReadNotSupported); 150throw new NotSupportedException(SR.ReadNotSupported); 159throw new NotSupportedException(SR.SeekNotSupported); 167throw new NotSupportedException(SR.SeekNotSupported); 175throw new NotSupportedException(SR.WriteNotSupported); 183throw new NotSupportedException(SR.WriteNotSupported); 192throw new NotSupportedException(SR.WriteNotSupported); 201throw 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)
291get { throw new NotSupportedException(SR.net_PropertyNotSupportedException); } 292set { throw new NotSupportedException(SR.net_PropertyNotSupportedException); }
System\Net\ServicePoint\ServicePointManager.cs (1)
46throw new NotSupportedException(SR.net_securityprotocolnotsupported);
System\Net\WebRequest.cs (2)
138throw new NotSupportedException(SR.net_unknown_prefix); 211throw 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)
82throw new NotSupportedException(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStream.cs (3)
679set => throw new NotSupportedException(SR.net_noseek); 684public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.net_noseek); 748throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read"));
System\Net\Security\SslStream.IO.cs (4)
203throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 210throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write")); 831throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 972throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write"));
System\Net\Security\SslStream.Protocol.cs (3)
705throw new NotSupportedException(SR.net_ssl_io_no_server_cert); 724throw new NotSupportedException(SR.net_ssl_io_no_server_cert); 734throw 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)
109throw new NotSupportedException(SR.net_ssl_io_no_server_cert);
System.Net.Sockets (23)
System\Net\Sockets\NetworkStream.cs (5)
188throw new NotSupportedException(SR.net_noseek); 197throw new NotSupportedException(SR.net_noseek); 202throw new NotSupportedException(SR.net_noseek); 210throw new NotSupportedException(SR.net_noseek); 681throw new NotSupportedException(SR.net_noseek);
System\Net\Sockets\Socket.cs (17)
625throw new NotSupportedException(SR.net_invalidversion); 646throw new NotSupportedException(SR.net_invalidversion); 663throw new NotSupportedException(SR.net_invalidversion); 677throw new NotSupportedException(SR.net_invalidversion); 700throw new NotSupportedException(SR.net_invalidversion); 718throw new NotSupportedException(SR.net_invalidversion); 762throw new NotSupportedException(SR.net_invalidversion); 860throw new NotSupportedException(SR.net_invalidversion); 892throw new NotSupportedException(SR.net_invalidversion); 912throw new NotSupportedException(SR.net_invalidversion); 947throw new NotSupportedException(SR.net_invalidversion); 1330throw new NotSupportedException(SR.net_notconnected); 2322throw new NotSupportedException(SR.net_invalidversion); 2562throw new NotSupportedException(SR.net_notconnected); 2910throw new NotSupportedException(SR.net_invalidversion); 2930throw new NotSupportedException(SR.net_invalidversion); 3224throw 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_1.cs (2)
370throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 391throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System\Numerics\Tensors\netcore\TensorSpan.cs (2)
267throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 288throw 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 (341)
src\Internal\Runtime\InteropServices\ComponentActivator.CoreCLR.cs (1)
22throw new NotSupportedException(SR.NotSupported_CppCli);
src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
88throw new NotSupportedException(SR.Arg_TypeNotSupported);
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); 260throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 265throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 284throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 316throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 321throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 337throw 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)
212throw new NotSupportedException(SR.EventSource_NotSupportedNestedArraysEnums); 224throw new NotSupportedException(SR.EventSource_NotSupportedNestedArraysEnums); 254throw 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)
187throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 198throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (2)
35typeinfos[i] = types[i].GetTypeInfo() ?? throw new NotSupportedException(SR.Format(SR.NotSupported_NoTypeInfo, types[i].FullName)); 410throw 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)
160throw new NotSupportedException(SR.NotSupported_OutputStreamUsingTypeBuilder); 248throw 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); 315throw new NotSupportedException(SR.NotSupported_NonReflectedType); 341public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 374throw new NotSupportedException(SR.NotSupported_NonReflectedType); 380throw new NotSupportedException(SR.NotSupported_NonReflectedType); 387throw new NotSupportedException(SR.NotSupported_NonReflectedType); 393throw new NotSupportedException(SR.NotSupported_NonReflectedType); 399throw new NotSupportedException(SR.NotSupported_NonReflectedType); 405throw new NotSupportedException(SR.NotSupported_NonReflectedType); 412throw new NotSupportedException(SR.NotSupported_NonReflectedType); 418throw new NotSupportedException(SR.NotSupported_NonReflectedType); 424throw new NotSupportedException(SR.NotSupported_NonReflectedType); 430throw new NotSupportedException(SR.NotSupported_NonReflectedType); 437throw new NotSupportedException(SR.NotSupported_NonReflectedType); 443throw new NotSupportedException(SR.NotSupported_NonReflectedType); 449throw new NotSupportedException(SR.NotSupported_NonReflectedType); 455throw new NotSupportedException(SR.NotSupported_NonReflectedType); 461throw new NotSupportedException(SR.NotSupported_NonReflectedType); 467throw new NotSupportedException(SR.NotSupported_NonReflectedType); 479throw new NotSupportedException(SR.NotSupported_NonReflectedType); 485throw new NotSupportedException(SR.NotSupported_NonReflectedType); 542throw new NotSupportedException(SR.NotSupported_NonReflectedType); 547throw new NotSupportedException(SR.NotSupported_NonReflectedType); 552throw 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\SignatureGenericParameterType.cs (2)
22public sealed override bool IsEnum => throw new NotSupportedException(SR.NotSupported_SignatureType); 30protected sealed override bool IsValueTypeImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (62)
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); 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); 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)
832throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 970throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (2)
824throw new NotSupportedException(SR.NotSupported_ByRefLike); 895throw new NotSupportedException(SR.NotSupported_ByRefLike);
src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
192throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 203throw 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\Interlocked.cs (2)
256throw new NotSupportedException(SR.NotSupported_ReferenceEnumOrPrimitiveTypeRequired); 508throw new NotSupportedException(SR.NotSupported_ReferenceEnumOrPrimitiveTypeRequired);
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
305throw new NotSupportedException(SR.NotSupported_MaxWaitHandles);
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (4)
434throw new NotSupportedException(GetResourceString(resource)); 440throw new NotSupportedException(SR.NotSupported_UnseekableStream); 446throw new NotSupportedException(SR.NotSupported_UnreadableStream); 452throw 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); 78public virtual Type GetGenericTypeDefinition() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 80public virtual Type[] GetGenericArguments() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 248public virtual MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 600public virtual InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 640public virtual Array GetEnumValuesAsUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 650public virtual Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_SubclassOverride);
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (1)
75throw 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)
323throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 337throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 383throw new NotSupportedException(SR.InvalidOperation_NotAllowedInDynamicMethod); 388throw new NotSupportedException(SR.InvalidOperation_NotAllowedInDynamicMethod); 393throw 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); 955throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 997throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 1015throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 1046throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 1063throw 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); 106string? codeBase = GetCodeBase() ?? throw new NotSupportedException(SR.NotSupported_CodeBase);
src\System\RuntimeType.ActivatorCache.cs (1)
67case NotSupportedException: throw new NotSupportedException(friendlyMessage);
src\System\RuntimeType.CoreCLR.cs (3)
3840throw new NotSupportedException(SR.Acc_CreateArgIterator); 3843throw new NotSupportedException(SR.Acc_CreateVoid); 3926throw new NotSupportedException(SR.NotSupported_CallToVarArg);
src\System\StubHelpers.cs (2)
522throw new NotSupportedException(SR.Interop_Marshal_CannotCreateSafeHandleField); 527throw 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.Windows.Core (11)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
374throw new NotSupportedException($"{nameof(T)} is not primitive.");
System\Private\Windows\JsonData.cs (1)
124result = new NotSupportedException(ex.Message);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
536exception = new NotSupportedException(classInfo.GetString("Message"));
System\Private\Windows\Ole\BinaryFormatUtilities.cs (5)
45throw new NotSupportedException(SR.BinaryFormatterNotSupported); 51throw new NotSupportedException(SR.BinaryFormatter_NotSupported_InClipboardOrDragDrop); 168throw new NotSupportedException(string.Format(SR.ClipboardOrDragDrop_UseTypedAPI, typeof(T).FullName)); 174throw new NotSupportedException(SR.BinaryFormatterNotSupported); 180throw new NotSupportedException(SR.BinaryFormatter_NotSupported_InClipboardOrDragDrop);
System\Private\Windows\Ole\ClipboardCore.cs (1)
271throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
411throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\TypeBinder.cs (1)
90: throw new NotSupportedException(string.Format(
System.Private.Windows.Core.Tests (3)
System\Private\Windows\Ole\BinaryFormatUtilitesTestsBase.cs (1)
128throw new NotSupportedException($"Can't resolve {typeName.AssemblyQualifiedName}");
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (2)
447throw new NotSupportedException($"Can't resolve {typeName.AssemblyQualifiedName}"); 726throw new NotSupportedException($"Can't resolve {typeName.AssemblyQualifiedName}");
System.Private.Windows.Core.TestUtilities (2)
BinarySerialization.cs (2)
36throw new NotSupportedException($"Serializable attribute is expected on {fullName}"); 55throw new NotSupportedException($"Serializable attribute is not expected on {type.FullName}");
System.Private.Xml (33)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
4412return 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)
789throw new NotSupportedException(SR.XmlInvalidCharSchemaPrimitive); 869throw 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)
380throw new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, FullName)); 789exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 807exception ??= new NotSupportedException(SR.Format(SR.XmlUnsupportedRank, type.FullName)); 826exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 881exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterface, type.FullName)); 885exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterfaceDetails, $"{memberInfo.DeclaringType!.FullName}.{memberInfo.Name}", type.FullName)); 893exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 1337throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionary, type.FullName)); 1341throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionaryDetails, memberInfo, type.FullName));
System\Xml\Serialization\XmlReflectionImporter.cs (1)
805throw new NotSupportedException(SR.Format(SR.XmlUnsupportedInheritance, model.Type.BaseType!.FullName));
System\Xml\Serialization\XmlSchemaImporter.cs (1)
449throw new NotSupportedException(SR.Format(SR.XmlUnsupportedRedefine, type.Name, typeNs));
System\Xml\Serialization\XmlSerializationReader.cs (1)
1666throw 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); 315throw new NotSupportedException(SR.NotSupported_NonReflectedType); 341public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 374throw new NotSupportedException(SR.NotSupported_NonReflectedType); 380throw new NotSupportedException(SR.NotSupported_NonReflectedType); 387throw new NotSupportedException(SR.NotSupported_NonReflectedType); 393throw new NotSupportedException(SR.NotSupported_NonReflectedType); 399throw new NotSupportedException(SR.NotSupported_NonReflectedType); 405throw new NotSupportedException(SR.NotSupported_NonReflectedType); 412throw new NotSupportedException(SR.NotSupported_NonReflectedType); 418throw new NotSupportedException(SR.NotSupported_NonReflectedType); 424throw new NotSupportedException(SR.NotSupported_NonReflectedType); 430throw new NotSupportedException(SR.NotSupported_NonReflectedType); 437throw new NotSupportedException(SR.NotSupported_NonReflectedType); 443throw new NotSupportedException(SR.NotSupported_NonReflectedType); 449throw new NotSupportedException(SR.NotSupported_NonReflectedType); 455throw new NotSupportedException(SR.NotSupported_NonReflectedType); 461throw new NotSupportedException(SR.NotSupported_NonReflectedType); 467throw new NotSupportedException(SR.NotSupported_NonReflectedType); 479throw new NotSupportedException(SR.NotSupported_NonReflectedType); 485throw new NotSupportedException(SR.NotSupported_NonReflectedType); 542throw new NotSupportedException(SR.NotSupported_NonReflectedType); 547throw new NotSupportedException(SR.NotSupported_NonReflectedType); 552throw 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)
104public override object? GetValue(object? obj) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 107=> throw new NotSupportedException(SR.NotSupported_DynamicModule); 108public override RuntimeFieldHandle FieldHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 119public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 121public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 123public override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule);
System\Reflection\Emit\ILGeneratorImpl.cs (5)
90throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 137throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 180throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 208throw new NotSupportedException(SR.Argument_NotInExceptionBlock); 745throw 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)
141public override object GetValue(object? obj, object?[]? index) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 143throw new NotSupportedException(SR.NotSupported_DynamicModule); 144public override void SetValue(object? obj, object? value, object?[]? index) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 146throw new NotSupportedException(SR.NotSupported_DynamicModule); 147public override MethodInfo[] GetAccessors(bool nonPublic) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 148public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 149public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 150public override ParameterInfo[] GetIndexParameters() => throw new NotSupportedException(SR.NotSupported_DynamicModule); 151public 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); 662throw 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); 205public sealed override Assembly GetSatelliteAssembly(CultureInfo culture) => throw new NotSupportedException(SR.NotSupported_SatelliteAssembly); 206public 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)
832throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 970throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed);
System.Runtime.Caching (10)
System\Runtime\Caching\MemoryCache.cs (10)
415throw new NotSupportedException(SR.RegionName_not_supported); 463throw new NotSupportedException(SR.RegionName_not_supported); 563throw new NotSupportedException(SR.RegionName_not_supported); 581throw new NotSupportedException(SR.RegionName_not_supported); 601throw new NotSupportedException(SR.RegionName_not_supported); 619throw new NotSupportedException(SR.RegionName_not_supported); 733throw new NotSupportedException(SR.RegionName_not_supported); 748throw new NotSupportedException(SR.RegionName_not_supported); 767throw new NotSupportedException(SR.RegionName_not_supported); 777throw new NotSupportedException(SR.RegionName_not_supported);
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)
1519throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1543throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1574throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1600throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1629throw new NotSupportedException(SR.NotSupported_SubclassOverride); 1662throw 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)
357throw new NotSupportedException(
System\Security\Cryptography\X509Certificates\OpenSslX509Encoder.cs (3)
18throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 26throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 43throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
133throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
287_ => throw new NotSupportedException(SR.NotSupported_KeyAlgorithm),
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\CryptoHelpers.cs (1)
57throw new NotSupportedException(SR.Cryptography_Xml_XsltRequiresDynamicCode);
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
536throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System.ServiceModel.Federation (9)
System\ServiceModel\Federation\WSTrustChannel.cs (3)
98throw new NotSupportedException(SR.Format(SR.WsTrustVersionNotSupported, trustRequest.WsTrustVersion.ToString())); 109throw new NotSupportedException(SR.Format(SR.RequestTypeNotSupported, trustRequest.RequestType)); 142throw new NotSupportedException(SR.Format(SR.WsTrustVersionNotSupported, trustRequest.WsTrustVersion.ToString()));
System\ServiceModel\Federation\WSTrustChannelSecurityTokenProvider.cs (2)
140throw new NotSupportedException(SR.Format(SR.KeyTypeNotSupported, WSTrustTokenParameters.KeyType)); 308throw new NotSupportedException(SR.Format(SR.WsTrustVersionNotSupported, MessageSecurityVersion.TrustVersion));
System\ServiceModel\Federation\WSTrustUtilities.cs (4)
47throw new NotSupportedException(SR.EncryptedKeysForProofTokensNotSupported); 81throw new NotSupportedException(SR.ProtectedKeyEntropyIsNotSupported); 107throw new NotSupportedException(SR.OnlyPSHA1ComputedKeysAreSupported); 115throw new NotSupportedException(SR.ProtectedKeyEntropyIsNotSupported);
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\Connection.cs (5)
156throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.SPS_SeekNotSupported)); 164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.SPS_SeekNotSupported)); 168throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.SPS_SeekNotSupported)); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.SPS_SeekNotSupported)); 275throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.SPS_SeekNotSupported));
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
584throw new NotSupportedException(FeedUtils.AddLineInfo(reader, (SR.Format(SR.UnsupportedRssVersion, version))));
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\UnixDomainSocketSecurity.cs (1)
63throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.Format(SR.UnsupportedSecuritySetting, "Mode", _mode)));
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)
358throw new NotSupportedException( 371throw new NotSupportedException( 537throw 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 (18)
System\Text\Json\Serialization\Converters\Value\UnsupportedTypeConverter.cs (2)
18throw new NotSupportedException(ErrorMessage); 21throw new NotSupportedException(ErrorMessage);
System\Text\Json\ThrowHelper.Node.cs (1)
71return new NotSupportedException(SR.CollectionIsReadOnly);
System\Text\Json\ThrowHelper.Serialization.cs (15)
34throw new NotSupportedException(SR.Format(SR.SerializationNotSupportedType, propertyType)); 40throw new NotSupportedException(SR.Format(SR.TypeRequiresAsyncSerialization, propertyType)); 46throw new NotSupportedException(SR.Format(SR.DictionaryKeyTypeNotSupported, keyType, converter.GetType())); 124throw new NotSupportedException(SR.ObjectCreationHandlingPropertyDoesNotSupportParameterizedConstructors); 406NotSupportedException ex = new NotSupportedException( 646ThrowNotSupportedException(ref state, reader, new NotSupportedException(message)); 652ThrowNotSupportedException(ref state, reader, new NotSupportedException(SR.Format(SR.CannotPopulateCollection, type))); 815throw new NotSupportedException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>")); 820return new NotSupportedException(SR.Format(SR.AmbiguousMetadataForType, type, match1, match2)); 826throw new NotSupportedException(SR.Format(SR.ConstructorContainsNullParameterNames, declaringType)); 855throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType)); 861throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType)); 867throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeNotSupported, runtimeType, baseType)); 873throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeDiamondAmbiguity, runtimeType, derivedType1, derivedType2, baseType)); 951throw new NotSupportedException(SR.JsonSchemaExporter_ReferenceHandlerPreserve_NotSupported);
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)
185IDisposable ISourceBlock<T>.LinkTo(ITargetBlock<T> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 712IDisposable ISourceBlock<TOutput>.LinkTo(ITargetBlock<TOutput> target, DataflowLinkOptions linkOptions) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 714void IDataflowBlock.Complete() { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 716void IDataflowBlock.Fault(Exception exception) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 1357Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } } 1482Task IDataflowBlock.Completion => throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); 2135Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
Blocks\BatchedJoinBlock.cs (1)
624Task IDataflowBlock.Completion { get { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } }
Blocks\JoinBlock.cs (1)
933public 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.Forms (221)
System\Drawing\Design\UITypeEditor.cs (1)
70throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(UITypeEditor)));
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
593throw new NotSupportedException(message); 3230throw new NotSupportedException(SR.AccessibleObjectLiveRegionNotSupported);
System\Windows\Forms\ActiveX\AxHost.cs (38)
295add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick")); 303add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick")); 472add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 480add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 488add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 496add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 504add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 515add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 523add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 531add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 539add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 547add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 558add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 566add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 574add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 582add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 590add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 598add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 606add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 614add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 622add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 630add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 641add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 649add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 660add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 671add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 682add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 690add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 701add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 712add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 723add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 734add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 745add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 756add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 767add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 775add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 783add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged")); 1529throw new NotSupportedException(string.Format(SR.AXNohWnd, GetType().Name));
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (6)
88throw new NotSupportedException(SR.AXTopLevelSource); 1041throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl))); 1144throw new NotSupportedException(SR.BinaryFormatterNotSupported); 1441throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl))); 1495throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl))); 1534throw new NotSupportedException(SR.BinaryFormatterNotSupported);
System\Windows\Forms\Application.cs (1)
1262throw new NotSupportedException(SR.RestartNotSupported);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
823throw new NotSupportedException(string.Format(SR.COM2ReadonlyProperty, Name));
System\Windows\Forms\Control.cs (4)
1529throw new NotSupportedException(SR.BindingNotSupported); 6220throw new NotSupportedException(SR.ControlIsKeyLockedNumCapsScrollLockKeysSupportedOnly); 6655throw new NotSupportedException(SR.BindingNotSupported); 12613throw new NotSupportedException(SR.DesignTimeFeaturesNotSupported);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
165throw new NotSupportedException(SR.DesignTimeFeaturesNotSupported);
System\Windows\Forms\Controls\Buttons\FlatButtonAppearance.cs (1)
73throw new NotSupportedException(SR.ButtonFlatAppearanceInvalidBorderColor);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
151throw new NotSupportedException(SR.ComboBoxAutoCompleteModeOnlyNoneAllowed); 193throw new NotSupportedException(SR.ComboBoxAutoCompleteSourceOnlyListItemsAllowed);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7123throw new NotSupportedException(SR.DataGridView_DisabledClipboardCopy);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (8)
20throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 25throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 34throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 39throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 44throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 54set { throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); } 112throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 125throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (8)
16throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 21throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 30throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 35throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 40throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 50set { throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); } 79throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 92throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (8)
18int IList.Add(object? value) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 20void IList.Clear() => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 26void IList.Insert(int index, object? value) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 28void IList.Remove(object? value) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 30void IList.RemoveAt(int index) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 39set { throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); } 66public void Clear() => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 76public void Insert(int index, DataGridViewRow dataGridViewRow) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (6)
85throw new NotSupportedException(SR.CheckedListBoxCheckedIndexCollectionIsReadOnly); 91throw new NotSupportedException(SR.CheckedListBoxCheckedIndexCollectionIsReadOnly); 96throw new NotSupportedException(SR.CheckedListBoxCheckedIndexCollectionIsReadOnly); 101throw new NotSupportedException(SR.CheckedListBoxCheckedIndexCollectionIsReadOnly); 106throw new NotSupportedException(SR.CheckedListBoxCheckedIndexCollectionIsReadOnly); 111throw new NotSupportedException(SR.CheckedListBoxCheckedIndexCollectionIsReadOnly);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (6)
60throw new NotSupportedException(SR.CheckedListBoxCheckedItemCollectionIsReadOnly); 113throw new NotSupportedException(SR.CheckedListBoxCheckedItemCollectionIsReadOnly); 118throw new NotSupportedException(SR.CheckedListBoxCheckedItemCollectionIsReadOnly); 123throw new NotSupportedException(SR.CheckedListBoxCheckedItemCollectionIsReadOnly); 128throw new NotSupportedException(SR.CheckedListBoxCheckedItemCollectionIsReadOnly); 133throw new NotSupportedException(SR.CheckedListBoxCheckedItemCollectionIsReadOnly);
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
228throw new NotSupportedException(SR.ListBoxCantInsertIntoIntegerCollection);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (6)
111throw new NotSupportedException(SR.ListBoxSelectedIndexCollectionIsReadOnly); 116throw new NotSupportedException(SR.ListBoxSelectedIndexCollectionIsReadOnly); 121throw new NotSupportedException(SR.ListBoxSelectedIndexCollectionIsReadOnly); 126throw new NotSupportedException(SR.ListBoxSelectedIndexCollectionIsReadOnly); 131throw new NotSupportedException(SR.ListBoxSelectedIndexCollectionIsReadOnly); 154throw new NotSupportedException(SR.ListBoxSelectedIndexCollectionIsReadOnly);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (6)
154throw new NotSupportedException(SR.ListBoxSelectedObjectCollectionIsReadOnly); 159throw new NotSupportedException(SR.ListBoxSelectedObjectCollectionIsReadOnly); 164throw new NotSupportedException(SR.ListBoxSelectedObjectCollectionIsReadOnly); 169throw new NotSupportedException(SR.ListBoxSelectedObjectCollectionIsReadOnly); 174throw new NotSupportedException(SR.ListBoxSelectedObjectCollectionIsReadOnly); 200throw new NotSupportedException(SR.ListBoxSelectedObjectCollectionIsReadOnly);
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
143throw new NotSupportedException(SR.BindingNotSupported); 435throw new NotSupportedException(SR.BindingNotSupported); 706throw new NotSupportedException(SR.BindingNotSupported);
System\Windows\Forms\Controls\ListView\ListView.cs (5)
455throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView); 500throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView); 1811throw new NotSupportedException(SR.ListViewTileViewDoesNotSupportCheckBoxes); 1821throw new NotSupportedException(SR.ListViewCantSetViewToTileViewInVirtualMode); 1933throw new NotSupportedException(SR.ListViewCantSetVirtualModeWhenInTileView);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
492throw new NotSupportedException(SR.PictureBoxRemoteLocationNotSupported); 565throw new NotSupportedException(SR.PictureBoxRemoteLocationNotSupported);
System\Windows\Forms\Controls\PropertyGrid\GridItem.cs (1)
80set => throw new NotSupportedException(SR.GridItemNotExpandable);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
166throw new NotSupportedException(SR.TextBoxAutoCompleteSourceNoItems);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
226throw new NotSupportedException(SR.ToolStripDoesntSupportAutoScroll); 1571throw new NotSupportedException(SR.ToolStripRenderModeUseRendererPropertyInstead); 4066throw new NotSupportedException(SR.ToolStripCanOnlyPositionItsOwnItems);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
42throw new NotSupportedException(SR.ToolStripMustSupplyItsOwnComboBox);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerTypedControlCollection.cs (3)
31throw new NotSupportedException(SR.ToolStripContainerUseContentPanel); 51throw new NotSupportedException(SR.ReadonlyControlsCollection); 67throw new NotSupportedException(SR.ReadonlyControlsCollection);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (9)
121throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly); 141throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly); 174throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly); 223throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly); 233throw new NotSupportedException(SR.ToolStripItemCircularReference); 309set { throw new NotSupportedException(SR.ToolStripCollectionMustInsertAndRemove); /* InnerList[index] = value; */ } 417throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly); 432throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly); 450throw new NotSupportedException(SR.ToolStripItemCollectionIsReadOnly);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
522throw new NotSupportedException(SR.ToolStripRenderModeUseRendererPropertyInstead);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
124set { throw new NotSupportedException(SR.ToolStripCollectionMustInsertAndRemove); /* InnerList[index] = value; */ }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
78throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))); 210throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip)));
System\Windows\Forms\Controls\ToolStrips\ToolStripRendererSwitcher.cs (1)
108throw new NotSupportedException(SR.ToolStripRenderModeUseRendererPropertyInstead);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
158throw new NotSupportedException(SR.ToolStripSplitStackLayoutContainerMustBeAToolStrip); 184throw new NotSupportedException(SR.ToolStripSplitStackLayoutContainerMustBeAToolStrip);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
50throw new NotSupportedException(SR.ToolStripMustSupplyItsOwnTextBox);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (6)
224throw new NotSupportedException(SR.HtmlElementPropertyNotSupported); 253throw new NotSupportedException(SR.HtmlElementPropertyNotSupported); 353throw new NotSupportedException(SR.HtmlElementPropertyNotSupported); 382throw new NotSupportedException(SR.HtmlElementPropertyNotSupported); 530throw new NotSupportedException(SR.HtmlElementMethodNotSupported); 671throw new NotSupportedException(SR.HtmlElementAttributeNotSupported);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (48)
1290throw new NotSupportedException(SR.WebBrowserAllowDropNotSupported); 1302throw new NotSupportedException(SR.WebBrowserBackgroundImageNotSupported); 1314throw new NotSupportedException(SR.WebBrowserBackgroundImageLayoutNotSupported); 1327throw new NotSupportedException(SR.WebBrowserCursorNotSupported); 1339throw new NotSupportedException(SR.WebBrowserEnabledNotSupported); 1351throw new NotSupportedException(SR.WebBrowserRightToLeftNotSupported); 1364set => throw new NotSupportedException(SR.WebBrowserTextNotSupported); 1375throw new NotSupportedException(SR.WebBrowserUseWaitCursorNotSupported); 1387add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 1395add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Enter")); 1403add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Leave")); 1411add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseCaptureChanged")); 1419add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick")); 1427add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick")); 1435add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 1443add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 1451add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 1459add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 1467add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 1475add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 1483add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 1491add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 1499add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 1507add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 1515add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 1523add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 1531add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 1539add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 1547add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 1556add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 1564add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 1572add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 1580add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 1588add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 1596add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 1604add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 1612add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 1620add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 1628add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 1636add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 1644add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 1652add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 1660add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 1668add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 1676add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 1684add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 1692add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 1700add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged"));
System\Windows\Forms\DataBinding\BindingSource.cs (5)
1715throw new NotSupportedException(SR.OperationRequiresIBindingList); 1726throw new NotSupportedException(SR.OperationRequiresIBindingList); 1736throw new NotSupportedException(SR.OperationRequiresIBindingList); 1746throw new NotSupportedException(SR.OperationRequiresIBindingList); 1767throw new NotSupportedException(SR.OperationRequiresIBindingListView);
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
283throw new NotSupportedException(SR.CurrencyManagerCantAddNew);
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
205throw new NotSupportedException(SR.DataBindingAddNewNotSupportedOnPropertyManager); 215throw new NotSupportedException(SR.DataBindingRemoveAtNotSupportedOnPropertyManager);
System\Windows\Forms\ImageIndexConverter.cs (1)
97throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ImageIndexConverter)));
System\Windows\Forms\Internal\ReadOnlyControlCollection.cs (3)
30throw new NotSupportedException(SR.ReadonlyControlsCollection); 42throw new NotSupportedException(SR.ReadonlyControlsCollection); 54throw new NotSupportedException(SR.ReadonlyControlsCollection);
System\Windows\Forms\Internal\TypedControlCollection.cs (1)
43throw new NotSupportedException(SR.ReadonlyControlsCollection);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
255throw new NotSupportedException(SR.BindingNotSupported);
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerTypedControlCollection.cs (2)
26throw new NotSupportedException(SR.ReadonlyControlsCollection); 48throw new NotSupportedException(SR.ReadonlyControlsCollection);
System\Windows\Forms\Layout\LayoutEngine.cs (1)
14throw new NotSupportedException(string.Format(SR.LayoutEngineUnsupportedType, obj.GetType()));
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
88throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(MdiWindowDialog)));
System\Windows\Forms\OLE\DataObjectExtensions.cs (1)
17throw new NotSupportedException(string.Format(
System\Windows\Forms\OLE\WinFormsOleServices.cs (1)
136format = autoConvert ? DataFormatNames.Bitmap : throw new NotSupportedException(SR.DataObjectDibNotSupported);
System\Windows\Forms\Panels\SplitterPanel.cs (2)
126set => throw new NotSupportedException(SR.SplitContainerPanelHeight); 277set => throw new NotSupportedException(SR.SplitContainerPanelWidth);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
55throw new NotSupportedException(SR.TableLayoutSettingSettingsIsNotSupported);
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1693throw new NotSupportedException("Unsupported location index value");
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignSurface.cs (1)
167throw new NotSupportedException(SR.DesignSurfaceNoSupportedTechnology)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
200Exception ex = new NotSupportedException(SR.CodeDomDesignerLoaderNoLanguageSupport)
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
76?? throw new NotSupportedException(string.Format(SR.LocalizationProviderMissingService, nameof(IExtenderProviderService)));
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
254throw new NotSupportedException(string.Format(SR.SerializerMemberTypeNotSerializable, member.GetType().FullName));
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
143throw new NotSupportedException(SR.ToolStripPanelGlyphUnsupportedDock);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ClipboardTests.cs (1)
695throw new NotSupportedException($"Can't resolve {typeName.AssemblyQualifiedName}");
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (1)
498throw new NotSupportedException($"Can't resolve {fullName}");
System\Windows\Forms\Ole\BinaryFormatUtilitiesTests.cs (1)
89throw new NotSupportedException($"Can't resolve {typeName.AssemblyQualifiedName}");
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenRecordService.cs (1)
449throw new NotSupportedException($"Chunk \"{type}\" is not supported.");
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)
247return new NotSupportedException(SR.Format(SR.ConvertToException, base.GetType().Name, text, destinationType.FullName)); 265return new NotSupportedException(SR.Format(SR.ConvertFromException, base.GetType().Name, text));
System\Xaml\Runtime\DynamicMethodRuntime.cs (2)
243throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, member)); 261throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, member));
System\Xaml\Schema\XamlMemberInvoker.cs (5)
57throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, _member)); 76throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, _member)); 159throw new NotSupportedException(SR.NotSupportedOnUnknownMember); 167throw new NotSupportedException(SR.NotSupportedOnDirective); 172throw new NotSupportedException(SR.NotSupportedOnDirective);
System\Xaml\Schema\XamlTypeInvoker.cs (4)
69throw new NotSupportedException(SR.OnlySupportedOnCollections); 103throw new NotSupportedException(SR.OnlySupportedOnDictionaries); 221throw new NotSupportedException(SR.OnlySupportedOnCollectionsAndDictionaries); 251throw new NotSupportedException(SR.NotSupportedOnUnknownType);
System\Xaml\XamlXmlWriter.cs (1)
936throw new NotSupportedException(SR.MissingCaseXamlNodes);
Test.Utilities (2)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
Text.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\RoslynHashCode.cs (2)
435public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 439public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
UnitTests.Common (1)
TestTypes.cs (1)
284throw new NotSupportedException("Synchronously sending is not supported.");