2677 references to NotSupportedException
aspire (7)
Acquisition\InstallationDiscovery.cs (1)
286throw new NotSupportedException($"Unsupported peer probe result type '{probe?.GetType().FullName ?? "(null)"}'.");
Commands\InitCommand.cs (1)
484?? throw new NotSupportedException($"Polyglot skeleton not yet supported for language: {languageId}");
Projects\AppHostProjectFactory.cs (1)
64throw new NotSupportedException($"No handler available for AppHost file '{appHostFile.Name}'.");
Scaffolding\ScaffoldingService.cs (3)
76throw new NotSupportedException("C# projects should be created using the template system via NewCommand."); 281var appHostFileName = language.AppHostFileName ?? throw new NotSupportedException($"AppHost file not defined for language: {language.LanguageId}"); 366appHostFileName ??= language.AppHostFileName ?? throw new NotSupportedException($"AppHost file not defined for language: {language.LanguageId}");
Utils\ArchiveHelper.cs (1)
32throw new NotSupportedException($"Unsupported archive format: {archivePath}");
aspire-managed (2)
NuGet\TrustedRootsHelper.cs (2)
176throw new NotSupportedException($"Method '{targetMethod?.Name}' is not supported on IX509ChainFactory proxy. This may indicate a NuGet.Packaging version mismatch — the library may have added new interface members."); 216_ => throw new NotSupportedException($"Method '{targetMethod?.Name}' is not supported on IX509Chain proxy. This may indicate a NuGet.Packaging version mismatch — the library may have added new interface members.")
Aspire.Cli.Tests (13)
Commands\Sdk\SdkExportCommandTests.cs (1)
465=> throw new NotSupportedException("Run should not be invoked by this test.");
Projects\ProjectLocatorTests.cs (1)
2181=> TryGetProject(appHostFile) ?? throw new NotSupportedException($"No handler available for AppHost file '{appHostFile.Name}'.");
Scaffolding\ChannelReseedTests.cs (1)
155throw new NotSupportedException("Run should not be invoked when PrepareAsync fails.");
Telemetry\AspireCliTelemetryTests.cs (1)
358ExceptionToThrow = new NotSupportedException("Unexpected probe failure.")
Telemetry\InternalMicrosoftDetectorTests.cs (2)
196throw new NotSupportedException("Unexpected probe failure after cancellation."); 220[new InternalMicrosoftProbe("faulting", _ => throw new NotSupportedException("Unexpected probe failure."))],
TestServices\FakeFailingAppHostServerProject.cs (1)
38throw new NotSupportedException("Run should not be invoked when PrepareAsync fails.");
TestServices\FakeSucceedingAppHostServerProject.cs (1)
35throw new NotSupportedException("Run should not be invoked when using a fake codegen session.");
TestServices\TestAppHostProjectFactory.cs (1)
67return TryGetProject(appHostFile) ?? throw new NotSupportedException($"No handler available for AppHost file '{appHostFile.Name}'.");
TestServices\TestTypeScriptStarterProjectFactory.cs (2)
21throw new NotSupportedException($"No handler available for language '{language.LanguageId}'."); 34return TryGetProject(appHostFile) ?? throw new NotSupportedException($"No handler available for AppHost file '{appHostFile.Name}'.");
Utils\DevCertsCheckTests.cs (2)
637KillCallback = _ => throw new NotSupportedException("Process tree termination is unavailable.") 691KillCallback = _ => throw new NotSupportedException("Process tree termination is unavailable.")
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\PropertyFetcher.AOT.cs (1)
115throw new NotSupportedException(
Aspire.Dashboard (4)
DashboardWebApplication.cs (1)
965throw new NotSupportedException($"Unexpected {nameof(FrontendAuthMode)} enum member: {dashboardOptions.Frontend.AuthMode}");
Otlp\Http\OtlpJsonConverters.cs (2)
58throw new NotSupportedException($"JSON deserialization for type {typeof(TMessage).Name} is not supported."); 69throw new NotSupportedException($"JSON serialization for type {typeof(TMessage).Name} is not supported.");
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (1)
519throw new NotSupportedException($"Unsupported log filter type '{filter.GetType().Name}'.");
Aspire.Hosting (2)
Publishing\ResourceContainerImageManager.cs (1)
296throw new NotSupportedException($"The resource '{resource.Name}' of type '{resource.GetType().Name}' is not supported.");
Utils\FormattingHelpers.cs (1)
24_ => throw new NotSupportedException($"The format '{format}' is not supported. Supported formats are 'uri' (encodes a URI)")
Aspire.Hosting.Azure (8)
AzureProvisioningResource.cs (4)
183_ => throw new NotSupportedException($"Existing resource name type '{existingAnnotation.Name.GetType()}' is not supported.") 232_ => throw new NotSupportedException($"Scope value types '{scope.Subscription.GetType()}' and '{scope.ResourceGroup.GetType()}' are not supported.") 242_ => throw new NotSupportedException($"Resource group type '{scope.ResourceGroup.GetType()}' is not supported.") 252_ => throw new NotSupportedException($"Subscription type '{scope.Subscription.GetType()}' is not supported.")
AzurePublishingContext.cs (1)
258_ => throw new NotSupportedException("Unsupported value type " + val.GetType())
Provisioning\BicepUtilities.cs (2)
67_ => throw new NotSupportedException($"The parameter value type {parameterValue.GetType()} is not supported.") 230_ => throw new NotSupportedException($"The scope {propertyName} value type {value.GetType()} is not supported.")
Provisioning\Provisioners\BicepProvisioner.cs (1)
1289_ => throw new NotSupportedException($"The scope value type {scopeValue.GetType()} is not supported.")
Aspire.Hosting.Azure.AppContainers (10)
BaseContainerAppContext.cs (3)
150_ => throw new NotSupportedException("Unsupported value type " + val.GetType()) 270throw new NotSupportedException("Automatic Key vault generation is not supported in this environment. Please create a key vault resource directly."); 384throw new NotSupportedException("Unsupported value type " + value.GetType());
ContainerAppContext.cs (5)
149throw new NotSupportedException($"The endpoint(s) {string.Join(", ", unsupportedEndpoints.Select(r => $"'{r.Endpoint.Name}'"))} specify an unsupported transport. The supported transports are 'http', 'http2', and 'tcp'."); 173throw new NotSupportedException("Multiple external endpoints are not supported"); 179throw new NotSupportedException("External non-HTTP(s) endpoints are not supported"); 188throw new NotSupportedException("HTTP(s) and TCP endpoints cannot be mixed"); 255throw new NotSupportedException("Container port is required for all endpoints");
ContainerAppJobContext.cs (1)
102throw new NotSupportedException("Azure Container App Jobs are not supported with Azure Functions.");
src\Shared\BicepFormattingHelpers.cs (1)
35_ => throw new NotSupportedException($"The format '{format}' is not supported. Supported formats are 'uri' (encodes a URI)")
Aspire.Hosting.Azure.AppService (7)
AzureAppServiceWebsiteContext.cs (6)
107throw new NotSupportedException($"The endpoint(s) {string.Join(", ", unsupportedEndpoints.Select(r => $"'{r.Endpoint.Name}'"))} on resource '{resource.Name}' specifies an unsupported scheme. Only http and https are supported in App Service."); 119throw new NotSupportedException("App Service does not support resources with multiple external endpoints."); 130throw new NotSupportedException($"The endpoint '{endpoint.Name}' on resource '{resource.Name}' is not external. App Service only supports external endpoints."); 309throw new NotSupportedException($"Unsupported value type {value.GetType()}"); 320_ => throw new NotSupportedException($"Unsupported value type {val.GetType()}") 874_ => throw new NotSupportedException($"Unsupported endpoint property {property}")
src\Shared\BicepFormattingHelpers.cs (1)
35_ => throw new NotSupportedException($"The format '{format}' is not supported. Supported formats are 'uri' (encodes a URI)")
Aspire.Hosting.Azure.CosmosDB (2)
AzureCosmosDBExtensions.cs (2)
319throw new NotSupportedException($"'{nameof(WithPartitionCount)}' does not work when using the Linux-based (vNext) Azure Cosmos DB emulator."); 485throw new NotSupportedException($"The Data Explorer endpoint is only available when using the Linux-based (vNext) Azure Cosmos DB emulator. Call '{nameof(RunAsEmulator)}' instead.");
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResourceExtensions.cs (1)
119var value = secretResource.Value as IManifestExpressionProvider ?? throw new NotSupportedException(
Aspire.Hosting.Azure.Kubernetes (2)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
640_ => throw new NotSupportedException(
src\Shared\BicepFormattingHelpers.cs (1)
35_ => throw new NotSupportedException($"The format '{format}' is not supported. Supported formats are 'uri' (encodes a URI)")
Aspire.Hosting.Blazor (1)
BlazorGatewayExtensions.cs (1)
112throw new NotSupportedException(
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
244throw new NotSupportedException("Command line args must be strings");
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
431throw new NotSupportedException($"Foundry hosted agent protocol '{protocol}' is not supported in run mode. Supported protocols: '{ResponsesProtocol}', '{InvocationsProtocol}'.");
src\Aspire.Hosting\Utils\FormattingHelpers.cs (1)
24_ => throw new NotSupportedException($"The format '{format}' is not supported. Supported formats are 'uri' (encodes a URI)")
Aspire.Hosting.Kubernetes (3)
KubernetesResource.cs (2)
383throw new NotSupportedException("Command line args must be strings"); 639throw new NotSupportedException($"Unsupported value type: {value.GetType().Name}");
Yaml\KubernetesManifestResourceYamlConverter.cs (1)
19throw new NotSupportedException($"{nameof(KubernetesManifestResource)} does not support YAML deserialization.");
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
968_ => throw new NotSupportedException($"Unsupported resource type: {expectedResourceType.Name}")
Aspire.Hosting.Radius (9)
Publishing\BicepPostProcessor.cs (4)
202_ => throw new NotSupportedException( 249throw new NotSupportedException("Null recipe parameter array elements are not supported."); 255throw new NotSupportedException( 272throw new NotSupportedException("Null recipe parameter values are not supported.");
Publishing\RadiusInfrastructureBuilder.cs (5)
1713throw new NotSupportedException( 1751throw new NotSupportedException("Recipe parameter values cannot contain cycles."); 1761throw new NotSupportedException( 1783throw new NotSupportedException("Recipe parameter values cannot contain cycles."); 1879_ => throw new NotSupportedException($"Unknown provider scope field '{reference.Field}'."),
Aspire.Hosting.Tests (10)
Backchannel\BackchannelContractTests.cs (1)
378throw new NotSupportedException($"{requestType.Name}.{property.Name} has unsupported test value type {property.PropertyType}.");
Dcp\KubernetesServiceTests.cs (1)
249=> throw new NotSupportedException("The kubeconfig tests only allocate a temp subdirectory.");
Pipelines\DistributedApplicationPipelineTests.cs (3)
402throw new NotSupportedException(exceptionMessage); 666throw new NotSupportedException("Test exception for stack trace"); 887throw new NotSupportedException(exceptionMessage);
ResourceNotificationTests.cs (5)
1701throw new NotSupportedException( 1750throw new NotSupportedException($"Cannot create a different value for single-value enum {type}."); 1761throw new NotSupportedException($"Cannot create a different value for {type}. Extend {nameof(CreateDifferentValue)}."); 1812?? throw new NotSupportedException($"Enum {type} has no values."); 1826?? throw new NotSupportedException($"Cannot create a value for {type}. Extend {nameof(CreateValue)}.");
Aspire.StackExchange.Redis (2)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\PropertyFetcher.cs (1)
119? throw new NotSupportedException(
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\TracerProviderBuilderExtensions.cs (1)
201throw new NotSupportedException("ConfigureRedisInstrumentation is not supported on the supplied builder type.");
datacollector (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
datacollector.arm64 (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
dotnet (2)
Commands\Test\MTP\TestApplication.cs (2)
668throw new NotSupportedException(string.Format(CliCommandStrings.CmdUnsupportedMessageRequestTypeException, request.GetType())); 787throw new NotSupportedException(string.Format(CliCommandStrings.CmdUnsupportedMessageRequestTypeException, request.GetType()));
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));
dotnet-user-jwts (2)
_generated\0\BindingExtensions.g.cs (2)
64throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 184throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
GenerateDocumentationAndConfigFiles (17)
Program.cs (1)
400=> throw e.Exception ?? new NotSupportedException(e.Message);
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
131public TypeLayout TypeLayout => throw new NotSupportedException("TypeLayout property is not supported on this symbol.");
ilc (10)
RdXmlRootProvider.cs (10)
36throw new NotSupportedException($"{libraryOrApplication.Name.LocalName} is not a supported top level Runtime Directive. Supported top level Runtime Directives are \"Library\" and \"Application\"."); 39throw new NotSupportedException($"The {libraryOrApplication.Name.LocalName} Runtime Directive does not support any attributes"); 50throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive."); 69throw new NotSupportedException($"\"{dynamicDegreeAttribute.Value}\" is not a supported value for the \"Dynamic\" attribute of the \"Assembly\" Runtime Directive. Supported values are \"Required All\"."); 85throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive."); 103throw new NotSupportedException($"\"{dynamicDegreeAttribute.Value}\" is not a supported value for the \"Dynamic\" attribute of the \"Type\" Runtime Directive. Supported values are \"Required All\"."); 112throw new NotSupportedException($"\"{marshalStructureDegreeAttribute.Value}\" is not a supported value for the \"MarshalStructure\" attribute of the \"Type\" Runtime Directive. Supported values are \"Required All\"."); 121throw new NotSupportedException($"\"{marshalDelegateDegreeAttribute.Value}\" is not a supported value for the \"MarshalDelegate\" attribute of the \"Type\" Runtime Directive. Supported values are \"Required All\"."); 134throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive."); 160throw new NotSupportedException($"\"{element.Name.LocalName}\" is not a supported Runtime Directive.");
ILCompiler.Compiler (35)
Compiler\BodySubstitutionParser.cs (1)
205throw new NotSupportedException(type.ToString());
Compiler\ObjectWriter\CodeView\CodeViewSymbolsBuilder.cs (1)
443throw new NotSupportedException("Unsupported relocation");
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (1)
97throw new NotSupportedException("Unsupported architecture");
Compiler\ObjectWriter\Dwarf\DwarfCie.cs (1)
110throw new NotSupportedException("Unsupported architecture");
Compiler\ObjectWriter\Dwarf\DwarfExpressionBuilder.cs (2)
232_ => throw new NotSupportedException($"Unsupported AMD64 register {regNum}") 246_ => throw new NotSupportedException($"Unsupported x86 register {regNum}")
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.cs (1)
205throw new NotSupportedException($"Error: C++/CLI is not supported: '{filePath}'");
src\runtime\src\coreclr\tools\Common\Compiler\HardwareIntrinsicHelpers.cs (3)
211_ => throw new NotSupportedException(((InstructionSet_X64)instructionSet).ToString()) 326_ => throw new NotSupportedException(((InstructionSet_ARM64)instructionSet).ToString()) 364_ => throw new NotSupportedException(((InstructionSet_RiscV64)instructionSet).ToString())
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (5)
76_ => throw new NotSupportedException("Unsupported architecture") 315_ => throw new NotSupportedException($"Unsupported relocation: {relocation.Type}") 338_ => throw new NotSupportedException($"Unsupported relocation: {relocation.Type}") 367_ => throw new NotSupportedException($"Unsupported relocation: {relocation.Type}") 374throw new NotSupportedException("Unsupported architecture");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (7)
67_ => throw new NotSupportedException("Unsupported architecture") 416_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 444_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 476_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 518_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 546_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 584_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (6)
96throw new NotSupportedException("Unsupported architecture"); 449throw new NotSupportedException("Unsupported relocation in debug section"); 815throw new NotSupportedException("A base symbol name must be provided for IMAGE_REL_BASED_ADDR32NB relocations."); 844throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type); 968throw new NotSupportedException("A base symbol name must be provided for IMAGE_REL_BASED_ADDR32NB relocations."); 997throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (2)
376throw new NotSupportedException("PEObjectWriter does not support undefined symbols"); 966throw new NotSupportedException($"Unsupported relocation: {reloc.Type}");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (1)
128throw new NotSupportedException($"Relocation type {reloc.Type} for symbol '{reloc.SymbolName}' at "
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (2)
376throw new NotSupportedException($"Unknown wasm mapping for type: {type.UnderlyingType.Category}"); 399_ => throw new NotSupportedException($"Unknown WasmValueType: {vt}")
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.cs (2)
1078throw new NotSupportedException("Marshalling an LPStruct argument not yet implemented"); 1090throw new NotSupportedException("Marshalling an LPStruct argument not yet implemented");
ILCompiler.Diagnostics (1)
PerfMapWriter.cs (1)
34throw new NotSupportedException(perfMapFormatVersion.ToString());
ILCompiler.MetadataTransform (2)
ILCompiler\Metadata\Transform.Scope.cs (2)
86throw new NotSupportedException("Multi-module assemblies"); 100throw new NotSupportedException("Multi-module assemblies");
ILCompiler.ReadyToRun (35)
Compiler\DependencyAnalysis\ReadyToRun\Target_X86\ImportThunk.cs (1)
46throw new NotSupportedException(_thunkKind.ToString() + " is not supported");
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (2)
49throw new System.NotSupportedException(nameof(useVirtualCall)); 58throw new System.NotSupportedException(nameof(helperId));
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
1312throw new NotSupportedException($"{ecmaField} ... {ecmaField.Module.Assembly}");
src\runtime\src\coreclr\tools\Common\Compiler\HardwareIntrinsicHelpers.cs (3)
211_ => throw new NotSupportedException(((InstructionSet_X64)instructionSet).ToString()) 326_ => throw new NotSupportedException(((InstructionSet_ARM64)instructionSet).ToString()) 364_ => throw new NotSupportedException(((InstructionSet_RiscV64)instructionSet).ToString())
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (5)
76_ => throw new NotSupportedException("Unsupported architecture") 315_ => throw new NotSupportedException($"Unsupported relocation: {relocation.Type}") 338_ => throw new NotSupportedException($"Unsupported relocation: {relocation.Type}") 367_ => throw new NotSupportedException($"Unsupported relocation: {relocation.Type}") 374throw new NotSupportedException("Unsupported architecture");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (7)
67_ => throw new NotSupportedException("Unsupported architecture") 416_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 444_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 476_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 518_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 546_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type) 584_ => throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (6)
96throw new NotSupportedException("Unsupported architecture"); 449throw new NotSupportedException("Unsupported relocation in debug section"); 815throw new NotSupportedException("A base symbol name must be provided for IMAGE_REL_BASED_ADDR32NB relocations."); 844throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type); 968throw new NotSupportedException("A base symbol name must be provided for IMAGE_REL_BASED_ADDR32NB relocations."); 997throw new NotSupportedException("Unknown relocation type: " + symbolicRelocation.Type);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (2)
376throw new NotSupportedException("PEObjectWriter does not support undefined symbols"); 966throw new NotSupportedException($"Unsupported relocation: {reloc.Type}");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (1)
835throw new NotSupportedException($"Relocation type {reloc.Type} not yet implemented");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
3597throw new NotSupportedException("runWithErrorTrap"); 3607throw new NotSupportedException("runWithSPMIErrorTrap");
src\runtime\src\coreclr\tools\Common\JitInterface\UnboxingMethodDesc.cs (1)
82throw new NotSupportedException("This method may not be stored as it is expected to only be used transiently in the JIT");
src\runtime\src\coreclr\tools\Common\JitInterface\WasmLowering.cs (2)
376throw new NotSupportedException($"Unknown wasm mapping for type: {type.UnderlyingType.Category}"); 399_ => throw new NotSupportedException($"Unknown WasmValueType: {vt}")
src\runtime\src\coreclr\tools\Common\TypeSystem\Interop\IL\Marshaller.cs (2)
1078throw new NotSupportedException("Marshalling an LPStruct argument not yet implemented"); 1090throw new NotSupportedException("Marshalling an LPStruct argument not yet implemented");
ILCompiler.RyuJit (3)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (2)
3597throw new NotSupportedException("runWithErrorTrap"); 3607throw new NotSupportedException("runWithSPMIErrorTrap");
src\runtime\src\coreclr\tools\Common\JitInterface\UnboxingMethodDesc.cs (1)
82throw new NotSupportedException("This method may not be stored as it is expected to only be used transiently in the JIT");
illink (6)
Microsoft.AspNetCore (23)
ConfigureHostBuilder.cs (5)
40throw new NotSupportedException($"Call {nameof(WebApplicationBuilder)}.{nameof(WebApplicationBuilder.Build)}() instead."); 77throw new NotSupportedException($"The application name changed from \"{previousApplicationName}\" to \"{_configuration[HostDefaults.ApplicationKey]}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 83throw new NotSupportedException($"The content root changed from \"{previousContentRoot}\" to \"{HostingPathResolver.ResolvePath(_configuration[HostDefaults.ContentRootKey])}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 88throw new NotSupportedException($"The environment changed from \"{previousEnvironment}\" to \"{_configuration[HostDefaults.EnvironmentKey]}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 119throw new NotSupportedException("ConfigureWebHost() is not supported by WebApplicationBuilder.Host. Use the WebApplication returned by WebApplicationBuilder.Build() instead.");
ConfigureWebHostBuilder.cs (17)
34throw new NotSupportedException($"Call {nameof(WebApplicationBuilder)}.{nameof(WebApplicationBuilder.Build)}() instead."); 57throw 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."); 62throw 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."); 68throw 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."); 73throw 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."); 78throw 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."); 83throw 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."); 129throw 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."); 135throw 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."); 141throw 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."); 147throw new NotSupportedException($"The environment changed from \"{previousEnvironment}\" to \"{value}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 153throw 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."); 159throw 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."); 170throw new NotSupportedException("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead."); 175throw new NotSupportedException("Configure() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead."); 180throw new NotSupportedException("UseStartup() is not supported by WebApplicationBuilder.WebHost. Use the WebApplication returned by WebApplicationBuilder.Build() instead."); 185throw 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\aspnetcore\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)
410?? throw new NotSupportedException($"Negotiate authentication requires a server that supports {nameof(IConnectionItemsFeature)} like Kestrel."); 428?? throw new NotSupportedException($"Negotiate authentication requires a server that supports {nameof(IConnectionCompleteFeature)} like Kestrel.");
Microsoft.AspNetCore.Components (2)
NavigationManager.cs (1)
569=> throw new NotSupportedException($"To support navigation locks, {GetType().Name} must override {nameof(SetNavigationLockState)}");
RenderTree\Renderer.cs (1)
1374throw 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)
135throw new NotSupportedException($"The authorization data specifies an authentication scheme with value '{entry.AuthenticationSchemes}'. Authentication schemes cannot be specified for components.");
Microsoft.AspNetCore.Components.Endpoints (1)
CacheView\HybridCacheViewStore.cs (1)
57throw new NotSupportedException(
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)
386_ => 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)
314_ => throw new NotSupportedException($"Cannot create a component of type '{componentType}' because its render mode '{renderMode}' is not supported by interactive server-side rendering."),
src\aspnetcore\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.Web (2)
Forms\InputCheckbox.cs (1)
54=> 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 (6)
Hosting\WebAssemblyHostEnvironmentAdapter.cs (4)
21set => throw new NotSupportedException("Setting the environment name is not supported in WebAssembly."); 27set => throw new NotSupportedException("Setting the application name is not supported in WebAssembly."); 33set => throw new NotSupportedException("Setting the content root path is not supported in WebAssembly."); 39set => throw new NotSupportedException("Setting the content root file provider is not supported in WebAssembly.");
Rendering\WebAssemblyRenderer.cs (1)
248_ => throw new NotSupportedException($"Cannot create a component of type '{componentType}' because its render mode '{renderMode}' is not supported by WebAssembly rendering."),
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
65=> throw new NotSupportedException("Synchronous reads are not supported.");
Microsoft.AspNetCore.Components.WebView (1)
src\aspnetcore\src\Components\Shared\src\PullFromJSDataStream.cs (1)
65=> throw new NotSupportedException("Synchronous reads are not supported.");
Microsoft.AspNetCore.DataProtection (1)
Error.cs (1)
108return new NotSupportedException(Resources.XmlKeyManager_DoesNotSupportKeyDeletion);
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (3)
90throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 114throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 369throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.AspNetCore.HeaderParsing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
95throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 227throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.AspNetCore.Hosting (4)
GenericHost\GenericWebHostBuilder.cs (2)
232throw new NotSupportedException($"{typeof(IStartup)} isn't supported"); 236throw new NotSupportedException($"ConfigureServices returning an {typeof(IServiceProvider)} isn't supported.");
GenericHost\HostingStartupWebHostBuilder.cs (1)
29throw new NotSupportedException($"Building this implementation of {nameof(IWebHostBuilder)} is not supported.");
GenericHost\WebHostBuilderBase.cs (1)
32throw 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)
72set => 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)
723throw new NotSupportedException($"The by reference parameter '{attribute} {TypeNameHelper.GetTypeDisplayName(parameter.ParameterType, fullName: false)} {parameter.Name}' is not supported."); 770throw new NotSupportedException( 784throw new NotSupportedException( 809throw new NotSupportedException( 829throw new NotSupportedException( 2700return new NotSupportedException($"Unsupported return type: {TypeNameHelper.GetTypeDisplayName(returnType)}");
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\aspnetcore\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.Identity (6)
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."),
Passkeys\CredentialPublicKey.cs (1)
186COSEEllipticCurve.Ed448 => throw new NotSupportedException("OKP type curves not supported."),
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)
114throw 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.Testing (1)
WebApplicationFactory.cs (1)
92throw new NotSupportedException(Resources.TestServerNotSupportedWhenUsingKestrel);
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchema.cs (1)
53throw new NotSupportedException("OpenApiJsonSchema serialization is not supported.");
Microsoft.AspNetCore.OpenApi.SourceGenerators (2)
src\aspnetcore\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.Razor.Utilities.Shared (1)
Utilities\Hashing\NonCryptographicHashAlgorithm.cs (1)
347throw new NotSupportedException("GetHashCode not supported");
Microsoft.AspNetCore.ResponseCaching (4)
src\aspnetcore\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); 417throw new NotSupportedException(Resources.Exception_NoSeek); 422throw 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.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)
533throw new NotSupportedException(CoreStrings.Http2NoTlsAlpn); 537throw new NotSupportedException(CoreStrings.Http2NoTlsWin81); 569throw new NotSupportedException($"The {nameof(HttpsConnectionAdapterOptions.OnAuthenticate)} callback is not supported with HTTP/3.");
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
DirectTlsTransportFactory.cs (2)
66throw new NotSupportedException( 83throw new NotSupportedException(
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.SignalR.Core (3)
Internal\DefaultHubDispatcher.cs (3)
284throw new NotSupportedException($"Received unsupported message: {hubMessage}"); 900throw new NotSupportedException($"Method '{methodInfo.Name}' is a generic method which is not supported on a Hub."); 909throw new NotSupportedException($"Duplicate definitions of '{methodName}'. Overloading is not supported.");
Microsoft.AspNetCore.SignalR.Specification.Tests (5)
src\aspnetcore\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.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 (27)
BackEnd\Components\Communications\TaskHostNodeManager.cs (7)
49=> throw new NotSupportedException("not used"); 58throw new NotSupportedException("not used"); 128throw new NotSupportedException("not used"); 137throw new NotSupportedException("not used"); 148throw new NotSupportedException("not used"); 158throw new NotSupportedException("not used"); 168throw new NotSupportedException("not used");
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
938throw new NotSupportedException(
Instance\ImmutableProjectCollections\ImmutableProjectMetadataCollectionConverter.cs (1)
60set => throw new NotSupportedException("Cannot set value in an immutable collection.");
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (3)
180throw new NotSupportedException(text); 263throw new NotSupportedException( 287throw 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)
629_ => throw new NotSupportedException(Convert.ToString(item.Value))
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.Build.Framework (8)
TaskItem_T.cs (2)
95set => throw new NotSupportedException("TaskItem<T> ItemSpec is read-only. Create a new instance to change the value."); 130set => throw new NotSupportedException("TaskItem<T> EvaluatedIncludeEscaped is read-only. Create a new instance to change the value.");
Utilities\FileMatcher.cs (6)
117_ => throw new NotSupportedException(CacheProfile.ToString()), 2545_ => throw new NotSupportedException(selection.Driver.ToString()), 3035throw new NotSupportedException(action.ToString()); 3092throw new NotSupportedException(excludeAction.ToString()); 3774throw new NotSupportedException(action.ToString()); 3824throw new NotSupportedException(excludeAction.ToString());
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\ResolveAssemblyReference.cs (1)
3420throw new NotSupportedException(
ResourceHandling\MSBuildResXReader.cs (1)
217throw new NotSupportedException(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("GenerateResource.MimeTypeNotSupportedOnCore", name, resxFilename, mimetype));
Microsoft.Build.Tasks.Git (4)
GitDataReader\GitConfig.cs (2)
84throw new NotSupportedException(string.Format(Resources.UnsupportedRepositoryVersion, versionStr, SupportedGitRepoFormatVersion)); 95throw new NotSupportedException(string.Format(
GitDataReader\GitEnvironment.cs (2)
76throw new NotSupportedException(string.Format(Resources.ValueOfIsNotValidConfigurationScope, GitRepositoryConfigurationScopeName, configurationScope)); 154=> HomeDirectory ?? throw new NotSupportedException(
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\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.CodeAnalysis.Analyzers (16)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
131public TypeLayout TypeLayout => throw new NotSupportedException("TypeLayout property is not supported on this symbol.");
Microsoft.CodeAnalysis.AnalyzerUtilities (53)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
88throw new NotSupportedException("Use SetAbstactValueForEntities API");
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (37)
3879throw new NotSupportedException($"'{nameof(IUsingOperation)}' must have been lowered in the CFG"); 3885throw new NotSupportedException($"'{nameof(IWhileLoopOperation)}' must have been lowered in the CFG"); 3891throw new NotSupportedException($"'{nameof(IForEachLoopOperation)}' must have been lowered in the CFG"); 3897throw new NotSupportedException($"'{nameof(IForLoopOperation)}' must have been lowered in the CFG"); 3903throw new NotSupportedException($"'{nameof(IForToLoopOperation)}' must have been lowered in the CFG"); 3909throw new NotSupportedException($"'{nameof(ICoalesceOperation)}' must have been lowered in the CFG"); 3915throw new NotSupportedException($"'{nameof(IConditionalOperation)}' must have been lowered in the CFG"); 3921throw new NotSupportedException($"'{nameof(IConditionalAccessOperation)}' must have been lowered in the CFG"); 3927throw new NotSupportedException($"'{nameof(IConditionalAccessInstanceOperation)}' must have been lowered in the CFG"); 3933throw new NotSupportedException($"'{nameof(IThrowOperation)}' must have been lowered in the CFG"); 3939throw new NotSupportedException($"'{nameof(IVariableDeclarationOperation)}' must have been lowered in the CFG"); 3945throw new NotSupportedException($"'{nameof(IVariableDeclarationOperation)}' must have been lowered in the CFG"); 3951throw new NotSupportedException($"'{nameof(IVariableDeclaratorOperation)}' must have been lowered in the CFG"); 3957throw new NotSupportedException($"'{nameof(ITryOperation)}' must have been lowered in the CFG"); 3963throw new NotSupportedException($"'{nameof(ICatchClauseOperation)}' must have been lowered in the CFG"); 3969throw new NotSupportedException($"'{nameof(ILockOperation)}' must have been lowered in the CFG"); 3975throw new NotSupportedException($"'{nameof(IBranchOperation)}' must have been lowered in the CFG"); 3981throw new NotSupportedException($"'{nameof(ILabeledOperation)}' must have been lowered in the CFG"); 3987throw new NotSupportedException($"'{nameof(ISwitchOperation)}' must have been lowered in the CFG"); 3993throw new NotSupportedException($"'{nameof(ISwitchCaseOperation)}' must have been lowered in the CFG"); 3999throw new NotSupportedException($"'{nameof(IDefaultCaseClauseOperation)}' must have been lowered in the CFG"); 4005throw new NotSupportedException($"'{nameof(IPatternCaseClauseOperation)}' must have been lowered in the CFG"); 4011throw new NotSupportedException($"'{nameof(IRangeCaseClauseOperation)}' must have been lowered in the CFG"); 4017throw new NotSupportedException($"'{nameof(IRelationalCaseClauseOperation)}' must have been lowered in the CFG"); 4023throw new NotSupportedException($"'{nameof(ISingleValueCaseClauseOperation)}' must have been lowered in the CFG"); 4029throw new NotSupportedException($"'{nameof(IObjectOrCollectionInitializerOperation)}' must have been lowered in the CFG"); 4035throw new NotSupportedException($"'{nameof(IMemberInitializerOperation)}' must have been lowered in the CFG"); 4041throw new NotSupportedException($"'{nameof(IBlockOperation)}' must have been lowered in the CFG"); 4047throw new NotSupportedException($"'{nameof(IVariableInitializerOperation)}' must have been lowered in the CFG"); 4053throw new NotSupportedException($"'{nameof(IFieldInitializerOperation)}' must have been lowered in the CFG"); 4059throw new NotSupportedException($"'{nameof(IParameterInitializerOperation)}' must have been lowered in the CFG"); 4065throw new NotSupportedException($"'{nameof(IPropertyInitializerOperation)}' must have been lowered in the CFG"); 4071throw new NotSupportedException($"'{nameof(IEndOperation)}' must have been lowered in the CFG"); 4077throw new NotSupportedException($"'{nameof(IEmptyOperation)}' must have been lowered in the CFG"); 4083throw new NotSupportedException($"'{nameof(INameOfOperation)}' must have been lowered in the CFG"); 4088throw new NotSupportedException($"'{nameof(IAnonymousFunctionOperation)}' must have been lowered in the CFG"); 4094throw new NotSupportedException($"'{nameof(ILocalFunctionOperation)}' must have been lowered in the CFG");
src\roslyn\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 (13)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
131public TypeLayout TypeLayout => throw new NotSupportedException("TypeLayout property is not supported on this symbol.");
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ReferenceManager.cs (2)
89throw new NotSupportedException(string.Format(CSharpResources.CantReferenceCompilationOf, compilationReference.GetType(), "C#")); 291throw new NotSupportedException(string.Format(CodeAnalysisResources.ChangingVersionOfAssemblyReferenceIsNotAllowedDuringDebugging, identity, symbol.Identity.Version));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\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.Features (2)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
1014_ => throw new NotSupportedException("SyntaxNode expected to be MethodDeclarationSyntax or LocalFunctionStatementSyntax."),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (1)
76throw new System.NotSupportedException("Unexpected name kind: " + expression.Kind().ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3526_ => throw new NotSupportedException("Unsupported SpecialType"),
src\roslyn\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.Extensions.Package (10)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
Microsoft.CodeAnalysis.Features (4)
ChangeSignature\AbstractChangeSignatureService.cs (1)
384throw new NotSupportedException(WorkspaceExtensionsResources.Document_does_not_support_syntax_trees);
CodeFixes\Service\CodeFixService.cs (1)
356return solution.GetDocument(document.Id) ?? throw new NotSupportedException(FeaturesResources.Removal_of_document_not_supported);
EditAndContinue\EditAndContinueDebugInfoReader.cs (2)
119=> throw new NotSupportedException("Windows PDB does not support compilation options."); 191throw new NotSupportedException($"Encoding '{encodingName}' not supported: {e.Message}");
Microsoft.CodeAnalysis.NetAnalyzers (40)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RoslynHashCode.cs (2)
434public override readonly int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 438public override readonly bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
87throw new NotSupportedException("Use SetAbstactValueForEntities API");
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (37)
3876throw new NotSupportedException($"'{nameof(IUsingOperation)}' must have been lowered in the CFG"); 3882throw new NotSupportedException($"'{nameof(IWhileLoopOperation)}' must have been lowered in the CFG"); 3888throw new NotSupportedException($"'{nameof(IForEachLoopOperation)}' must have been lowered in the CFG"); 3894throw new NotSupportedException($"'{nameof(IForLoopOperation)}' must have been lowered in the CFG"); 3900throw new NotSupportedException($"'{nameof(IForToLoopOperation)}' must have been lowered in the CFG"); 3906throw new NotSupportedException($"'{nameof(ICoalesceOperation)}' must have been lowered in the CFG"); 3912throw new NotSupportedException($"'{nameof(IConditionalOperation)}' must have been lowered in the CFG"); 3918throw new NotSupportedException($"'{nameof(IConditionalAccessOperation)}' must have been lowered in the CFG"); 3924throw new NotSupportedException($"'{nameof(IConditionalAccessInstanceOperation)}' must have been lowered in the CFG"); 3930throw new NotSupportedException($"'{nameof(IThrowOperation)}' must have been lowered in the CFG"); 3936throw new NotSupportedException($"'{nameof(IVariableDeclarationOperation)}' must have been lowered in the CFG"); 3942throw new NotSupportedException($"'{nameof(IVariableDeclarationOperation)}' must have been lowered in the CFG"); 3948throw new NotSupportedException($"'{nameof(IVariableDeclaratorOperation)}' must have been lowered in the CFG"); 3954throw new NotSupportedException($"'{nameof(ITryOperation)}' must have been lowered in the CFG"); 3960throw new NotSupportedException($"'{nameof(ICatchClauseOperation)}' must have been lowered in the CFG"); 3966throw new NotSupportedException($"'{nameof(ILockOperation)}' must have been lowered in the CFG"); 3972throw new NotSupportedException($"'{nameof(IBranchOperation)}' must have been lowered in the CFG"); 3978throw new NotSupportedException($"'{nameof(ILabeledOperation)}' must have been lowered in the CFG"); 3984throw new NotSupportedException($"'{nameof(ISwitchOperation)}' must have been lowered in the CFG"); 3990throw new NotSupportedException($"'{nameof(ISwitchCaseOperation)}' must have been lowered in the CFG"); 3996throw new NotSupportedException($"'{nameof(IDefaultCaseClauseOperation)}' must have been lowered in the CFG"); 4002throw new NotSupportedException($"'{nameof(IPatternCaseClauseOperation)}' must have been lowered in the CFG"); 4008throw new NotSupportedException($"'{nameof(IRangeCaseClauseOperation)}' must have been lowered in the CFG"); 4014throw new NotSupportedException($"'{nameof(IRelationalCaseClauseOperation)}' must have been lowered in the CFG"); 4020throw new NotSupportedException($"'{nameof(ISingleValueCaseClauseOperation)}' must have been lowered in the CFG"); 4026throw new NotSupportedException($"'{nameof(IObjectOrCollectionInitializerOperation)}' must have been lowered in the CFG"); 4032throw new NotSupportedException($"'{nameof(IMemberInitializerOperation)}' must have been lowered in the CFG"); 4038throw new NotSupportedException($"'{nameof(IBlockOperation)}' must have been lowered in the CFG"); 4044throw new NotSupportedException($"'{nameof(IVariableInitializerOperation)}' must have been lowered in the CFG"); 4050throw new NotSupportedException($"'{nameof(IFieldInitializerOperation)}' must have been lowered in the CFG"); 4056throw new NotSupportedException($"'{nameof(IParameterInitializerOperation)}' must have been lowered in the CFG"); 4062throw new NotSupportedException($"'{nameof(IPropertyInitializerOperation)}' must have been lowered in the CFG"); 4068throw new NotSupportedException($"'{nameof(IEndOperation)}' must have been lowered in the CFG"); 4074throw new NotSupportedException($"'{nameof(IEmptyOperation)}' must have been lowered in the CFG"); 4080throw new NotSupportedException($"'{nameof(INameOfOperation)}' must have been lowered in the CFG"); 4085throw new NotSupportedException($"'{nameof(IAnonymousFunctionOperation)}' must have been lowered in the CFG"); 4091throw new NotSupportedException($"'{nameof(ILocalFunctionOperation)}' must have been lowered in the CFG");
Microsoft.CodeAnalysis.Razor.Compiler (18)
Language\CodeGeneration\IntermediateNodeWriter.cs (12)
373throw new NotSupportedException("This writer does not support components."); 378throw new NotSupportedException("This writer does not support components."); 383throw new NotSupportedException("This writer does not support components."); 388throw new NotSupportedException("This writer does not support components."); 393throw new NotSupportedException("This writer does not support components."); 398throw new NotSupportedException("This writer does not support components."); 403throw new NotSupportedException("This writer does not support components."); 408throw new NotSupportedException("This writer does not support components."); 413throw new NotSupportedException("This writer does not support components."); 418throw new NotSupportedException("This writer does not support components."); 423throw new NotSupportedException("This writer does not support components."); 428throw new NotSupportedException("This writer does not support components.");
Language\DocumentationDescriptor.cs (2)
74_ => throw new NotSupportedException(Resources.FormatUnknown_documentation_id_0(id)) 133var id => throw new NotSupportedException(Resources.FormatUnknown_documentation_id_0(id))
Language\Intermediate\IntermediateNode.cs (1)
115=> throw new NotSupportedException($"{GetType().Name} does not support cloning.");
Language\Intermediate\IntermediateNodeCollection.cs (1)
57throw new NotSupportedException("Collection is read-only.");
Language\RazorDiagnostic.cs (1)
78throw new NotSupportedException(SR.FormatUnsupported_type_0(enumType.FullName));
SourceGenerators\SourceGeneratorProjectItem.cs (1)
56=> throw new NotSupportedException("This API should not be invoked. We should instead be relying on " +
Microsoft.CodeAnalysis.ResxSourceGenerator (15)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\roslyn\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\roslyn\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.Scripting (1)
Hosting\AssemblyLoader\InteractiveAssemblyLoaderException.cs (1)
14: base(message)
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)
381=> throw new NotSupportedException(GetType().FullName);
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
131public TypeLayout TypeLayout => throw new NotSupportedException("TypeLayout property is not supported on this symbol.");
Workspace\Host\HostWorkspaceServices.cs (1)
142=> throw new NotSupportedException(string.Format(WorkspacesResources.The_language_0_is_not_supported, languageName));
Workspace\Solution\ProjectState.cs (2)
776throw new NotSupportedException(WorkspacesResources.Removing_compilation_options_is_not_supported); 794throw new NotSupportedException(WorkspacesResources.Removing_parse_options_is_not_supported);
Workspace\Solution\SolutionCompilationState.cs (2)
586throw new NotSupportedException(WorkspacesResources.Changing_project_language_is_not_supported); 591throw 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_Editor.cs (1)
156throw new NotSupportedException(WorkspacesResources.This_workspace_does_not_support_opening_and_closing_documents);
Workspace\Workspace.cs (23)
1657throw new NotSupportedException(WorkspacesResources.Removing_projects_is_not_supported); 1662throw new NotSupportedException(WorkspacesResources.Adding_projects_is_not_supported); 1667throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1672throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 1712throw new NotSupportedException(WorkspacesResources.Changing_compilation_options_is_not_supported); 1721throw new NotSupportedException(WorkspacesResources.Changing_parse_options_is_not_supported); 1726throw new NotSupportedException(WorkspacesResources.Adding_documents_is_not_supported); 1731throw new NotSupportedException(WorkspacesResources.Removing_documents_is_not_supported); 1737throw new NotSupportedException(WorkspacesResources.Changing_document_property_is_not_supported); 1744throw new NotSupportedException(WorkspacesResources.Changing_documents_is_not_supported); 1755throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 1761throw new NotSupportedException(WorkspacesResources.Adding_additional_documents_is_not_supported); 1766throw new NotSupportedException(WorkspacesResources.Removing_additional_documents_is_not_supported); 1771throw new NotSupportedException(WorkspacesResources.Changing_additional_documents_is_not_supported); 1776throw new NotSupportedException(WorkspacesResources.Adding_analyzer_config_documents_is_not_supported); 1781throw new NotSupportedException(WorkspacesResources.Removing_analyzer_config_documents_is_not_supported); 1786throw new NotSupportedException(WorkspacesResources.Changing_analyzer_config_documents_is_not_supported); 1791throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1796throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1801throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1806throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1811throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1816throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported);
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.Diagnostics.DataContractReader.Contracts (7)
Contracts\CallingConvention\CallingConvention_1.cs (1)
328_ => throw new NotSupportedException($"Unsupported architecture: {arch}"),
Contracts\Debugger\Debugger_1.cs (1)
404throw new NotSupportedException($"IntegerArgPlacer.PlaceArgs does not support architecture '{arch}'.");
Contracts\Debugger\StackPusher.cs (1)
61_ => throw new NotSupportedException($"StackPusher does not know the stack alignment for architecture '{arch}'."),
Contracts\ExecutionManager\Helpers\UnwindDataSize.cs (1)
102throw new NotSupportedException($"GetUnwindDataSize not supported for architecture: {arch}");
Contracts\GCInfo\X86\GCInfo.cs (2)
103throw new NotSupportedException($"GCInfo version {gcInfoVersion} is not supported. Minimum supported version is {MINIMUM_SUPPORTED_GCINFO_VERSION}."); 107throw new NotSupportedException($"GCInfo version {gcInfoVersion} is not supported. Maximum supported version is {MAXIMUM_SUPPORTED_GCINFO_VERSION}.");
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
580var arch => throw new NotSupportedException(
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\IpcEndpointConfig.cs (1)
78throw new NotSupportedException($"{transportType} not supported.");
Microsoft.DiaSymReader (3)
Utilities\ComStreamWrapper.cs (2)
207throw new NotSupportedException("IStream implementation cannot be marshalled"); 215throw new NotSupportedException("IStream cannot be marshalled to managed");
Utilities\UnsafeComStreamWrapper.cs (1)
65public void Clone(out IStream ppstm) => throw new NotSupportedException("Clone is not supported in this version.");
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixBuildWixpack.cs (2)
961throw new NotSupportedException($"Unsupported condition: {condition}"); 1010throw new NotSupportedException($"Unsupported operator: {op}");
Microsoft.DotNet.Cli.Definitions (1)
Help\HelpBuilder.cs (1)
201throw new NotSupportedException($"Symbol type {symbol.GetType()} is not supported.");
Microsoft.DotNet.HotReload.Watch (3)
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\NamedPipeContract.cs (3)
78throw new NotSupportedException($"Unsupported version {version}."); 156throw new NotSupportedException($"Unsupported version {version}."); 210throw new NotSupportedException($"Unsupported version {version}.");
Microsoft.Extensions.AI.Evaluation.Quality (1)
EvaluationMetricExtensions.cs (1)
171throw 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."), 178throw new NotSupportedException( 256throw new NotSupportedException(
Microsoft.Extensions.AmbientMetadata.Application (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
100throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 181throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.AmbientMetadata.Build (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
94throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 219throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
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)
676throw new NotSupportedException("Not implemented: " + entry.Priority);
Microsoft.Extensions.Compliance.Redaction (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
86throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 157throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.Compliance.Testing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
86throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 152throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.DataIngestion.Markdig (4)
MarkdownParser.cs (4)
87_ => throw new NotSupportedException($"Block type '{block.GetType().Name}' is not supported.") 114_ => throw new NotSupportedException($"Block type '{block.GetType().Name}' is not supported.") 237throw new NotSupportedException($"Inline type '{inline.GetType().Name}' is not supported."); 268_ => throw new NotSupportedException($"Cells with {tableCell.Count} elements are not supported.")
Microsoft.Extensions.DataIngestion.MarkItDown (4)
parent\Microsoft.Extensions.DataIngestion.Markdig\MarkdownParser.cs (4)
87_ => throw new NotSupportedException($"Block type '{block.GetType().Name}' is not supported.") 114_ => throw new NotSupportedException($"Block type '{block.GetType().Name}' is not supported.") 237throw new NotSupportedException($"Inline type '{inline.GetType().Name}' is not supported."); 268_ => throw new NotSupportedException($"Cells with {tableCell.Count} elements are not supported.")
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteVisitor.cs (1)
54throw new NotSupportedException(SR.Format(SR.CallSiteTypeNotSupported, callSite.GetType()));
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
293throw new NotSupportedException(SR.GetCaptureDisposableNotSupported);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
89throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 159throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
86throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 252throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.Diagnostics.Probes (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
117throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 234throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
103throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 264throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.Diagnostics.Testing (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
116throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 1512throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.DotNetDeltaApplier (3)
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\NamedPipeContract.cs (3)
78throw new NotSupportedException($"Unsupported version {version}."); 156throw new NotSupportedException($"Unsupported version {version}."); 210throw new NotSupportedException($"Unsupported version {version}.");
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.Hosting.Abstractions (1)
IHostBuilder.cs (1)
66throw new NotSupportedException($"The type '{GetType()}' does not support '{nameof(UseServiceProviderFactory)}' with a context-based factory. Override this method to provide an implementation.");
Microsoft.Extensions.Http.Diagnostics (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
89throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 159throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Logging\Internal\HttpClientLogger.cs (3)
128=> throw new NotSupportedException(SyncLoggingExceptionMessage); 131=> throw new NotSupportedException(SyncLoggingExceptionMessage); 134=> 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.Resilience (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
138throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 637throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.Identity.Core (20)
RoleManager.cs (2)
112throw new NotSupportedException(Resources.StoreNotIQueryableRoleStore); 442throw new NotSupportedException(Resources.StoreNotIRoleClaimStore);
UserManager.cs (18)
410throw new NotSupportedException(Resources.StoreNotIQueryableUserStore); 1882throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 1921throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 1988throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 2025throw new NotSupportedException(Resources.FormatNoTokenProvider(nameof(TUser), tokenProvider)); 2768throw new NotSupportedException(Resources.StoreNotIUserTwoFactorStore); 2778throw new NotSupportedException(Resources.StoreNotIUserLockoutStore); 2787throw new NotSupportedException(Resources.StoreNotIUserEmailStore); 2802throw new NotSupportedException(Resources.StoreNotIUserPhoneNumberStore); 2858throw new NotSupportedException(Resources.StoreNotIUserRoleStore); 2880throw new NotSupportedException(Resources.StoreNotIUserLoginStore); 2890throw new NotSupportedException(Resources.StoreNotIUserSecurityStampStore); 2900throw new NotSupportedException(Resources.StoreNotIUserClaimStore); 3019throw new NotSupportedException(Resources.StoreNotIUserAuthenticatorKeyStore); 3029throw new NotSupportedException(Resources.StoreNotIUserTwoFactorRecoveryCodeStore); 3039throw new NotSupportedException(Resources.StoreNotIUserAuthenticationTokenStore); 3049throw new NotSupportedException(Resources.StoreNotIUserPasswordStore); 3059throw new NotSupportedException(Resources.StoreNotIUserPasskeyStore);
Microsoft.Extensions.Telemetry (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (3)
127throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 181throw new NotSupportedException($"Unable to bind to type '{type}': generator did not detect the type as input."); 469throw new NotSupportedException($"The configuration binding source generator does not support 'BinderOptions.BindNonPublicProperties'.");
Microsoft.Extensions.Validation.ValidationsGenerator (2)
src\aspnetcore\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.Extensions.VectorData.Abstractions (7)
ProviderServices\CollectionModelBuilder.cs (7)
143throw new NotSupportedException($"Type '{recordType.Name}' must have a parameterless constructor."); 478throw new NotSupportedException($"Multiple key properties found on {TypeMessage()}the provided {nameof(VectorStoreCollectionDefinition)} while only one is supported."); 483throw new NotSupportedException($"No key property found on {TypeMessage()}the provided {nameof(VectorStoreCollectionDefinition)} while at least one is required."); 488throw new NotSupportedException($"No vector property found on {TypeMessage()}the provided {nameof(VectorStoreCollectionDefinition)} while at least one is required."); 493throw new NotSupportedException($"Multiple vector properties found on {TypeMessage()}the provided {nameof(VectorStoreCollectionDefinition)} while only one is supported."); 529throw new NotSupportedException( 539throw new NotSupportedException(
Microsoft.Extensions.VectorData.ConformanceTests (1)
Support\TestStore.cs (1)
85_ => throw new NotSupportedException($"Unsupported key of type '{typeof(TKey).Name}', override {nameof(TestStore)}.{nameof(this.GenerateKey)}")
Microsoft.Gen.MetadataExtractor (1)
MetricDefinitionEmitter.cs (1)
152throw new NotSupportedException($"Report for metric kind: '{metricMethod.Kind}' is not supported.");
Microsoft.Gen.Metrics (2)
Emitter.cs (1)
188throw new NotSupportedException($"Instrument type '{metricMethod.InstrumentKind}' is not supported to generate metric");
MetricFactoryEmitter.cs (1)
134_ => 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)
241throw new NotSupportedException("JSRuntime subclasses are responsible for implementing byte array transfer to JS."); 280throw new NotSupportedException("The current JavaScript runtime does not support reading data streams."); 331throw 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)
153throw new NotSupportedException("TensorFlow type not supported.");
Microsoft.ML.Tokenizers (9)
Model\SentencePieceTokenizer.cs (5)
656throw new NotSupportedException("The tokenizer.json model has a null 'unk_id' but does not enable 'byte_fallback'; a Unigram model without an unknown token is only supported when byte_fallback is enabled."); 891throw new NotSupportedException("tokenizer.json post_processor templates with more than one sequence are not supported."); 912throw new NotSupportedException("tokenizer.json post_processor template does not contain a sequence placeholder."); 1209throw new NotSupportedException( 1245throw new NotSupportedException(
Model\TiktokenTokenizer.cs (2)
1169throw new NotSupportedException($"The model '{modelName}' is not supported."); 1236throw new NotSupportedException($"The model '{modelName ?? modelEncoding.ToString()}' is not supported.");
Normalizer\SentencePieceNormalizationStep.cs (2)
204throw new NotSupportedException( 452throw new NotSupportedException("Replace normalizer requires a String or Regex pattern.");
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.NET.Build.Containers (5)
ImageBuilder.cs (1)
245throw new NotSupportedException(
ImageIndexGenerator.cs (1)
44throw new NotSupportedException(string.Format(Strings.UnsupportedMediaType, manifestMediaType));
LocalDaemons\ContainerArchive.cs (1)
49throw new NotSupportedException(Resource.FormatString(nameof(Strings.UnsupportedMediaTypeForTarball), image.ManifestMediaType));
LocalDaemons\KnownLocalRegistryTypes.cs (1)
44_ => throw new NotSupportedException(
Tasks\CreateNewImage.cs (1)
154throw new NotSupportedException(Resource.GetString(nameof(Strings.ImagePullNotSupported)));
Microsoft.NET.HostModel (2)
MachO\Enums\HashType.cs (2)
24_ => throw new NotSupportedException($"HashType {hashType} is not supported.") 33_ => throw new NotSupportedException($"HashType {hashType} is not supported.")
Microsoft.Private.Windows.Core (10)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
373throw new NotSupportedException($"{nameof(T)} is not primitive.");
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
517exception = new NotSupportedException(classInfo.GetString("Message"));
System\Private\Windows\Ole\BinaryFormatUtilities.cs (5)
58throw new NotSupportedException(SR.BinaryFormatterNotSupported); 64throw new NotSupportedException(SR.BinaryFormatter_NotSupported_InClipboardOrDragDrop); 195throw new NotSupportedException(string.Format(SR.ClipboardOrDragDrop_UseTypedAPI, typeof(T).FullName)); 201throw new NotSupportedException(SR.BinaryFormatterNotSupported); 207throw new NotSupportedException(SR.BinaryFormatter_NotSupported_InClipboardOrDragDrop);
System\Private\Windows\Ole\ClipboardCore.cs (1)
327throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
534throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\TypeBinder.cs (1)
98: throw new NotSupportedException(string.Format(
Microsoft.SourceLink.GitWeb (2)
TranslateRepositoryUrls.cs (2)
29=> throw new NotSupportedException(string.Format(Resources.RepositoryUrlIsNotSupportedByProvider, "GIT")); 32=> throw new NotSupportedException(string.Format(Resources.RepositoryUrlIsNotSupportedByProvider, "HTTP"));
Microsoft.TemplateEngine.Cli (10)
ChoiceTemplateParameter.cs (1)
100throw new NotSupportedException("The method should be only used with option.");
CliTemplateParameter.cs (1)
319throw new NotSupportedException("The method should be only used with option.");
Commands\create\InvalidTemplateOptionResult.cs (1)
115throw new NotSupportedException($"Method is not invokable when {nameof(TemplateOption)} is null");
TemplateResolution\TemplateGroupMatchInfo.cs (7)
81throw new NotSupportedException("Template info matches were not evaluated."); 100throw new NotSupportedException("Template info matches were not evaluated."); 119throw new NotSupportedException("Template info matches were not evaluated."); 123throw new NotSupportedException("Template parameters matches were not evaluated."); 142throw new NotSupportedException("Template info matches were not evaluated."); 146throw new NotSupportedException("Template parameters matches were not evaluated."); 264throw new NotSupportedException("Template parameter matches were not evaluated.");
Microsoft.TemplateEngine.Edge (4)
DefaultPathInfo.cs (1)
98?? throw new NotSupportedException("HOME or USERPROFILE environment variable is not defined, the environment is not supported");
EngineEnvironmentSettings.cs (1)
59public ISettingsLoader SettingsLoader => throw new NotSupportedException("ISettingsLoader is no longer supported, see Obsolete message for details.");
Mount\FileSystem\FileSystemDirectory.cs (1)
32throw new NotSupportedException($"{nameof(FileSystemDirectory)} may only exist in {nameof(FileSystemMountPoint)} mount point.");
ValidationUtils.cs (1)
115IValidationEntry.SeverityLevel.None => (s) => throw new NotSupportedException($"{IValidationEntry.SeverityLevel.None} severity is not supported."),
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (6)
DirectoryBasedTemplate.cs (2)
207throw new NotSupportedException(string.Format(LocalizableStrings.RunnableProjectGenerator_Exception_TemplateVersionNotSupported, allowedGeneratorVersions, RunnableProjectGenerator.GeneratorVersion)); 217throw new NotSupportedException(string.Format(LocalizableStrings.RunnableProjectGenerator_Exception_TemplateVersionNotSupported, allowedGeneratorVersions, RunnableProjectGenerator.GeneratorVersion));
EvaluatorSelector.cs (2)
56_ => throw new NotSupportedException($"{evaluatorType} is not supported.") 99_ => throw new NotSupportedException($"{evaluatorType} is not supported.")
RunnableProjectGenerator.cs (2)
261?? throw new NotSupportedException(string.Format(LocalizableStrings.RunnableProjectGenerator_Exception_ConfigShouldBeFile, templateFileConfig.GetDisplayPath())); 267?? throw new NotSupportedException(string.Format(LocalizableStrings.RunnableProjectGenerator_Exception_LocaleConfigShouldBeFile, localeFileConfig.GetDisplayPath()));
Microsoft.TemplateSearch.Common (1)
TemplateSearchCache\TemplateSearchCache.Json.cs (1)
34throw new NotSupportedException(LocalizableStrings.TemplateSearchCache_Exception_NotSupported);
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (1)
147?? throw new NotSupportedException(nameof(method));
Microsoft.TestPlatform.CommunicationUtilities (1)
JsonDataSerializer.Stj.cs (1)
254_ => throw new NotSupportedException($"Protocol version {version} is not supported. "
Microsoft.TestPlatform.Extensions.BlameDataCollector (4)
CrashDumperFactory.cs (1)
24throw new NotSupportedException($"Could not parse target framework {targetFramework}, to a supported framework version.");
HangDumperFactory.cs (1)
29throw new NotSupportedException($"Could not parse target framework {targetFramework}, to a supported framework version.");
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
WindowsHangDumper.cs (1)
175_ => throw new NotSupportedException($"Dump type {type} is not supported."),
Microsoft.VisualStudio.TestPlatform.Client (1)
DesignMode\DesignModeClient.cs (1)
449throw new NotSupportedException($"Test message level '{e.Level}' is not supported.");
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
TestObject.cs (2)
272throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.ConverterNotSupported, valueType.Name)); 319throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, Resources.Resources.ConverterNotSupported, valueType.Name));
Mono.Cecil (6)
Mono.Cecil\AssemblyWriter.cs (3)
84 throw new NotSupportedException ("Writing mixed-mode assemblies is not supported"); 1986 throw new NotSupportedException (type.FullName); 3099 throw new NotSupportedException (value.GetType ().FullName);
Mono.Cecil\Import.cs (2)
242 throw new NotSupportedException (type.FullName); 671 throw new NotSupportedException (type.etype.ToString ());
Mono.Cecil\TypeResolver.cs (1)
176 throw new NotSupportedException (string.Format ("The type {0} cannot be resolved correctly.", typeReference.FullName));
Mono.Cecil.Rocks (1)
Mono.Cecil.Rocks\DocCommentId.cs (1)
327 throw new NotSupportedException (member.FullName);
NuGet.Configuration (2)
Utility\EncryptionUtility.cs (2)
19throw new NotSupportedException(Resources.Error_EncryptionUnsupported); 32throw new NotSupportedException(Resources.Error_EncryptionUnsupported);
NuGet.Packaging (2)
ContentModel\ManagedCodeConventions.cs (1)
401throw new NotSupportedException("FallbackFramework is not supported.");
PackageCreation\Authoring\LicenseMetadata.cs (1)
107throw new NotSupportedException($"Unsupported license type: {Type}");
NuGet.Protocol (2)
Resources\PackageSearchResourceV3.cs (1)
111throw new NotSupportedException(Strings.Protocol_PackageTypeFilterNotSupported);
Utility\LocalFolderUtility.cs (1)
818throw new NotSupportedException(uriResult.AbsoluteUri);
PresentationCore (66)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
560_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)
140throw 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))); 985throw 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)
8216throw 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)
1901throw new NotSupportedException(SR.TextBoxScrollViewerMarkedAsTextBoxContentMustHaveNoContent); 1915throw new NotSupportedException(SR.TextBoxDecoratorMarkedAsTextBoxContentMustHaveNoContent); 1934throw 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)
507throw 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); 1556throw new NotSupportedException(SR.Format(SR.UnexpectedCollectionChangeAction, args.Action)); 2433throw new NotSupportedException(SR.RangeActionsNotSupported); 2438throw new NotSupportedException(SR.RangeActionsNotSupported); 2443throw new NotSupportedException(SR.RangeActionsNotSupported); 2448throw new NotSupportedException(SR.RangeActionsNotSupported); 2457throw 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)
284throw 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 (16)
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new NotSupportedException("GetHashCode not supported");
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
187throw new NotSupportedException(GetResourceString(resource));
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (9)
193throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 198throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 214throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 271throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 276throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 281throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 286throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 291throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 296throw new NotSupportedException(SR.NotSupported_FixedSizeCollection);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAbstractNamedTypeSymbol.cs (1)
131public TypeLayout TypeLayout => throw new NotSupportedException("TypeLayout property is not supported on this symbol.");
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\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)),
rzc (1)
Json\JsonDataReader.cs (1)
133throw new NotSupportedException(
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
207throw new NotSupportedException("Synchronously sending is not supported.");
System.Collections (18)
System\Collections\Generic\SortedDictionary.cs (6)
599throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 604throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 614throw new NotSupportedException(SR.NotSupported_KeyCollectionSet); 760throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 765throw new NotSupportedException(SR.NotSupported_ValueCollectionSet); 775throw 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 (5)
System\Collections\Concurrent\BlockingCollection.cs (1)
133throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported);
System\Collections\Concurrent\ConcurrentBag.cs (1)
591get { 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.CommandLine (2)
Help\HelpBuilder.cs (1)
423throw new NotSupportedException($"Symbol type {symbol.GetType()} is not supported.");
Parsing\ArgumentResult.cs (1)
87throw new NotSupportedException($"{nameof(OnlyTake)} is supported only for a {nameof(Command)}-owned {nameof(ArgumentResult)}");
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)
1757throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported); 1766throw new NotSupportedException(SR.ComObjectDescriptorsNotSupported); 3051throw 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\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
125NotSupportedException e = new NotSupportedException(error);
System\Data\DataSet.cs (3)
3518throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported); 3548throw new NotSupportedException(SR.DataSet_XmlSerializationUnsupported); 3592throw 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); 6774throw 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); 3023throw new NotSupportedException(SR.DataDom_NotSupport_GetElementById);
System.Data.Odbc (1)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
125NotSupportedException e = new NotSupportedException(error);
System.Data.OleDb (1)
ColumnBinding.cs (1)
1046throw new NotSupportedException(SR.PlatformNotSupported_GetIDispatchForObject);
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceCounter.cs (1)
441throw new NotSupportedException(SR.PCNotSupportedUnderAppContainer);
System.Diagnostics.Process (2)
System\Diagnostics\Process.cs (1)
948throw new NotSupportedException(SR.NotSupportedRemote);
System\Diagnostics\ProcessThread.cs (1)
157throw new NotSupportedException(SR.NotSupportedRemoteThread);
System.DirectoryServices (22)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (1)
87throw new NotSupportedException(SR.NotSupportTransportSMTP);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (1)
757throw new NotSupportedException(SR.NotSupportTransportSMTP);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (2)
91throw new NotSupportedException(SR.NotSupportTransportSMTP); 180throw new NotSupportedException(SR.NotSupportTransportSMTP);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (2)
78throw new NotSupportedException(SR.NotSupportTransportSMTP); 168throw new NotSupportedException(SR.NotSupportTransportSMTP);
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (5)
510throw new NotSupportedException(SR.OperationInvalidForADAM); 530throw new NotSupportedException(SR.OperationInvalidForADAM); 780throw new NotSupportedException(SR.PropertyInvalidForADAM); 814throw new NotSupportedException(SR.PropertyInvalidForADAM); 883throw new NotSupportedException(SR.OneLevelPartitionNotSupported);
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (1)
178throw new NotSupportedException(SR.NotSupportTransportSMTP);
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (1)
397throw new NotSupportedException(SR.TrustVerificationNotSupport);
System\DirectoryServices\DirectoryEntry.cs (2)
1083throw new NotSupportedException(SR.DSPropertyListUnsupported); 1110throw new NotSupportedException(SR.DSMultipleSDNotSupported);
System\DirectoryServices\DirectorySearcher.cs (1)
615throw new NotSupportedException(SR.Format(SR.DSSearchUnsupported, SearchRoot.Path));
System\DirectoryServices\PropertyCollection.cs (6)
55throw new NotSupportedException(SR.DSCannotCount); 103throw new NotSupportedException(SR.DSCannotEmunerate); 120set => throw new NotSupportedException(SR.DSPropertySetSupported); 131throw new NotSupportedException(SR.DSAddNotSupported); 136throw new NotSupportedException(SR.DSClearNotSupported); 143throw new NotSupportedException(SR.DSRemoveNotSupported);
System.DirectoryServices.AccountManagement (6)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
931throw new NotSupportedException(SR.ADStoreCtxNoComputerPasswordChange);
System\DirectoryServices\AccountManagement\Principal.cs (2)
782throw new NotSupportedException(SR.ExtensionInvalidClassDefinitionConstructor); 789throw new NotSupportedException(SR.ExtensionInvalidClassDefinitionConstructor);
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (1)
266throw new NotSupportedException(
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (2)
548throw new NotSupportedException(SR.StoreNotSupportMethod); 554throw new NotSupportedException(SR.StoreNotSupportMethod);
System.DirectoryServices.Protocols (5)
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (2)
84throw new NotSupportedException(SR.DirectoryAttributeConversion); 108throw new NotSupportedException(SR.DirectoryAttributeConversion);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (3)
204throw new NotSupportedException(SR.DsmlAuthRequestNotSupported); 279throw new NotSupportedException(SR.PartialResultsNotSupported); 753throw new NotSupportedException(SR.InvliadRequestType);
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 (10)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (5)
65throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 166throw new NotSupportedException(SR.IO_NotSupported_UnreadableStream); 248throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 270public override void SetLength(long value) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream); 272public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream);
System\Formats\Tar\GnuSparseStream.cs (4)
124throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 138throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 562public override void SetLength(long value) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream); 564public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream);
System\Formats\Tar\TarHeader.Read.cs (1)
478TarEntryType.SparseFile => throw new NotSupportedException(SR.Format(SR.TarEntryTypeNotSupported, header._typeFlag)),
System.IO.Compression (68)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (5)
65throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 166throw new NotSupportedException(SR.IO_NotSupported_UnreadableStream); 248throw new NotSupportedException(SR.IO_NotSupported_UnseekableStream); 270public override void SetLength(long value) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream); 272public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.IO_NotSupported_UnwritableStream);
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)
201get { throw new NotSupportedException(SR.NotSupported); } 206get { throw new NotSupportedException(SR.NotSupported); } 207set { throw new NotSupportedException(SR.NotSupported); } 264throw new NotSupportedException(SR.NotSupported); 269throw new NotSupportedException(SR.NotSupported);
System\IO\Compression\GZipStream.cs (5)
60get { throw new NotSupportedException(SR.NotSupported); } 65get { throw new NotSupportedException(SR.NotSupported); } 66set { throw new NotSupportedException(SR.NotSupported); } 77throw new NotSupportedException(SR.NotSupported); 82throw 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\WinZipAesStream.cs (2)
373throw new NotSupportedException(SR.ReadingNotSupported); 499throw new NotSupportedException(SR.WritingNotSupported);
System\IO\Compression\ZipArchive.cs (3)
234throw new NotSupportedException(SR.EntriesInCreateMode); 399throw new NotSupportedException(SR.EntriesInCreateMode); 488throw new NotSupportedException(SR.CreateInReadMode);
System\IO\Compression\ZipArchiveEntry.Async.cs (5)
231throw new NotSupportedException(SR.UnsupportedEncryptionMethod); 261throw new NotSupportedException(SR.UnsupportedEncryptionMethod); 312throw new NotSupportedException(SR.UnsupportedEncryptionMethod); 520throw new NotSupportedException(SR.UnsupportedEncryptionMethod); 562throw new NotSupportedException(SR.UnsupportedEncryptionMethod);
System\IO\Compression\ZipArchiveEntry.cs (12)
370throw new NotSupportedException(SR.ReadOnlyArchive); 442throw new NotSupportedException(SR.DeleteOnlyInUpdate); 1083throw new NotSupportedException(SR.UnsupportedEncryptionMethod); 1114throw new NotSupportedException(SR.UnsupportedEncryptionMethod); 1272throw new NotSupportedException(SR.UnsupportedEncryptionMethod); 2252throw new NotSupportedException(SR.SeekingNotSupported); 2265throw new NotSupportedException(SR.SeekingNotSupported); 2284throw new NotSupportedException(SR.ReadingNotSupported); 2290throw new NotSupportedException(SR.ReadingNotSupported); 2296throw new NotSupportedException(SR.ReadingNotSupported); 2302throw new NotSupportedException(SR.SeekingNotSupported); 2308throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting);
System\IO\Compression\ZipCryptoStream.cs (4)
293throw new NotSupportedException(SR.ReadingNotSupported); 316throw new NotSupportedException(SR.WritingNotSupported); 399throw new NotSupportedException(SR.ReadingNotSupported); 425throw new NotSupportedException(SR.WritingNotSupported);
System\IO\Compression\ZipCustomStreams.cs (15)
82throw new NotSupportedException(SR.ReadingNotSupported); 88throw new NotSupportedException(SR.WritingNotSupported); 94throw new NotSupportedException(SR.SeekingNotSupported); 305throw new NotSupportedException(SR.SeekingNotSupported); 319throw new NotSupportedException(SR.SeekingNotSupported); 338throw new NotSupportedException(SR.ReadingNotSupported); 344throw new NotSupportedException(SR.ReadingNotSupported); 350throw new NotSupportedException(SR.ReadingNotSupported); 356throw new NotSupportedException(SR.SeekingNotSupported); 362throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting); 679throw new NotSupportedException(SR.WritingNotSupported); 685throw new NotSupportedException(SR.WritingNotSupported); 691throw new NotSupportedException(SR.WritingNotSupported); 718throw new NotSupportedException(SR.SetLengthRequiresSeekingAndWriting); 733throw new NotSupportedException(SR.SeekingNotSupported);
System.IO.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
300throw 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\runtime\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)
109if (!CanRead) throw new NotSupportedException(SR.NotSupported_UnreadableStream); 119if (!CanWrite) throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System\IO\Pipes\NamedPipeServerStream.Unix.cs (2)
181if (!CanRead) throw new NotSupportedException(SR.NotSupported_UnreadableStream); 191if (!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.Memory (9)
System\Buffers\ReadOnlySequenceStream.cs (9)
58public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 65get => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 66set => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 184public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 189public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 194public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 199public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 204public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 216public override void SetLength(long value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
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)
306throw 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(ExceptionDispatchInfo.SetCurrentStackTrace(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>(ExceptionDispatchInfo.SetCurrentStackTrace(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(ExceptionDispatchInfo.SetCurrentStackTrace(new NotSupportedException(SR.net_http_content_writeonly_stream)));
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
447throw 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)
652throw new NotSupportedException(SR.Format(SR.net_http_http2_sync_not_supported, GetType())); 658throw new NotSupportedException(SR.Format(SR.net_http_upgrade_not_enabled_sync, nameof(Send), request.VersionPolicy)); 712return ExceptionDispatchInfo.SetCurrentStackTrace(new NotSupportedException(SR.net_http_unsupported_version)); 739return ExceptionDispatchInfo.SetCurrentStackTrace(new NotSupportedException(SR.net_http_unsupported_chunking)); 757return ExceptionDispatchInfo.SetCurrentStackTrace(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.Http.WinHttpHandler (4)
src\runtime\src\libraries\Common\src\System\IO\StreamHelpers.CopyValidation.cs (2)
33throw new NotSupportedException(SR.NotSupported_UnreadableStream); 38throw new NotSupportedException(SR.NotSupported_UnwritableStream);
System\Net\Http\WinHttpHandler.cs (2)
605throw new NotSupportedException(SR.Format(SR.net_http_unsupported_requesturi_scheme, requestUri.Scheme)); 874state.Tcs.TrySetException(new NotSupportedException(SR.net_http_unsupported_version));
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 (17)
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 (1)
500throw new NotSupportedException(SR.SmtpGetIisPickupDirectoryNotSupported);
System\Net\Mime\MimeMultiPart.cs (1)
29throw 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)
281set => throw new NotSupportedException(SR.net_noseek); 288throw new NotSupportedException(SR.net_noseek); 342throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 516throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write"));
System\Net\Security\SslAuthenticationOptions.cs (1)
110throw new NotSupportedException(SR.net_ssl_io_no_server_cert);
System\Net\Security\SslStream.cs (3)
684set => throw new NotSupportedException(SR.net_noseek); 689public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.net_noseek); 753throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read"));
System\Net\Security\SslStream.IO.cs (4)
186throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 193throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write")); 891throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "read")); 1056throw new NotSupportedException(SR.Format(SR.net_io_invalidnestedcall, "write"));
System\Net\Security\SslStream.Protocol.cs (3)
684throw new NotSupportedException(SR.net_ssl_io_no_server_cert); 703throw new NotSupportedException(SR.net_ssl_io_no_server_cert); 713throw 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)
627throw new NotSupportedException(SR.net_invalidversion); 648throw new NotSupportedException(SR.net_invalidversion); 665throw new NotSupportedException(SR.net_invalidversion); 679throw new NotSupportedException(SR.net_invalidversion); 702throw new NotSupportedException(SR.net_invalidversion); 720throw new NotSupportedException(SR.net_invalidversion); 764throw new NotSupportedException(SR.net_invalidversion); 862throw new NotSupportedException(SR.net_invalidversion); 894throw new NotSupportedException(SR.net_invalidversion); 914throw new NotSupportedException(SR.net_invalidversion); 949throw new NotSupportedException(SR.net_invalidversion); 1339throw new NotSupportedException(SR.net_notconnected); 2331throw new NotSupportedException(SR.net_invalidversion); 2571throw new NotSupportedException(SR.net_notconnected); 2923throw new NotSupportedException(SR.net_invalidversion); 2943throw new NotSupportedException(SR.net_invalidversion); 3244throw new NotSupportedException(SR.net_notconnected);
System\Net\Sockets\Socket.Tasks.cs (1)
738var ex = ExceptionDispatchInfo.SetCurrentStackTrace(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.Net.WebSockets (4)
System\Net\WebSockets\WebSocketStream.cs (4)
204return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new NotSupportedException(SR.NotWriteableStream))); 222throw new NotSupportedException(SR.NotReadableStream); 306return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new NotSupportedException(SR.NotWriteableStream))); 345throw new NotSupportedException(SR.NotReadableStream);
System.Numerics.Tensors (4)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
346throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 370throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
242throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 266throw 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 (310)
Internal\Runtime\CompilerHelpers\RuntimeInteropData.cs (5)
50throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, Type.GetTypeFromHandle(structureTypeHandle)!)); 84throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, structureType)); 109throw new NotSupportedException(SR.Format(SR.DelegateMarshalling_MissingInteropData, Type.GetTypeFromHandle(delegateTypeHandle))); 118throw new NotSupportedException(SR.Format(SR.DelegateMarshalling_MissingInteropData, Type.GetTypeFromHandle(delegateTypeHandle))); 226throw new NotSupportedException(SR.Format(SR.StructMarshalling_MissingInteropData, Type.GetTypeFromHandle(structTypeHandle)));
Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (4)
18throw new NotSupportedException(SR.NotSupported_BodyRemoved); 25throw new NotSupportedException(SR.NotSupported_FeatureBodyRemoved); 32throw new NotSupportedException(SR.NotSupported_InstanceBodyRemoved); 116throw new NotSupportedException(SR.NotSupported_InlineArrayEqualsGetHashCode);
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
88throw new NotSupportedException(SR.Arg_TypeNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Utf8Formatter\Utf8Formatter.Integer.cs (1)
338throw new NotSupportedException(SR.Argument_GWithPrecisionNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (37)
793throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1614throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1619throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1644throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1649throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1654throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1690throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1695throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1706set => throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1711throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1763throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1768throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1788throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1793throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1798throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1842throw new NotSupportedException(SR.NotSupported_FixedSizeCollection); 1866set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1873throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1878throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1903throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1908throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1913throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1937set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1944throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1949throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1961set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 1966throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2018throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2023throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2043throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2048throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2053throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2058throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2073throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2078throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2094throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 2544throw new NotSupportedException(SR.NotSupported_RangeCollection);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1928object ICollection.SyncRoot => throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (1)
754throw new NotSupportedException(SR.NotSupported_ChangeType);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
399throw new NotSupportedException(SR.EventSource_RecursiveTypeDefinition);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\HashCode.cs (2)
487public override int GetHashCode() => throw new NotSupportedException(SR.HashCode_HashCodeNotSupported); 491public override bool Equals(object? obj) => throw new NotSupportedException(SR.HashCode_EqualityNotSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (1)
399throw new NotSupportedException(SR.NotSupported_CannotWriteToBufferedStreamIfReadBufferCannotBeFlushed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
267throw new NotSupportedException(SR.NotSupported_MemStreamNotExpandable);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\ReadOnlyMemoryStream.cs (6)
220public override void SetLength(long value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 225public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 230public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 235public override void WriteByte(byte value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 240public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 245public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StringStream.cs (9)
88public override long Length => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 95get => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 96set => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 287public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException(SR.NotSupported_UnseekableStream); 292public override void SetLength(long value) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 297public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 302public override void Write(ReadOnlySpan<byte> buffer) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 307public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken) => throw new NotSupportedException(SR.NotSupported_UnwritableStream); 312public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default) => throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (5)
302throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 315throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 574throw new NotSupportedException(SR.NotSupported_UmsSafeBuffer); 642throw new NotSupportedException(SR.IO_FixedCapacity); 769throw new NotSupportedException(SR.IO_FixedCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\WritableMemoryStream.cs (2)
322throw new NotSupportedException(SR.IO_FixedCapacity); 358throw new NotSupportedException(SR.IO_FixedCapacity);
src\runtime\src\libraries\System.Private.CoreLib\src\System\PlatformNotSupportedException.cs (2)
18: base(SR.Arg_PlatformNotSupported) 24: base(message ?? SR.Arg_PlatformNotSupported)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (2)
190throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 201throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (3)
55public virtual void EmitCalli(Type functionPointerType) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 170throw new NotSupportedException(SR.NotSupported_OutputStreamUsingTypeBuilder); 258throw new NotSupportedException(SR.NotSupported_EmitDebugInfo);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
56public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (24)
308public override Guid GUID => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 317throw new NotSupportedException(SR.NotSupported_NonReflectedType); 343public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 376throw new NotSupportedException(SR.NotSupported_NonReflectedType); 382throw new NotSupportedException(SR.NotSupported_NonReflectedType); 389throw new NotSupportedException(SR.NotSupported_NonReflectedType); 395throw new NotSupportedException(SR.NotSupported_NonReflectedType); 401throw new NotSupportedException(SR.NotSupported_NonReflectedType); 407throw new NotSupportedException(SR.NotSupported_NonReflectedType); 414throw new NotSupportedException(SR.NotSupported_NonReflectedType); 420throw new NotSupportedException(SR.NotSupported_NonReflectedType); 426throw new NotSupportedException(SR.NotSupported_NonReflectedType); 432throw new NotSupportedException(SR.NotSupported_NonReflectedType); 439throw new NotSupportedException(SR.NotSupported_NonReflectedType); 445throw new NotSupportedException(SR.NotSupported_NonReflectedType); 451throw new NotSupportedException(SR.NotSupported_NonReflectedType); 457throw new NotSupportedException(SR.NotSupported_NonReflectedType); 463throw new NotSupportedException(SR.NotSupported_NonReflectedType); 469throw new NotSupportedException(SR.NotSupported_NonReflectedType); 481throw new NotSupportedException(SR.NotSupported_NonReflectedType); 487throw new NotSupportedException(SR.NotSupported_NonReflectedType); 544throw new NotSupportedException(SR.NotSupported_NonReflectedType); 549throw new NotSupportedException(SR.NotSupported_NonReflectedType); 554throw new NotSupportedException(SR.NotSupported_NonReflectedType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (6)
164protected override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetConstructor))); } 167public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetConstructor))); } 170protected override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetMethod))); } 173public override MethodInfo[] GetMethods(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetMethod))); } 176public override FieldInfo GetField(string name, BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetField))); } 179public override FieldInfo[] GetFields(BindingFlags bindingAttr) { throw new NotSupportedException(SR.Format(SR.NotSupported_TypeBuilderInstantiation_ResolvingMembers, nameof(TypeBuilder.GetField))); }
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
51public virtual Type[] GetGenericArguments() { throw new NotSupportedException(SR.NotSupported_SubclassOverride); }
src\runtime\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\runtime\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); 86=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 89public override int MetadataToken => throw new NotSupportedException(SR.NotSupported_ModifiedType); 92public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_ModifiedType); 97public override Type? BaseType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 98public override Type? DeclaringType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 99public override Type? ReflectedType => throw new NotSupportedException(SR.NotSupported_ModifiedType); 103CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 106public override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 111=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 114public override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 117public override FieldInfo? GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 120public override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 128public override Type? GetInterface(string name, bool ignoreCase) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 131public override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 135public override EventInfo? GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 138public override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 143=> throw new NotSupportedException(SR.NotSupported_ModifiedType); 146public override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 149public override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 152public override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 155public override Type? GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 158public override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 161public override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 163public override MemberInfo GetMemberWithSameMetadataDefinitionAs(MemberInfo member) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (62)
58public 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. 85public sealed override Assembly Assembly => throw new NotSupportedException(SR.NotSupported_SignatureType); 86public sealed override Module Module => throw new NotSupportedException(SR.NotSupported_SignatureType); 88public sealed override Type ReflectedType => throw new NotSupportedException(SR.NotSupported_SignatureType); 89public sealed override Type BaseType => throw new NotSupportedException(SR.NotSupported_SignatureType); 92public sealed override Type[] GetInterfaces() => throw new NotSupportedException(SR.NotSupported_SignatureType); 93public sealed override bool IsAssignableFrom([NotNullWhen(true)] Type? c) => throw new NotSupportedException(SR.NotSupported_SignatureType); 94public sealed override int MetadataToken => throw new NotSupportedException(SR.NotSupported_SignatureType); 95public sealed override bool HasSameMetadataDefinitionAs(MemberInfo other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 97public sealed override Type DeclaringType => throw new NotSupportedException(SR.NotSupported_SignatureType); 98public sealed override MethodBase DeclaringMethod => throw new NotSupportedException(SR.NotSupported_SignatureType); 100public sealed override Type[] GetGenericParameterConstraints() => throw new NotSupportedException(SR.NotSupported_SignatureType); 101public sealed override GenericParameterAttributes GenericParameterAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType); 102public sealed override bool IsEnumDefined(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType); 103public sealed override string GetEnumName(object value) => throw new NotSupportedException(SR.NotSupported_SignatureType); 104public sealed override string[] GetEnumNames() => throw new NotSupportedException(SR.NotSupported_SignatureType); 105public sealed override Type GetEnumUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SignatureType); 107public sealed override Array GetEnumValues() => throw new NotSupportedException(SR.NotSupported_SignatureType); 108public sealed override Guid GUID => throw new NotSupportedException(SR.NotSupported_SignatureType); 109protected sealed override TypeCode GetTypeCodeImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 110protected sealed override TypeAttributes GetAttributeFlagsImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 113public sealed override ConstructorInfo[] GetConstructors(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 116public sealed override EventInfo GetEvent(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 119public sealed override EventInfo[] GetEvents(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 122public sealed override FieldInfo GetField(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 125public sealed override FieldInfo[] GetFields(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 128public sealed override MemberInfo[] GetMembers(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 131public sealed override MethodInfo[] GetMethods(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 134public sealed override Type GetNestedType(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 137public sealed override Type[] GetNestedTypes(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 140public sealed override PropertyInfo[] GetProperties(BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 143public 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); 146protected sealed override MethodInfo GetMethodImpl(string name, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 149protected sealed override MethodInfo GetMethodImpl(string name, int genericParameterCount, BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 152protected sealed override PropertyInfo GetPropertyImpl(string name, BindingFlags bindingAttr, Binder? binder, Type? returnType, Type[]? types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 155public sealed override MemberInfo[] FindMembers(MemberTypes memberType, BindingFlags bindingAttr, MemberFilter? filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType); 158public sealed override MemberInfo[] GetMember(string name, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 161public sealed override MemberInfo[] GetMember(string name, MemberTypes type, BindingFlags bindingAttr) => throw new NotSupportedException(SR.NotSupported_SignatureType); 170public sealed override MemberInfo[] GetDefaultMembers() => throw new NotSupportedException(SR.NotSupported_SignatureType); 173public sealed override EventInfo[] GetEvents() => throw new NotSupportedException(SR.NotSupported_SignatureType); 175public sealed override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 176public sealed override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 177public sealed override bool IsDefined(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_SignatureType); 178public sealed override IList<CustomAttributeData> GetCustomAttributesData() => throw new NotSupportedException(SR.NotSupported_SignatureType); 182public sealed override Type GetInterface(string name, bool ignoreCase) => throw new NotSupportedException(SR.NotSupported_SignatureType); 185protected sealed override ConstructorInfo GetConstructorImpl(BindingFlags bindingAttr, Binder? binder, CallingConventions callConvention, Type[] types, ParameterModifier[]? modifiers) => throw new NotSupportedException(SR.NotSupported_SignatureType); 187protected sealed override bool IsCOMObjectImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 188protected sealed override bool IsPrimitiveImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 189public sealed override IEnumerable<CustomAttributeData> CustomAttributes => throw new NotSupportedException(SR.NotSupported_SignatureType); 192public sealed override Type[] FindInterfaces(TypeFilter filter, object? filterCriteria) => throw new NotSupportedException(SR.NotSupported_SignatureType); 193public sealed override InterfaceMapping GetInterfaceMap([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods | DynamicallyAccessedMemberTypes.NonPublicMethods)] Type interfaceType) => throw new NotSupportedException(SR.NotSupported_SignatureType); 194protected sealed override bool IsContextfulImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 196public sealed override bool IsEquivalentTo([NotNullWhen(true)] Type? other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 197public sealed override bool IsInstanceOfType([NotNullWhen(true)] object? o) => throw new NotSupportedException(SR.NotSupported_SignatureType); 198protected sealed override bool IsMarshalByRefImpl() => throw new NotSupportedException(SR.NotSupported_SignatureType); 199public sealed override bool IsSecurityCritical => throw new NotSupportedException(SR.NotSupported_SignatureType); 200public sealed override bool IsSecuritySafeCritical => throw new NotSupportedException(SR.NotSupported_SignatureType); 201public sealed override bool IsSecurityTransparent => throw new NotSupportedException(SR.NotSupported_SignatureType); 203public sealed override bool IsSerializable => throw new NotSupportedException(SR.NotSupported_SignatureType); 204public sealed override bool IsSubclassOf(Type c) => throw new NotSupportedException(SR.NotSupported_SignatureType); 207public sealed override StructLayoutAttribute StructLayoutAttribute => throw new NotSupportedException(SR.NotSupported_SignatureType); 209public sealed override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (3)
47throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed); 52throw new NotSupportedException(SR.NotSupported_ResourceObjectSerialization); 57throw new NotSupportedException(SR.BinaryFormatter_SerializationDisallowed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
828throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 966throw new NotSupportedException(SR.ResourceManager_ReflectionNotAllowed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (3)
1665throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperInstance); 1696throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperInstance); 1706throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperTrackerInstance);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TrackerObjectManager.cs (1)
59throw new NotSupportedException(SR.InvalidOperation_ComInteropRequireComWrapperTrackerInstance);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
195throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 206throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
src\runtime\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\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (4)
252throw new NotSupportedException(SR.NotSupported_ReferenceEnumOrPrimitiveTypeRequired); 502throw new NotSupportedException(SR.NotSupported_ReferenceEnumOrPrimitiveTypeRequired); 659throw new NotSupportedException(SR.NotSupported_IntegerEnumOrPrimitiveTypeRequired); 802throw new NotSupportedException(SR.NotSupported_IntegerEnumOrPrimitiveTypeRequired);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
306throw new NotSupportedException(SR.NotSupported_MaxWaitHandles);
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (4)
422throw new NotSupportedException(GetResourceString(resource)); 428throw new NotSupportedException(SR.NotSupported_UnseekableStream); 434throw new NotSupportedException(SR.NotSupported_UnreadableStream); 440throw new NotSupportedException(SR.NotSupported_UnwritableStream);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (10)
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); 615public virtual Type? GetNullableUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 652public virtual Array GetEnumValuesAsUnderlyingType() => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 766public virtual Type MakeFunctionPointerType(Type[]? parameterTypes, bool isUnmanaged = false) => throw new NotSupportedException(SR.NotSupported_SubclassOverride); 770public virtual Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_SubclassOverride);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
45throw new NotSupportedException(SR.NotSupported_UnitySerHolder);
System\ActivatorImplementation.cs (3)
126throw new NotSupportedException(SR.NotSupported_CallToVarArg); 159throw new NotSupportedException(SR.NotSupported_ByRefLike); 165throw new NotSupportedException(SR.Acc_CreateVoid);
System\Array.NativeAot.cs (6)
56throw new NotSupportedException(SR.NotSupported_ByRefLikeArray); 58throw new NotSupportedException(SR.NotSupported_VoidArray); 60throw new NotSupportedException(SR.NotSupported_OpenType); 96throw new NotSupportedException(SR.NotSupported_OpenType); 384throw new NotSupportedException(SR.NotSupported_Type); 420throw new NotSupportedException(SR.NotSupported_Type);
System\Reflection\Assembly.NativeAot.cs (1)
29throw new NotSupportedException(SR.NotSupported_StackTraceSupportDisabled);
System\Reflection\DynamicInvokeInfo.cs (1)
390throw new NotSupportedException(SR.NotSupported_ByRefLike);
System\Reflection\Runtime\General\ThunkedApis.cs (1)
76throw new NotSupportedException(SR.NotSupported_CodeBase);
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (3)
320throw new NotSupportedException(SR.NotSupported_ManagedActivation); 348throw new NotSupportedException(SR.NotSupported_ByRefLike); 394throw new NotSupportedException(SR.NotSupported_ByRefLike);
System\TypedReference.cs (1)
64public override bool Equals(object? o) { throw new NotSupportedException(SR.NotSupported_NYI); }
System.Private.DataContractSerialization (34)
System\Runtime\Serialization\CodeGenerator.cs (1)
818throw 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.Reflection.Execution (4)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (1)
114return new NotSupportedException(SR.Format(resourceName, pertainantString ?? "?"));
Internal\Reflection\Execution\PayForPlayExperience\MissingMetadataExceptionCreator.cs (1)
14return new NotSupportedException(SR.Format(SR.Reflection_InsufficientMetadata_EdbNeeded, pertainant));
Internal\Reflection\Extensions\NonPortable\DelegateMethodInfoRetriever.cs (2)
51throw new NotSupportedException(SR.DelegateGetMethodInfo_NoInstantiation); 62throw new NotSupportedException(SR.DelegateGetMethodInfo_NoDynamic);
System.Private.Windows.Core (11)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
373throw new NotSupportedException($"{nameof(T)} is not primitive.");
System\Private\Windows\JsonData.cs (1)
123result = new NotSupportedException(ex.Message);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
517exception = new NotSupportedException(classInfo.GetString("Message"));
System\Private\Windows\Ole\BinaryFormatUtilities.cs (5)
58throw new NotSupportedException(SR.BinaryFormatterNotSupported); 64throw new NotSupportedException(SR.BinaryFormatter_NotSupported_InClipboardOrDragDrop); 195throw new NotSupportedException(string.Format(SR.ClipboardOrDragDrop_UseTypedAPI, typeof(T).FullName)); 201throw new NotSupportedException(SR.BinaryFormatterNotSupported); 207throw new NotSupportedException(SR.BinaryFormatter_NotSupported_InClipboardOrDragDrop);
System\Private\Windows\Ole\ClipboardCore.cs (1)
327throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
534throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\TypeBinder.cs (1)
98: throw new NotSupportedException(string.Format(
System.Private.Windows.Core.TestUtilities (2)
BinarySerialization.cs (2)
39throw new NotSupportedException($"Serializable attribute is expected on {fullName}"); 58throw 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)
127throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 133throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 139throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 145throw new NotSupportedException(SR.Format(SR.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex")); 152throw new NotSupportedException(SR.Xml_ReadValueChunkNotSupported);
System\Xml\Serialization\CodeGenerator.cs (2)
789throw new NotSupportedException(SR.XmlInvalidCharSchemaPrimitive); 897throw 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)
381throw new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, FullName)); 852exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 870exception ??= new NotSupportedException(SR.Format(SR.XmlUnsupportedRank, type.FullName)); 889exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 944exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterface, type.FullName)); 948exception = new NotSupportedException(SR.Format(SR.XmlUnsupportedInterfaceDetails, $"{memberInfo.DeclaringType!.FullName}.{memberInfo.Name}", type.FullName)); 956exception ??= new NotSupportedException(SR.Format(SR.XmlSerializerUnsupportedType, type.FullName)); 1400throw new NotSupportedException(SR.Format(SR.XmlUnsupportedIDictionary, type.FullName)); 1404throw 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)
1701throw 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\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilderInstantiation.cs (1)
56public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (24)
308public override Guid GUID => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 317throw new NotSupportedException(SR.NotSupported_NonReflectedType); 343public override RuntimeTypeHandle TypeHandle => throw new NotSupportedException(SR.NotSupported_NonReflectedType); 376throw new NotSupportedException(SR.NotSupported_NonReflectedType); 382throw new NotSupportedException(SR.NotSupported_NonReflectedType); 389throw new NotSupportedException(SR.NotSupported_NonReflectedType); 395throw new NotSupportedException(SR.NotSupported_NonReflectedType); 401throw new NotSupportedException(SR.NotSupported_NonReflectedType); 407throw new NotSupportedException(SR.NotSupported_NonReflectedType); 414throw new NotSupportedException(SR.NotSupported_NonReflectedType); 420throw new NotSupportedException(SR.NotSupported_NonReflectedType); 426throw new NotSupportedException(SR.NotSupported_NonReflectedType); 432throw new NotSupportedException(SR.NotSupported_NonReflectedType); 439throw new NotSupportedException(SR.NotSupported_NonReflectedType); 445throw new NotSupportedException(SR.NotSupported_NonReflectedType); 451throw new NotSupportedException(SR.NotSupported_NonReflectedType); 457throw new NotSupportedException(SR.NotSupported_NonReflectedType); 463throw new NotSupportedException(SR.NotSupported_NonReflectedType); 469throw new NotSupportedException(SR.NotSupported_NonReflectedType); 481throw new NotSupportedException(SR.NotSupported_NonReflectedType); 487throw new NotSupportedException(SR.NotSupported_NonReflectedType); 544throw new NotSupportedException(SR.NotSupported_NonReflectedType); 549throw new NotSupportedException(SR.NotSupported_NonReflectedType); 554throw 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); 121public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 123public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 125public 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); 763throw new NotSupportedException(SR.Argument_NotInExceptionBlock);
System\Reflection\Emit\MethodBuilderImpl.cs (5)
248public override RuntimeMethodHandle MethodHandle => throw new NotSupportedException(SR.NotSupported_DynamicModule); 270public override object[] GetCustomAttributes(bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 272public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotSupportedException(SR.NotSupported_DynamicModule); 311=> throw new NotSupportedException(SR.NotSupported_DynamicModule); 313public 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)
216throw new NotSupportedException(SR.NotSupported_NoParentDefaultConstructor); 601public override Type GetElementType() => throw new NotSupportedException(SR.NotSupported_DynamicModule); 651throw 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)
51public sealed override string CodeBase => throw new NotSupportedException(SR.NotSupported_AssemblyCodeBase); 56public sealed override string EscapedCodeBase => throw new NotSupportedException(SR.NotSupported_AssemblyCodeBase); 204public sealed override Assembly GetSatelliteAssembly(CultureInfo culture) => throw new NotSupportedException(SR.NotSupported_SatelliteAssembly); 205public sealed override Assembly GetSatelliteAssembly(CultureInfo culture, Version? version) => throw new NotSupportedException(SR.NotSupported_SatelliteAssembly);
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
114public 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); 180public override Type MakeGenericType(params Type[] typeArguments) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 187public override Type[] GetGenericParameterConstraints() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 190protected internal override RoType ComputeEnumUnderlyingType() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 192internal override RoType? ComputeBaseTypeWithoutDesktopQuirk() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 193internal override IEnumerable<RoType> ComputeDirectlyImplementedInterfaces() => throw new NotSupportedException(SR.NotSupported_ModifiedType); 196internal override IEnumerable<ConstructorInfo> GetConstructorsCore(NameFilter? filter) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 197internal override IEnumerable<MethodInfo> GetMethodsCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 198internal override IEnumerable<EventInfo> GetEventsCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 199internal override IEnumerable<FieldInfo> GetFieldsCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 200internal override IEnumerable<PropertyInfo> GetPropertiesCore(NameFilter? filter, Type reflectedType) => throw new NotSupportedException(SR.NotSupported_ModifiedType); 201internal override IEnumerable<RoType> GetNestedTypesCore(NameFilter? filter) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
System\Reflection\TypeLoading\Types\RoType.cs (1)
244public sealed override InterfaceMapping GetInterfaceMap(Type interfaceType) => throw new NotSupportedException(SR.NotSupported_InterfaceMapping);
System.Resources.Extensions (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
828throw new NotSupportedException(SR.Format(SR.NotSupported_WrongResourceReader_Type, readerType)); 966throw 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.Runtime.InteropServices.JavaScript (10)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (10)
103throw new NotSupportedException(SR.Format(SR.ToManagedNotImplemented, slot.ElementType + "[]")); 116throw new NotSupportedException(SR.Format(SR.ToManagedNotImplemented, slot.Type)); 142throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName)); 186throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName)); 209throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName)); 263throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName)); 322throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName)); 326throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName)); 330throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName)); 334throw new NotSupportedException(SR.Format(SR.ToJSNotImplemented, type.FullName));
System.Security.AccessControl (4)
System\Security\AccessControl\ACL.cs (1)
2226throw new NotSupportedException(SR.NotSupported_SetMethod);
System\Security\AccessControl\NativeObjectSecurity.cs (3)
135exception = new NotSupportedException(SR.AccessControl_NoAssociatedSecurity); 265exception = new NotSupportedException(SR.AccessControl_InvalidHandle); 273exception = new NotSupportedException(SR.AccessControl_NoAssociatedSecurity);
System.Security.Cryptography (38)
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\CertificatePal.Windows.PrivateKey.cs (2)
54throw new NotSupportedException(SR.NotSupported_ECDsa_Csp); 78csp => throw new NotSupportedException(SR.NotSupported_ECDiffieHellman_Csp),
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
364throw new NotSupportedException(
System\Security\Cryptography\X509Certificates\PublicKey.cs (1)
165throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
287_ => throw new NotSupportedException(SR.NotSupported_KeyAlgorithm),
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (3)
33throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 46throw new NotSupportedException(SR.NotSupported_KeyAlgorithm); 69throw new NotSupportedException(SR.NotSupported_KeyAlgorithm);
System.Security.Cryptography.Pkcs (2)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (1)
263throw new NotSupportedException(SR.Format(SR.Cryptography_Cms_UnknownKeySpec, keySpec));
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
424throw new NotSupportedException(SR.Format(SR.Cryptography_Cms_Invalid_Subject_Identifier_Type, type));
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\CryptoHelpers.cs (1)
58throw new NotSupportedException(SR.Cryptography_Xml_XsltRequiresDynamicCode);
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
561throw 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.Http (7)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (5)
933get { throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); } 940throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 945throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 1075throw FxTrace.Exception.AsError(new NotSupportedException("this method should never get called")); 1092throw FxTrace.Exception.AsError(new NotSupportedException("this method should never get called"));
System\ServiceModel\HttpBindingBase.cs (2)
296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.Format(SR.UnsupportedSecuritySetting, nameof(security.Mode), mode))); 306throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.Format(SR.UnsupportedSecuritySetting, "Transport.ClientCredentialType", transport.ClientCredentialType)));
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.Primitives (86)
Internals\System\Runtime\BufferedOutputStream.cs (8)
83throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 87throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 139throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 144throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 186throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 191throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 196throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 201throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
Internals\System\Xml\XmlMtomReader.cs (20)
2153get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2158get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2159set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); } 2164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2174throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2201throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, GetType().FullName))); 2206throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, GetType().FullName))); 2872get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2877get { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2878set { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); } 2884throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName))); 2902throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 2909throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName))); 2920throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ReadNotSupportedOnStream, stream.GetType().FullName))); 3005throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); 3010throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SeekNotSupportedOnStream, stream.GetType().FullName))); 3015throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.WriteNotSupportedOnStream, stream.GetType().FullName)));
System\IdentityModel\Selectors\SecurityTokenProvider.cs (2)
158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.TokenRenewalNotSupported, this))); 225throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.TokenCancellationNotSupported, this)));
System\IdentityModel\Tokens\SecurityKeyIdentifierClause.cs (1)
48throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.KeyIdentifierClauseDoesNotSupportKeyCreation));
System\IdentityModel\Tokens\SecurityToken.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (18)
71DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotSupported)); 96DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PublicKeyNotSupported)); 125throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.MissingPrivateKey)); 140throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPrivateKeyMisMatch)); 150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPrivateKeyMisMatch)); 158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPublicKeyMisMatch)); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.AlgorithmAndPublicKeyMisMatch)); 183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PublicKeyNotDSA)); 284throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PublicKeyNotRSA)); 290throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm))); 299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.MissingPrivateKey)); 348throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotDSA)); 359throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotRSA)); 369throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.PrivateKeyNotRSA)); 375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedCryptoAlgorithm, algorithm)));
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
161throw FxTrace.Exception.AsError(new NotSupportedException(SRP.Format(
System\ServiceModel\Channels\BufferedReadStream.cs (8)
113get { throw new NotSupportedException(nameof(Length)); } 118get { throw new NotSupportedException(nameof(Position)); } 119set { throw new NotSupportedException(nameof(Position)); } 438throw new NotSupportedException(nameof(Write)); 443throw new NotSupportedException(nameof(WriteAsync)); 448throw new NotSupportedException(nameof(WriteByte)); 453throw new NotSupportedException(nameof(Seek)); 458throw new NotSupportedException(nameof(SetLength));
System\ServiceModel\Channels\BufferedWriteStream.cs (8)
127get { throw new NotSupportedException(nameof(Length)); } 132get { throw new NotSupportedException(nameof(Position)); } 133set { throw new NotSupportedException(nameof(Position)); } 232throw new NotSupportedException(nameof(Read)); 237throw new NotSupportedException(nameof(ReadAsync)); 242throw new NotSupportedException(nameof(ReadByte)); 556throw new NotSupportedException(nameof(Seek)); 562throw new NotSupportedException(nameof(SetLength));
System\ServiceModel\Channels\SecurityChannelFactory.cs (1)
299throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ExtendedProtectionPolicyCustomChannelBindingNotSupported)));
System\ServiceModel\Channels\ServiceChannelProxy.cs (2)
83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupported1, method.Name))); 87throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupportedOnCallback1, method.Name)));
System\ServiceModel\ClientBase.cs (1)
974throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SFxMethodNotSupported1, methodName)));
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
171throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException
System\ServiceModel\RsaEndpointIdentity.cs (1)
28throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.PublicKeyNotRSA)));
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (3)
164throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateProviderForRequirement, tokenRequirement))); 184throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateSerializerForVersion, version))); 328throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SecurityTokenManagerCannotCreateAuthenticatorForRequirement, tokenRequirement)));
System\ServiceModel\Security\InitiatorSessionSymmetricTransportSecurityProtocol.cs (1)
26throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.ProtocolMustBeInitiator, nameof(InitiatorSessionSymmetricTransportSecurityProtocol))));
System\ServiceModel\Security\SecurityProtocol.cs (1)
581throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnknownTokenAttachmentMode, supportingTokens[i].SecurityTokenAttachmentMode.ToString())));
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
1355throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.SessionTokenIsNotGenericXmlToken, sessionToken, typeof(GenericXmlSecurityToken))));
System\ServiceModel\Security\SendSecurityHeader.cs (1)
521throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedTokenInclusionMode, parameters.InclusionMode)));
System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (2)
85throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException( 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(
System\ServiceModel\Security\WSSecurityJan2004.cs (1)
321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.Format(SRP.UnsupportedPasswordType, type)));
System\ServiceModel\Security\WSTrust.cs (1)
709throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.UnsupportedIssuerEntropyType));
System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.SFxCollectionReadOnly)); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SRP.SFxCopyToRequiresICollection));
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
581throw 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.Speech (31)
Internal\SeekableReadStream.cs (4)
112throw new NotSupportedException(SR.Get(SRID.SeekNotSupported)); 126throw new NotSupportedException(SR.Get(SRID.SeekNotSupported)); 218throw new NotSupportedException(SR.Get(SRID.SeekNotSupported)); 223throw new NotSupportedException(SR.Get(SRID.StreamMustBeWriteable));
Recognition\RecognizerBase.cs (14)
223throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI2, "Weight")); 253throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI2, "Priority")); 267throw new NotSupportedException(SR.Get(SRID.CannotSetPriorityOnDictation)); 338throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPICompareOption)); 357throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPICompareOption)); 372throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI)); 396throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI)); 427throw new NotSupportedException(SR.Get(SRID.NegativeTimesNotSupported)); 431throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI)); 885return new NotSupportedException(SR.Get(SRID.RecognitionNotSupportedOn64bit)); 1667throw new NotSupportedException(SR.Get(SRID.CannotSetPriorityOnDictation)); 1688throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI)); 2661throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPICompareOption)); 2955throw new NotSupportedException(SR.Get(messageId));
Recognition\SrgsGrammar\SrgsElementFactory.cs (1)
87throw new NotSupportedException(SR.Get(SRID.ReqConfidenceNotSupported));
Result\RecognitionResult.cs (3)
121throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI)); 132throw new NotSupportedException(SR.Get(SRID.SapiErrorNotSupportedForInprocRecognizer)); 251throw new NotSupportedException(SR.Get(SRID.CantGetPropertyFromSerializedInfo, "Recognizer"));
Result\RecognizedPhrase.cs (4)
272throw new NotSupportedException(SR.Get(SRID.CantGetPropertyFromSerializedInfo, "Grammar")); 684throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI)); 727throw new NotSupportedException(SR.Get(SRID.UnhandledVariant)); 780throw new NotSupportedException(SR.Get(SRID.NotSupportedWithThisVersionOfSAPI));
Result\SemanticValue.cs (5)
114throw new NotSupportedException(SR.Get(SRID.CollectionReadOnly)); 119throw new NotSupportedException(SR.Get(SRID.CollectionReadOnly)); 124throw new NotSupportedException(SR.Get(SRID.CollectionReadOnly)); 129throw new NotSupportedException(SR.Get(SRID.CollectionReadOnly)); 134throw new NotSupportedException(SR.Get(SRID.CollectionReadOnly));
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 (22)
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 (19)
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); 468NotSupportedException ex = new NotSupportedException( 710ThrowNotSupportedException(ref state, reader, new NotSupportedException(message)); 716ThrowNotSupportedException(ref state, reader, new NotSupportedException(SR.Format(SR.CannotPopulateCollection, type))); 879throw new NotSupportedException(SR.Format(SR.NoMetadataForType, type, resolver?.ToString() ?? "<null>")); 884return new NotSupportedException(SR.Format(SR.AmbiguousMetadataForType, type, match1, match2)); 890throw new NotSupportedException(SR.Format(SR.ConstructorContainsNullParameterNames, declaringType)); 919throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType)); 925throw new NotSupportedException(SR.Format(SR.Polymorphism_DerivedConverterDoesNotSupportMetadata, derivedType)); 931throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeNotSupported, runtimeType, baseType)); 937throw new NotSupportedException(SR.Format(SR.Polymorphism_RuntimeTypeDiamondAmbiguity, runtimeType, derivedType1, derivedType2, baseType)); 1071throw new NotSupportedException( 1081throw new NotSupportedException( 1094throw new NotSupportedException( 1109throw new NotSupportedException( 1168throw new NotSupportedException(SR.JsonSchemaExporter_ReferenceHandlerPreserve_NotSupported);
System.Text.RegularExpressions (40)
System\Text\RegularExpressions\CaptureCollection.cs (12)
216throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 219throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 224set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 228throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 231throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 237throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 240throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 243throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 252throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 257throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 260throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 265set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System\Text\RegularExpressions\GroupCollection.cs (12)
272throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 275throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 280set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 284throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 287throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 293throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 296throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 299throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 308throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 313throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 316throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 321set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System\Text\RegularExpressions\Match.cs (1)
203Regex? regex = _regex ?? throw new NotSupportedException(SR.NoResultOnFailed);
System\Text\RegularExpressions\MatchCollection.cs (12)
296throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 299throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 304set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 308throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 311throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 320throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 323throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 326throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 335throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 340throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 343throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection); 348set => throw new NotSupportedException(SR.NotSupported_ReadOnlyCollection);
System\Text\RegularExpressions\RegexRunner.cs (1)
146throw 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); 2137Task 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 (4)
System\Transactions\DtcProxyShim\DtcProxyShimFactory.cs (1)
82throw new NotSupportedException(SR.ImplicitDistributedTransactionsDisabled);
System\Transactions\Oletx\DtcTransactionManager.cs (2)
49throw new NotSupportedException(SR.ProxyCannotSupportMultipleNodeNames); 60throw new NotSupportedException(SR.CannotSupportNodeNameSpecification);
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")); 469add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 477add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 485add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 493add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 501add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 512add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 520add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 528add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 536add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 544add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 555add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 563add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 571add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 579add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 587add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 595add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 603add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 611add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 619add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 627add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 638add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 646add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 657add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 668add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 679add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 687add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 698add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 709add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 720add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 731add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 742add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 753add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 764add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 772add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 780add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged")); 1526throw 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)
1452throw 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)
1797throw new NotSupportedException(SR.BindingNotSupported); 6535throw new NotSupportedException(SR.ControlIsKeyLockedNumCapsScrollLockKeysSupportedOnly); 6970throw new NotSupportedException(SR.BindingNotSupported); 13473throw new NotSupportedException(SR.DesignTimeFeaturesNotSupported);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
166throw 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)
156throw new NotSupportedException(SR.ComboBoxAutoCompleteModeOnlyNoneAllowed); 200throw new NotSupportedException(SR.ComboBoxAutoCompleteSourceOnlyListItemsAllowed);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7120throw 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)
144throw new NotSupportedException(SR.BindingNotSupported); 436throw new NotSupportedException(SR.BindingNotSupported); 707throw new NotSupportedException(SR.BindingNotSupported);
System\Windows\Forms\Controls\ListView\ListView.cs (5)
455throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView); 500throw new NotSupportedException(SR.ListViewCheckBoxesNotSupportedInTileView); 1813throw new NotSupportedException(SR.ListViewTileViewDoesNotSupportCheckBoxes); 1823throw new NotSupportedException(SR.ListViewCantSetViewToTileViewInVirtualMode); 1943throw new NotSupportedException(SR.ListViewCantSetVirtualModeWhenInTileView);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
490throw new NotSupportedException(SR.PictureBoxRemoteLocationNotSupported); 563throw 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)
167throw new NotSupportedException(SR.TextBoxAutoCompleteSourceNoItems);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
226throw new NotSupportedException(SR.ToolStripDoesntSupportAutoScroll); 1565throw new NotSupportedException(SR.ToolStripRenderModeUseRendererPropertyInstead); 4067throw 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)
1284throw new NotSupportedException(SR.WebBrowserAllowDropNotSupported); 1296throw new NotSupportedException(SR.WebBrowserBackgroundImageNotSupported); 1308throw new NotSupportedException(SR.WebBrowserBackgroundImageLayoutNotSupported); 1321throw new NotSupportedException(SR.WebBrowserCursorNotSupported); 1333throw new NotSupportedException(SR.WebBrowserEnabledNotSupported); 1345throw new NotSupportedException(SR.WebBrowserRightToLeftNotSupported); 1358set => throw new NotSupportedException(SR.WebBrowserTextNotSupported); 1369throw new NotSupportedException(SR.WebBrowserUseWaitCursorNotSupported); 1381add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 1389add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Enter")); 1397add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Leave")); 1405add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseCaptureChanged")); 1413add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick")); 1421add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick")); 1429add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 1437add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 1445add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 1453add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 1461add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 1469add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 1477add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 1485add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 1493add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 1501add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 1509add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 1517add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 1525add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 1533add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 1541add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 1550add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 1558add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 1566add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 1574add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 1582add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 1590add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 1598add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 1606add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 1614add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 1622add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 1630add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 1638add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 1646add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 1654add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 1662add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 1670add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 1678add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 1686add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 1694add => 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)
201throw new NotSupportedException(SR.DataBindingAddNewNotSupportedOnPropertyManager); 211throw 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)
1697throw 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)
140throw new NotSupportedException(SR.ToolStripPanelGlyphUnsupportedDock);
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);
testhost (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
testhost.arm64 (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
testhost.x86 (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
UnitTests.Common (1)
TestTypes.cs (1)
284throw new NotSupportedException("Synchronously sending is not supported.");
vstest.console (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");
vstest.console.arm64 (1)
src\vstest\src\Microsoft.TestPlatform.Execution.Shared\ProcDumpExecutableHelper.cs (1)
84: throw new NotSupportedException($"Not supported platform {_environment.OperatingSystem}");