10 types derived from ArgumentException
System.ComponentModel.Primitives (2)
System\ComponentModel\InvalidAsynchronousStateException.cs (1)
16public class InvalidAsynchronousStateException : ArgumentException
System\ComponentModel\InvalidEnumArgumentException.cs (1)
15public class InvalidEnumArgumentException : ArgumentException
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (1)
16public class ArgumentNullException : ArgumentException
src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
18public class ArgumentOutOfRangeException : ArgumentException
src\libraries\System.Private.CoreLib\src\System\DuplicateWaitObjectException.cs (1)
15public class DuplicateWaitObjectException : ArgumentException
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (1)
12public class CultureNotFoundException : ArgumentException
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
74public sealed class DecoderFallbackException : ArgumentException
src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (1)
73public sealed class EncoderFallbackException : ArgumentException
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexParseException.cs (1)
19sealed class RegexParseException : ArgumentException
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParseException.cs (1)
19sealed class RegexParseException : ArgumentException
4757 instantiations of ArgumentException
AndroidAppBuilder (22)
ApkBuilder.cs (15)
59throw new ArgumentException($"AppDir='{AppDir}' is empty or doesn't exist"); 64throw new ArgumentException($"MainLibraryFileName='{mainLibraryFileName}' was not found in AppDir='{AppDir}'"); 69throw new ArgumentException("RuntimeIdentifier should not be empty and should contain a valid android RID"); 74throw new ArgumentException($"ProjectName='{ProjectName}' should not not contain spaces."); 88throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or empty (can be set via ANDROID_SDK_ROOT envvar)."); 93throw new ArgumentException($"Android NDK='{AndroidNdk}' was not found or empty (can be set via ANDROID_NDK_ROOT envvar)."); 103throw new ArgumentException($"Using DiagnosticPorts requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ", RuntimeComponents)}'"); 126throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < MinApiLevel={MinApiLevel}. " + 132throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < TargetApiLevel={TargetApiLevel}. " + 140throw new ArgumentException($"{buildToolsFolder} was not found."); 238throw new ArgumentException($"API level={BuildApiLevel} is not downloaded in Android SDK"); 261throw new ArgumentException($"{monoRuntimeLib} was not found"); 544throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 569throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 610throw new ArgumentException($"Android SDK ({androidSdkDir}) doesn't contain build-tools.");
src\tasks\Common\AndroidSdkHelper.cs (3)
23throw new ArgumentException($"Android SDK='{androidSdkPath}' was not found or empty (can be set via ANDROID_SDK_ROOT envvar)."); 40throw new ArgumentException($"{_buildToolsPath} was not found."); 77throw new ArgumentException($"Android SDK ({androidSdkPath}) doesn't contain build-tools.");
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
AppleAppBuilder (17)
AppleAppBuilder.cs (12)
199throw new ArgumentException($"Property \"{nameof(MonoRuntimeHeaders)}\" is not supported with NativeAOT runtime and will be ignored."); 202throw new ArgumentException($"Property \"{nameof(MainLibraryFileName)}\" is not supported with NativeAOT runtime and will be ignored."); 205throw new ArgumentException($"Property \"{nameof(ForceInterpreter)}\" is not supported with NativeAOT runtime and will be ignored."); 208throw new ArgumentException($"Property \"{nameof(ForceAOT)}\" is not supported with NativeAOT runtime and will be ignored."); 211throw new ArgumentException($"Item \"{nameof(RuntimeComponents)}\" is not supported with NativeAOT runtime and will be ignored."); 214throw new ArgumentException($"Property \"{nameof(DiagnosticPorts)}\" is not supported with NativeAOT runtime and will be ignored."); 217throw new ArgumentException($"Property \"{nameof(EnableRuntimeLogging)}\" is not supported with NativeAOT runtime and will be ignored."); 222throw new ArgumentException($"The \"{nameof(AppleAppBuilderTask)}\" task was not given a value for the required parameter \"{nameof(MonoRuntimeHeaders)}\" when using Mono runtime."); 237throw new ArgumentException($"MainLibraryFileName='{MainLibraryFileName}' was not found in AppDir='{AppDir}'"); 243throw new ArgumentException($"ProjectName='{ProjectName}' should not contain spaces"); 299throw new ArgumentException($"Using DiagnosticPorts requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ", RuntimeComponents)}'"); 304throw new ArgumentException("DevTeamProvisioning must be set to a valid value when App Sandbox is enabled, using '-' is not supported.");
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
Xcode.cs (1)
145throw new ArgumentException("A valid runtime identifier was not specified (os-arch)");
AssemblyStripper (52)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Binary\ImageReader.cs (2)
98 throw new ArgumentException ("Empty image array"); 109 throw new ArgumentException ("Can not read from stream");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\CilWorker.cs (17)
53 throw new ArgumentException ("opcode"); 64 throw new ArgumentException ("opcode"); 74 throw new ArgumentException ("code"); 85 throw new ArgumentException ("opcode"); 96 throw new ArgumentException ("opcode"); 106 throw new ArgumentException ("opcode"); 115 throw new ArgumentException ("opcode"); 130 throw new ArgumentException ("opcode"); 144 throw new ArgumentException ("opcode"); 152 throw new ArgumentException ("opcode"); 160 throw new ArgumentException ("opcode"); 168 throw new ArgumentException ("opcode"); 179 throw new ArgumentException ("opcode"); 189 throw new ArgumentException ("opcode"); 200 throw new ArgumentException ("opcode"); 211 throw new ArgumentException ("opcode"); 393 throw new ArgumentException ("Instruction not in method body");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\ExceptionHandlerCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ExceptionHandler).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\InstructionCollection.cs (1)
86 throw new ArgumentException ("Must be of type " + typeof (Instruction).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\ScopeCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (Scope).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Cil\VariableDefinitionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (VariableDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Signatures\SignatureWriter.cs (1)
478 throw new ArgumentException ("tc");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ArrayDimensionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ArrayDimension).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\AssemblyNameReference.cs (2)
186 throw new ArgumentException ("Name can not be empty"); 200 throw new ArgumentException ("Malformed name");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\AssemblyNameReferenceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (AssemblyNameReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ConstraintCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (TypeReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ConstructorCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (MethodDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\CustomAttributeCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (CustomAttribute).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\EventDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (EventDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ExternTypeCollection.cs (1)
160 throw new ArgumentException ();
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\FieldDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (FieldDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\GenericArgumentCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (TypeReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\GenericParameterCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (GenericParameter).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\InterfaceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (TypeReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\MemberReferenceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (MemberReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\MethodDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (MethodDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ModuleDefinition.cs (3)
198 throw new ArgumentException ("The context parameter does not belongs to this module"); 213 throw new ArgumentException ("The context parameter is not a generic type"); 460 throw new ArgumentException ("The context parameter does not belongs to this module");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ModuleDefinitionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ModuleDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ModuleReferenceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ModuleReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\NestedTypeCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (TypeDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\OverrideCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (MethodReference).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ParameterDefinitionCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (ParameterDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\PropertyDefinitionCollection.cs (1)
107 throw new ArgumentException ("Must be of type " + typeof (PropertyDefinition).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ReflectionWriter.cs (1)
1026 throw new ArgumentException ("Non valid element for a constant");
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\ResourceCollection.cs (1)
85 throw new ArgumentException ("Must be of type " + typeof (Resource).FullName);
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\TypeDefinitionCollection.cs (1)
169 throw new ArgumentException ();
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\TypeReferenceCollection.cs (1)
169 throw new ArgumentException ();
ClientSample (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
CodeGenerator (1)
HttpUtilities\HttpUtilities.cs (1)
251throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "MethodAsciiString {0} length is greather than {1}", method, length));
Crossgen2Tasks (3)
CommonFilePulledFromSdkRepo\LogAdapter.cs (1)
76throw new ArgumentException(
CommonFilePulledFromSdkRepo\Logger.cs (2)
126throw new ArgumentException( 135throw new ArgumentException(
dotnet-dev-certs (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
dotnet-getdocument (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
dotnet-openapi (14)
Commands\AddProjectCommand.cs (1)
49throw new ArgumentException($"{SourceProjectArgName} of '{sourceFile}' was not valid. Valid values must be project file(s)");
Commands\BaseCommand.cs (9)
104throw new ArgumentException($"The project '{project}' does not exist."); 112throw new ArgumentException("No project files were found in the current directory. Either move to a new directory or provide the project explicitly"); 116throw new ArgumentException("More than one project was found in this directory, either remove a duplicate or explicitly provide the project."); 218throw new ArgumentException("dotnet was not found on the path."); 235throw new ArgumentException($"Adding package `{packageId}` to `{projectFile.Directory}` took longer than {timeout} seconds."); 251throw new ArgumentException($"Adding package `{packageId}` to `{projectFile.Directory}` returned ExitCode `{process.ExitCode}` and gave error `{error}` and output `{output}`"); 286throw new ArgumentException($"The given url returned '{response.StatusCode}', indicating failure. The url might be wrong, or there might be a networking issue."); 432throw new ArgumentException($"Invalid value '{value}' given as code generator."); 518throw new ArgumentException($"File '{destinationPath}' already exists. Aborting to avoid conflicts. Provide the '--output-file' argument with an unused file to resolve.");
Commands\RefreshCommand.cs (2)
53throw new ArgumentException("There was no OpenAPI reference to refresh with the given URL."); 62throw new ArgumentException("'dotnet openapi refresh' must be given a URL");
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
dotnet-sql-cache (3)
Program.cs (1)
268throw new ArgumentException(
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
dotnet-user-jwts (3)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
28throw new ArgumentException(SecretsHelpersResources.FormatError_InvalidSecretsId(newSecretsId));
dotnet-user-secrets (3)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
28throw new ArgumentException(SecretsHelpersResources.FormatError_InvalidSecretsId(newSecretsId));
GetDocument.Insider (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
http2cat (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
IIS.Common.TestLib (1)
TestConnections.cs (1)
242throw new ArgumentException($"TestConnection does not support address family of type {addressFamily}", nameof(addressFamily));
IIS.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
IIS.LongTests (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
IIS.NewHandler.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
IIS.NewShim.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
IIS.ShadowCopy.Tests (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
IISExpress.FunctionalTests (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
illink (32)
ILLink.RoslynAnalyzer (16)
DataFlow\ControlFlowGraphProxy.cs (4)
137 throw new ArgumentException ("Must be a catch, filter, or finally region: {}", nameof (catchOrFilterOrFinallyRegion)); 164 throw new ArgumentException ("Must be a catch or filter region: {}", nameof (catchOrFilterRegion)); 168 throw new ArgumentException ("Must not be a catch block with filter: {}", nameof (catchOrFilterRegion)); 209 throw new ArgumentException ("Must be a catch region: {}", nameof (catchRegion));
DataFlowAnalyzerContext.cs (1)
20 throw new System.ArgumentException ($"Analyzer {analyzer.GetType ().Name} is not in the cache");
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (3)
84 throw new ArgumentException (null, nameof (tryOrCatchOrFilterRegion)); 106 throw new ArgumentException (null, nameof (finallyRegion)); 118 throw new ArgumentException (null, nameof (finallyRegion));
src\tools\illink\src\ILLink.Shared\DiagnosticId.cs (1)
240 _ => throw new ArgumentException ($"The provided diagnostic id '{diagnosticId}' does not fall into the range of supported warning codes 2001 to 6000 (inclusive).")
src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (6)
328 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 339 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 380 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 433 throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is an unexpected intrinsic."); 595 _ => throw new ArgumentException ($"Reflection call '{calledMethod.GetDisplayName ()}' inside '{GetContainingSymbolDisplayName ()}' is of unexpected member type."), 620 throw new ArgumentException ($"Error processing reflection call '{calledMethod.GetDisplayName ()}' inside {GetContainingSymbolDisplayName ()}. Unexpected member kind.");
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (1)
41 _ => throw new System.ArgumentException (type.ToString ())
ILLink.Tasks (6)
LinkTask.cs (6)
373 throw new ArgumentException ($"optimization metadata {optimization} must be True or False"); 382 throw new ArgumentException ($"TrimmerSingleWarn metadata must be True or False"); 454 throw new ArgumentException ("custom data requires \"Value\" metadata"); 464 throw new ArgumentException ("feature settings require \"Value\" metadata"); 483 throw new ArgumentException ("custom step requires \"Type\" metadata"); 490 throw new ArgumentException ("custom step may not have both \"BeforeStep\" and \"AfterStep\" metadata");
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
136throw new ArgumentException("Certificate was not from this issuer", nameof(certificate));
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
62throw new ArgumentException($"TestConnection does not support address family of type {addressFamily}", nameof(addressFamily));
installer.tasks (3)
StaticFileRegeneration\RegenerateThirdPartyNotices.cs (1)
56?? throw new ArgumentException($"{item.ItemSpec} specifies no Branch.");
StaticFileRegeneration\TpnDocument.cs (1)
47throw new ArgumentException($"No sections found.");
StaticFileRegeneration\TpnSectionHeader.cs (1)
108throw new ArgumentException(
InteropClient (1)
InteropClient.cs (1)
281throw new ArgumentException("Unknown test case " + options.TestCase);
LibraryBuilder (5)
LibraryBuilder.cs (1)
129throw new ArgumentException($"{TargetOS} is not yet supported by the librarybuilder task.");
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
44throw new ArgumentException(
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenSerializerTest.cs (1)
168throw new ArgumentException("Invalid salt value in data");
Microsoft.AspNetCore.App.Analyzers (4)
Infrastructure\VirtualChars\VirtualChar.cs (2)
64throw new ArgumentException("Must be a surrogate char.", nameof(surrogateChar)); 79throw new ArgumentException("Span should not be empty.", nameof(span));
Infrastructure\VirtualChars\VirtualCharSequence.cs (2)
58throw new ArgumentException("Span start out of range."); 63throw new ArgumentException("Span end out of range.");
Microsoft.AspNetCore.App.Analyzers.Test (5)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (5)
124throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw multiple occurrences of {0}", PositionString)); 137throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", SpanEndString, SpanStartString)); 151throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", NamedSpanEndString, NamedSpanStartString)); 164throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", SpanStartString, SpanEndString)); 169throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Saw {0} without matching {1}", NamedSpanEndString, NamedSpanEndString));
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationOptions.cs (1)
55throw new ArgumentException(Resources.FormatException_OptionMustBeProvided(nameof(CallbackPath)), nameof(CallbackPath));
Microsoft.AspNetCore.Authentication.Abstractions (2)
AuthenticationScheme.cs (1)
26throw new ArgumentException("handlerType must implement IAuthenticationHandler.");
TokenExtensions.cs (1)
39throw new ArgumentException("Token name cannot be null for any token.", nameof(tokens));
Microsoft.AspNetCore.Authentication.Negotiate (1)
LdapSettings.cs (1)
89throw new ArgumentException($"{nameof(MachineAccountPassword)} should only be specified when {nameof(MachineAccountName)} is configured.");
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthOptions.cs (1)
36throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Exception_OptionMustBeProvided, nameof(CallbackPath)), nameof(CallbackPath));
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
104throw new ArgumentException("Options.CallbackPath must be provided.", nameof(CallbackPath));
Microsoft.AspNetCore.Components (21)
CascadingValue.cs (3)
81throw new ArgumentException($"The parameter '{nameof(Name)}' for component '{nameof(CascadingValue<TValue>)}' does not allow null or empty values."); 90throw new ArgumentException($"The component '{nameof(CascadingValue<TValue>)}' does not accept a parameter with the name '{parameter.Name}'."); 105throw new ArgumentException($"Missing required parameter '{nameof(Value)}' for component '{GetType().Name}'.");
DefaultComponentActivator.cs (1)
21throw new ArgumentException($"The type {componentType.FullName} does not implement {nameof(IComponent)}.", nameof(componentType));
LayoutAttribute.cs (1)
25throw new ArgumentException($"Invalid layout type: {layoutType.FullName} " +
NavigationManager.cs (3)
251throw new ArgumentException(message); 277throw new ArgumentException(message); 557throw new ArgumentException(message);
PersistentComponentState.cs (1)
84throw new ArgumentException($"There is already a persisted object under the same key '{key}'");
Rendering\RenderTreeBuilder.cs (2)
424throw new ArgumentException($"The {nameof(frame.FrameType)} must be {RenderTreeFrameType.Attribute}."); 502throw new ArgumentException($"The component type must implement {typeof(IComponent).FullName}.");
RenderTree\Renderer.cs (4)
524throw new ArgumentException($"The frame's {nameof(RenderTreeFrame.FrameType)} property must equal {RenderTreeFrameType.Component}", nameof(frameIndex)); 529throw new ArgumentException($"The frame already has a non-null component instance", nameof(frameIndex)); 681throw new ArgumentException($"There is no event handler associated with this event. EventId: '{eventHandlerId}'.", nameof(eventHandlerId)); 700: throw new ArgumentException($"The renderer does not have a component with ID {componentId}.");
RenderTree\StackObjectPool.cs (1)
64throw new ArgumentException($"Attempting to return wrong pooled instance. {nameof(Get)}/{nameof(Return)} calls must form a stack.");
Routing\RouteData.cs (1)
26throw new ArgumentException($"The value must implement {nameof(IComponent)}.", nameof(pageType));
Sections\SectionContent.cs (1)
104throw new ArgumentException($"Unknown parameter '{param.Name}'");
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
381throw new ArgumentException($"An element with the key '{key}' already exists in the {nameof(RouteValueDictionary)}.");
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
734throw new ArgumentException(Resources.FormatTemplateRoute_InvalidLiteral(content));
src\Shared\UrlDecoder\UrlDecoder.cs (1)
22throw new ArgumentException(
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
113throw new ArgumentException("Unsupported Language");
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
103throw new ArgumentException(Resources.FormatTypeMustDeriveFromType(componentType, typeof(IComponent)));
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
168_ => throw new ArgumentException(Resources.FormatUnsupportedRenderMode(mode), nameof(mode)),
Rendering\SSRRenderModeBoundary.cs (1)
48_ => throw new ArgumentException($"Server-side rendering does not support the render mode '{renderMode}'.", nameof(renderMode))
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
36?? throw new ArgumentException("Could not deserialize state correctly", nameof(existingState));
Microsoft.AspNetCore.Components.Forms (8)
FieldIdentifier.cs (8)
50throw new ArgumentException("The model must be a reference-typed object.", nameof(model)); 117throw new ArgumentException("The provided expression must evaluate to a non-null value."); 132throw new ArgumentException("The provided expression must evaluate to a non-null value."); 137throw new ArgumentException($"The provided expression contains a {accessorBody.GetType().Name} which is not supported. {nameof(FieldIdentifier)} only supports simple member accessors (fields, properties) of an object."); 149throw new ArgumentException($"The provided expression contains a {accessorBody.GetType().Name} which is not supported. {nameof(FieldIdentifier)} only supports simple member accessors (fields, properties) of an object."); 163value = model.Value ?? throw new ArgumentException("The provided expression must evaluate to a non-null value."); 177throw new ArgumentException("The provided expression must evaluate to a non-null value."); 209throw new ArgumentException("The provided expression must evaluate to a non-null value.");
Microsoft.AspNetCore.Components.QuickGrid (2)
Columns\GridSort.cs (2)
140throw new ArgumentException(ExpressionNotRepresentableMessage); 165throw new ArgumentException(ExpressionNotRepresentableMessage);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
113throw new ArgumentException("Unsupported Language");
Microsoft.AspNetCore.Components.Server (7)
BlazorPack\Requires.cs (1)
20throw new ArgumentException(message, paramName);
Circuits\CircuitHost.cs (1)
55throw new ArgumentException($"Property '{nameof(CircuitId.Secret)}' cannot be null.", nameof(circuitId));
Circuits\CircuitRegistry.cs (1)
79throw new ArgumentException($"Circuit with identity {circuitHost.CircuitId} is already registered.");
Circuits\RemoteJSDataStream.cs (1)
50throw new ArgumentException($"SignalR MaximumIncomingBytes must be at least 1 kb.");
Circuits\RemoteJSRuntime.cs (1)
157throw new ArgumentException($"The stream {streamId} is already pending.");
src\Components\Shared\src\RenderBatchWriter.cs (1)
201throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
36?? throw new ArgumentException("Could not deserialize state correctly", nameof(existingState));
Microsoft.AspNetCore.Components.Server.Tests (1)
ProtectedBrowserStorageTest.cs (1)
341throw new ArgumentException($"The value is not protected with the expected purpose '{_purpose}'. Value supplied: '{protectedString}'", nameof(protectedData));
Microsoft.AspNetCore.Components.Web (4)
JSComponents\JSComponentInterop.cs (2)
70throw new ArgumentException($"There is no registered JS component with identifier '{identifier}'."); 137throw new ArgumentException($"There is no declared parameter named '{parameterName}', so the supplied object cannot be deserialized.");
Routing\NavigationLock.cs (1)
61throw new ArgumentException($"The component '{nameof(NavigationLock)}' does not accept a parameter with the name '{parameter.Name}'.");
WebEventData\ChangeEventArgsReader.cs (1)
37throw new ArgumentException($"Unsupported {nameof(ChangeEventArgs)} value {jsonElement}.");
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\RootComponentMapping.cs (1)
26throw new ArgumentException(
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
36?? throw new ArgumentException("Could not deserialize state correctly", nameof(existingState));
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
PullFromJSDataStreamTest.cs (1)
126throw new ArgumentException($"Unexpected call to InvokeAsync, expected byte[] got {typeof(TValue)}");
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
201throw new ArgumentException($"Unsupported frame type: {frame.FrameType}");
Microsoft.AspNetCore.ConcurrencyLimiter (3)
ConcurrencyLimiterMiddleware.cs (1)
32throw new ArgumentException("The value of 'options.OnRejected' must not be null.", nameof(options));
QueuePolicies\BasePolicy.cs (2)
26throw new ArgumentException("MaxConcurrentRequests must be a positive integer.", nameof(options)); 32throw new ArgumentException("The RequestQueueLimit cannot be a negative number.", nameof(options));
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsService.cs (1)
65throw new ArgumentException(Resources.InsecureConfiguration, nameof(policy));
Microsoft.AspNetCore.DataProtection (4)
AuthenticatedEncryption\ConfigurationModel\XmlSerializedDescriptorInfo.cs (1)
30throw new ArgumentException(
Error.cs (2)
20return new ArgumentException(Resources.Common_ArgumentCannotBeNullOrEmpty, parameterName); 26return new ArgumentException(message, parameterName);
XmlEncryption\EncryptedXmlInfo.cs (1)
29throw new ArgumentException(
Microsoft.AspNetCore.DataProtection.Abstractions (5)
DataProtectionCommonExtensions.cs (2)
42throw new ArgumentException(Resources.DataProtectionExtensions_NullPurposesCollection, nameof(purposes)); 50throw new ArgumentException(Resources.DataProtectionExtensions_NullPurposesCollection, nameof(purposes));
src\Shared\WebEncoders\WebEncoders.cs (3)
115throw new ArgumentException( 247throw new ArgumentException( 403throw new ArgumentException(
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesMiddleware.cs (1)
30throw new ArgumentException("Missing options.HandleAsync implementation.");
Microsoft.AspNetCore.Diagnostics.HealthChecks (2)
Builder\HealthCheckApplicationBuilderExtensions.cs (2)
119throw new ArgumentException("The port must be a valid integer.", nameof(port)); 182throw new ArgumentException("The port must be a valid integer.", nameof(port));
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\Json\JsonConverterHelper.cs (2)
125throw new ArgumentException("Invalid field type"); 221throw new ArgumentException("Invalid field type");
Microsoft.AspNetCore.Hosting (3)
Internal\HostingEnvironmentExtensions.cs (2)
19throw new ArgumentException($"The content root '{contentRootPath}' does not exist.", nameof(contentRootPath)); 70throw new ArgumentException($"The content root '{contentRootPath}' does not exist.", nameof(contentRootPath));
Internal\StartupLoader.cs (1)
242throw new ArgumentException(
Microsoft.AspNetCore.Hosting.Abstractions (1)
HostingStartupAttribute.cs (1)
24throw new ArgumentException($@"""{hostingStartupType}"" does not implement {typeof(IHostingStartup)}.", nameof(hostingStartupType));
Microsoft.AspNetCore.Http (2)
HeaderDictionary.cs (1)
198throw new ArgumentException("The key is null");
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
236throw new ArgumentException($"An element with the key '{key}' already exists in the {nameof(AdaptiveCapacityDictionary<TKey, TValue>)}.", nameof(key));
Microsoft.AspNetCore.Http.Abstractions (11)
CookieBuilder.cs (1)
24: throw new ArgumentException(Resources.ArgumentCannotBeNullOrEmpty, nameof(value));
Extensions\MapExtensions.cs (1)
56throw new ArgumentException("The path must not end with a '/'", nameof(pathMatch));
Extensions\MapMiddleware.cs (1)
28throw new ArgumentException("Branch not set on options.", nameof(options));
Extensions\MapWhenMiddleware.cs (2)
28throw new ArgumentException("Predicate not set on options.", nameof(options)); 33throw new ArgumentException("Branch not set on options.", nameof(options));
Extensions\UsePathBaseMiddleware.cs (1)
27throw new ArgumentException($"{nameof(pathBase)} cannot be null or empty.");
FragmentString.cs (1)
30throw new ArgumentException("The leading '#' must be included for a non-empty fragment.", nameof(value));
PathString.cs (1)
41throw new ArgumentException(Resources.FormatException_PathMustStartWithSlash(nameof(value)), nameof(value));
QueryString.cs (1)
32throw new ArgumentException("The leading '?' must be included for a non-empty query.", nameof(value));
Routing\RouteValueDictionary.cs (1)
379throw new ArgumentException(message, nameof(key));
src\Shared\UrlDecoder\UrlDecoder.cs (1)
22throw new ArgumentException(
Microsoft.AspNetCore.Http.Connections (3)
src\Shared\WebEncoders\WebEncoders.cs (3)
115throw new ArgumentException( 247throw new ArgumentException( 403throw new ArgumentException(
Microsoft.AspNetCore.Http.Connections.Client (6)
HttpConnection.cs (2)
141throw new ArgumentException("Options does not have a URL specified.", nameof(httpConnectionOptions)); 158throw new ArgumentException("ServerSentEvents can not be the only transport specified when running in the browser.", nameof(httpConnectionOptions));
Internal\DefaultTransportFactory.cs (1)
24throw new ArgumentException($"{nameof(httpClient)} cannot be null when {nameof(requestedTransportType)} is not {nameof(HttpTransportType.WebSockets)}.", nameof(httpClient));
Internal\LongPollingTransport.cs (1)
47throw new ArgumentException($"The '{transferFormat}' transfer format is not supported by this transport.", nameof(transferFormat));
Internal\ServerSentEventsTransport.cs (1)
51throw new ArgumentException($"The '{transferFormat}' transfer format is not supported by this transport.", nameof(transferFormat));
Internal\WebSocketsTransport.cs (1)
293throw new ArgumentException($"The '{transferFormat}' transfer format is not supported by this transport.", nameof(transferFormat));
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
235throw new ArgumentException($"{nameof(methodInfo)} does not have a declaring type.");
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (1)
55_ => throw new ArgumentException($"Received unexpected HTTP method: {endpoint.HttpMethod}")
Microsoft.AspNetCore.Http.Results (1)
ValidationProblem.cs (1)
23throw new ArgumentException($"{nameof(ValidationProblem)} only supports a 400 Bad Request response status code.", nameof(problemDetails));
Microsoft.AspNetCore.HttpLogging (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
Microsoft.AspNetCore.InternalTesting (1)
TestFileOutputContext.cs (1)
61throw new ArgumentException("The extension must start with '.' if one is provided.", nameof(extension));
Microsoft.AspNetCore.InternalTesting.Tests (1)
ExceptionAssertTest.cs (1)
18throw new ArgumentException("Value cannot be null or an empty string.", "foo");
Microsoft.AspNetCore.JsonPatch (1)
Converters\JsonPatchDocumentConverter.cs (1)
27throw new ArgumentException(Resources.FormatParameterMustMatchType(nameof(objectType), "JsonPatchDocument"), nameof(objectType));
Microsoft.AspNetCore.JsonPatch.Tests (1)
WriteOnceDynamicTestObject.cs (1)
111throw new ArgumentException($"Value for {key} already exists");
Microsoft.AspNetCore.Localization (1)
ApplicationBuilderExtensions.cs (1)
86throw new ArgumentException(Resources.Exception_CulturesShouldNotBeEmpty);
Microsoft.AspNetCore.Mvc.Abstractions (6)
ModelBinding\BindingInfo.cs (1)
67throw new ArgumentException(
ModelBinding\BindingSource.cs (1)
189throw new ArgumentException(message, nameof(bindingSource));
ModelBinding\CompositeBindingSource.cs (4)
36throw new ArgumentException(message, nameof(bindingSources)); 44throw new ArgumentException(message, nameof(bindingSources)); 52throw new ArgumentException(message, nameof(bindingSources)); 87throw new ArgumentException(message, nameof(bindingSource));
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadata.cs (1)
30public int StatusCode => _statusCode ?? throw new ArgumentException("Status code is not available when IsDefaultResponse is true");
Microsoft.AspNetCore.Mvc.Core (36)
ActionConstraints\HttpMethodActionConstraint.cs (1)
41throw new ArgumentException($"{nameof(httpMethods)} cannot contain null or empty strings.");
ActionResultOfT.cs (2)
28throw new ArgumentException(error); 44throw new ArgumentException(error);
ApiConventionMethodAttribute.cs (2)
55throw new ArgumentException(Resources.FormatApiConventionMethod_NoMethodFound(methodName, conventionType), nameof(methodName)); 59throw new ArgumentException(Resources.FormatApiConventionMethod_AmbiguousMethodName(methodName, conventionType), nameof(methodName));
ApiConventionTypeAttribute.cs (2)
58throw new ArgumentException(Resources.FormatApiConventionMustBeStatic(conventionType), nameof(conventionType)); 78throw new ArgumentException(errorMessage, nameof(conventionType));
BindPropertyAttribute.cs (1)
48throw new ArgumentException(
ControllerContext.cs (1)
40throw new ArgumentException(Resources.FormatActionDescriptorMustBeBasedOnControllerAction(
Controllers\ControllerActivatorProvider.cs (1)
47throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\ControllerFactoryProvider.cs (3)
45throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 80throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 101throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerActivator.cs (2)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 43throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerFactory.cs (1)
45throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Controllers\DefaultControllerPropertyActivator.cs (1)
40throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Filters\FilterCollection.cs (2)
84throw new ArgumentException(message, nameof(filterType)); 162throw new ArgumentException(message, nameof(filterType));
Formatters\FormatterMappings.cs (3)
60throw new ArgumentException(message, nameof(format)); 87throw new ArgumentException( 101throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.Format_NotValid, format), nameof(format));
Formatters\MediaType.cs (1)
64throw new ArgumentException(Resources.FormatArgument_InvalidOffsetLength(nameof(offset), nameof(length)));
Infrastructure\ModelStateInvalidFilter.cs (1)
34throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
ModelBinderAttribute.cs (1)
66throw new ArgumentException(
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
29throw new ArgumentException(
ModelBinding\BindingSourceValueProvider.cs (2)
44throw new ArgumentException(message, nameof(bindingSource)); 52throw new ArgumentException(message, nameof(bindingSource));
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
71throw new ArgumentException(
ModelBinding\Metadata\BindingMetadata.cs (1)
47throw new ArgumentException(
ModelBinding\ModelBindingHelper.cs (1)
229throw new ArgumentException(message, nameof(modelType));
ModelBinding\ModelMetadataProviderExtensions.cs (1)
38throw new ArgumentException(message, nameof(propertyName));
ModelBinding\Validation\ValidationVisitor.cs (1)
173throw new ArgumentException(Resources.FormatValidationVisitor_ContainerCannotBeSpecified(metadata.MetadataKind));
Routing\DynamicControllerRouteValueTransformerMetadata.cs (1)
16throw new ArgumentException(
Routing\UrlHelperFactory.cs (2)
25throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 32throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Microsoft.AspNetCore.Mvc.Core.Test (5)
Infrastructure\ControllerActionInvokerTest.cs (1)
1877throw new ArgumentException("Argument Exception");
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
1287set { throw new ArgumentException("This is an exception.", "value"); } 1293set { throw new ArgumentException("This is a different exception.", "value"); }
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (2)
1462set { throw new ArgumentException("This is an exception.", "value"); } 1468set { throw new ArgumentException("This is a different exception.", "value"); }
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsModelValidator.cs (2)
55throw new ArgumentException( 63throw new ArgumentException(
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
EnumerableWrapperProvider.cs (1)
36throw new ArgumentException(
SerializableErrorWrapperProvider.cs (1)
22throw new ArgumentException(
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
HtmlGenerationWithCultureTest.cs (1)
190throw new ArgumentException($"Document does not contain element that matches the selector {selector}: " + Environment.NewLine + document.DocumentElement.OuterHtml);
Infrastructure\IHtmlDocumentExtensions.cs (1)
16throw new ArgumentException($"Document does not contain element that matches the selector {selector}: " + Environment.NewLine + document.DocumentElement.OuterHtml);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
JsonHelperExtensions.cs (1)
44throw new ArgumentException(message, nameof(jsonHelper));
Microsoft.AspNetCore.Mvc.Razor (4)
Compilation\CompiledViewDescriptor.cs (1)
46throw new ArgumentException(Resources.FormatCompiledViewDescriptor_NoData(nameof(item), nameof(attribute)));
RazorFileHierarchy.cs (1)
18throw new ArgumentException(Resources.RazorProject_PathMustStartWithForwardSlash, nameof(path));
RazorViewEngine.cs (2)
61throw new ArgumentException( 68throw new ArgumentException(
Microsoft.AspNetCore.Mvc.RazorPages (9)
ApplicationModels\PageConventionCollection.cs (2)
256throw new ArgumentException(Resources.FormatInvalidValidPageName(pageName), argumentName); 267throw new ArgumentException(Resources.PathMustBeRootRelativePath, nameof(folderPath));
DependencyInjection\MvcRazorPagesMvcBuilderExtensions.cs (1)
45throw new ArgumentException(Resources.PathMustBeRootRelativePath, nameof(rootDirectory));
Infrastructure\DefaultPageActivatorProvider.cs (1)
27throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Infrastructure\DefaultPageModelActivatorProvider.cs (1)
26throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Infrastructure\DynamicPageRouteValueTransformerMetadata.cs (1)
17throw new ArgumentException(
Infrastructure\ServiceBasedPageModelActivatorProvider.cs (1)
21throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
PageResult.cs (1)
54throw new ArgumentException(Resources.FormatPageViewResult_ContextIsInvalid(
RazorPagesOptions.cs (1)
37throw new ArgumentException(Resources.PathMustBeRootRelativePath, nameof(value));
Microsoft.AspNetCore.Mvc.TagHelpers (6)
Cache\DistributedCacheTagHelperFormatter.cs (1)
22throw new ArgumentException(
ComponentTagHelper.cs (1)
75throw new ArgumentException(
TagHelperOutputExtensions.cs (3)
70throw new ArgumentException( 153throw new ArgumentException(Resources.ArgumentCannotContainHtmlSpace, nameof(classValue)); 207throw new ArgumentException(Resources.ArgumentCannotContainHtmlSpace, nameof(classValue));
ValidationSummaryTagHelper.cs (1)
68throw new ArgumentException(
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
GlobbingUrlBuilderTest.cs (1)
460throw new ArgumentException($"{nameof(rootNode)} must have children.", nameof(rootNode));
TagHelperOutputExtensionsTest.cs (1)
1043var expected = new ArgumentException(Resources.ArgumentCannotContainHtmlSpace, nameof(classValue)).Message;
Microsoft.AspNetCore.Mvc.ViewFeatures (18)
AttributeDictionary.cs (3)
162throw new ArgumentException( 193throw new ArgumentException( 251throw new ArgumentException(
Controller.cs (1)
55throw new ArgumentException(Resources.ArgumentCannotBeNullOrEmpty, nameof(ViewData));
DefaultHtmlGenerator.cs (4)
545throw new ArgumentException( 622throw new ArgumentException( 724throw new ArgumentException( 1150throw new ArgumentException(
ExpressionHelper.cs (1)
208throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
HtmlHelper.cs (3)
376throw new ArgumentException(message, nameof(TEnum)); 394throw new ArgumentException(message, nameof(enumType)); 1378throw new ArgumentException(message, nameof(metadata));
HtmlHelperOfT.cs (2)
54throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull( 80throw new ArgumentException(Resources.FormatArgumentPropertyUnexpectedType(
Rendering\HtmlHelperComponentExtensions.cs (1)
77_ => throw new ArgumentException($"Unsupported render mode {renderMode}", nameof(renderMode)),
Rendering\TagBuilder.cs (1)
50throw new ArgumentException(Resources.ArgumentCannotBeNullOrEmpty, nameof(tagBuilder));
ViewComponents\DefaultViewComponentActivator.cs (1)
43throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
ViewDataDictionaryControllerPropertyActivator.cs (1)
58throw new ArgumentException(Resources.FormatPropertyOfTypeCannotBeNull(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
DefaultDisplayTemplatesTest.cs (1)
353throw new ArgumentException(expectedMessage);
Microsoft.AspNetCore.OutputCaching (3)
Memory\MemoryOutputCacheStore.cs (1)
88throw new ArgumentException(Resources.TagCannotBeNull);
RecyclableArrayBufferWriter.cs (1)
47throw new ArgumentException(null, nameof(count));
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
Microsoft.AspNetCore.Owin (3)
OwinEnvironment.cs (3)
42throw new ArgumentException("Missing required feature: " + nameof(IHttpRequestFeature) + ".", nameof(context)); 46throw new ArgumentException("Missing required feature: " + nameof(IHttpResponseFeature) + ".", nameof(context)); 261throw new ArgumentException("Not enough available space in array", nameof(array));
Microsoft.AspNetCore.RateLimiting (3)
RateLimiterOptions.cs (3)
55throw new ArgumentException($"There already exists a policy with the name {policyName}.", nameof(policyName)); 73throw new ArgumentException($"There already exists a policy with the name {policyName}.", nameof(policyName)); 98throw new ArgumentException($"There already exists a policy with the name {policyName}.", nameof(policyName));
Microsoft.AspNetCore.RateLimiting.Tests (2)
TestPartitionedRateLimiter.cs (2)
38throw new ArgumentException("Tests only support 1 permit at a time"); 64throw new ArgumentException("Tests only support 1 permit at a time");
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingFeature.cs (1)
26throw new ArgumentException($"When {nameof(value)} contains more than one value, it cannot contain a null or empty value.", nameof(value));
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
Microsoft.AspNetCore.ResponseCompression (2)
CompressionProviderCollection.cs (1)
39throw new ArgumentException($"The provider must implement {nameof(ICompressionProvider)}.", nameof(providerType));
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
Microsoft.AspNetCore.Rewrite (5)
ApacheModRewrite\RuleBuilder.cs (3)
98throw new ArgumentException("Invalid operation for integer comparison."); 121throw new ArgumentException("Invalid operation for string comparison."); 149throw new ArgumentException("Invalid operation for property comparison");
RedirectToNonWwwRule.cs (1)
27throw new ArgumentException($"One or more {nameof(domains)} must be provided.");
RedirectToWwwRule.cs (1)
27throw new ArgumentException($"One or more {nameof(domains)} must be provided.");
Microsoft.AspNetCore.Routing (15)
DefaultLinkGenerator.cs (1)
162throw new ArgumentException("A host must be provided.", nameof(host));
LinkGeneratorEndpointNameAddressExtensions.cs (2)
312throw new ArgumentException("A host must be provided.", nameof(host)); 361throw new ArgumentException("A host must be provided.", nameof(host));
Matching\CandidateSet.cs (1)
43throw new ArgumentException($"The provided {nameof(endpoints)}, {nameof(values)}, and {nameof(scores)} must have the same length.");
Patterns\RoutePatternFactory.cs (9)
734throw new ArgumentException(Resources.FormatTemplateRoute_InvalidLiteral(content)); 775throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 798throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 825throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 830throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue); 859throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 864throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue); 895throw new ArgumentException(Resources.FormatTemplateRoute_InvalidParameterName(parameterName)); 900throw new ArgumentException(Resources.TemplateRoute_OptionalCannotHaveDefaultValue);
Template\TemplateParser.cs (1)
30throw new ArgumentException(ex.Message, nameof(routeTemplate), ex);
Tree\TreeRouter.cs (1)
113throw new ArgumentException(
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Deployers\ApplicationDeployer.cs (1)
34throw new ArgumentException($"Invalid ServerType '{DeploymentParameters.ServerType}'.");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (6)
39throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerName}' for {nameof(RemoteWindowsDeploymentParameters.ServerName)}"); 44throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountName}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountName)}." + 50throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountPassword}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountPassword)}." + 57throw new ArgumentException($"Invalid value '{_deploymentParameters.DotnetRuntimePath}' for {nameof(RemoteWindowsDeploymentParameters.DotnetRuntimePath)}. " + 63throw new ArgumentException($"Invalid value for {nameof(RemoteWindowsDeploymentParameters.RemoteServerFileSharePath)}." + 69throw new ArgumentException($"Invalid value for {nameof(RemoteWindowsDeploymentParameters.ApplicationBaseUriHint)}.");
TestMatrix.cs (3)
96throw new ArgumentException("No servers were specified."); 102throw new ArgumentException("No TFMs were specified."); 160throw new ArgumentException(server.ToString());
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Internal\Http\HttpHeaders.cs (2)
102throw new ArgumentException(); 112throw new ArgumentException(CoreStrings.KeyAlreadyExists);
Internal\Infrastructure\ConnectionManager.cs (2)
50throw new ArgumentException("Unable to add connection.", nameof(id)); 58throw new ArgumentException("Unable to remove connection.", nameof(id));
Internal\Infrastructure\TimeoutControl.cs (2)
317throw new ArgumentException(CoreStrings.PositiveFiniteTimeSpanRequired, nameof(timeSpan)); 331throw new ArgumentException(CoreStrings.PositiveFiniteTimeSpanRequired, nameof(timeSpan));
Internal\Infrastructure\TransportConnectionManager.cs (3)
29throw new ArgumentException("Unable to add specified id.", nameof(id)); 39throw new ArgumentException("No value found for the specified id.", nameof(id)); 51throw new ArgumentException("No value found for the specified id.", nameof(id));
KestrelConfigurationLoader.cs (1)
182throw new ArgumentException(CoreStrings.UnixSocketPathMustBeAbsolute, nameof(socketPath));
KestrelServerOptions.cs (1)
574throw new ArgumentException(CoreStrings.UnixSocketPathMustBeAbsolute, nameof(socketPath));
ListenOptionsHttpsExtensions.cs (1)
254throw new ArgumentException($"{nameof(TlsHandshakeCallbackOptions.OnConnection)} must not be null.");
Middleware\HttpsConnectionMiddleware.cs (1)
64throw new ArgumentException(CoreStrings.ServerCertificateRequired, nameof(options));
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
src\Shared\UrlDecoder\UrlDecoder.cs (1)
22throw new ArgumentException(
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
136throw new ArgumentException("Certificate was not from this issuer", nameof(certificate));
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
62throw new ArgumentException($"TestConnection does not support address family of type {addressFamily}", nameof(addressFamily));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
Microsoft.AspNetCore.Shared.Tests (9)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
236throw new ArgumentException($"An element with the key '{key}' already exists in the {nameof(AdaptiveCapacityDictionary<TKey, TValue>)}.", nameof(key));
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
265throw new ArgumentException("An item with the same key has already been added.");
src\Shared\TaskToApm.cs (1)
57throw new ArgumentException($"{nameof(asyncResult)} must be a TaskAsyncResult wrapping a Task returning a {typeof(TResult).Name}.", nameof(asyncResult));
src\Shared\UrlDecoder\UrlDecoder.cs (1)
22throw new ArgumentException(
src\Shared\WebEncoders\WebEncoders.cs (3)
115throw new ArgumentException( 247throw new ArgumentException( 403throw new ArgumentException(
Microsoft.AspNetCore.SignalR.Common (3)
Protocol\CompletionMessage.cs (1)
41throw new ArgumentException($"Expected either '{nameof(error)}' or '{nameof(result)}' to be provided, but not both");
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
39throw new ArgumentException("The value cannot be an empty string.", paramName); 68throw new ArgumentException("The value cannot be an empty or whitespace string.", paramName);
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
5437throw new ArgumentException("Input must be greater than zero.", nameof(count));
Microsoft.AspNetCore.SpaServices.Extensions (3)
AngularCli\AngularCliMiddleware.cs (1)
32throw new ArgumentException("Property 'SourcePath' cannot be null or empty", nameof(spaBuilder));
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
32throw new ArgumentException("Property 'SourcePath' cannot be null or empty", nameof(spaBuilder));
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
26throw new ArgumentException($"The {nameof(options.RootPath)} property " +
Microsoft.AspNetCore.StaticFiles (2)
Infrastructure\SharedOptions.cs (1)
34throw new ArgumentException("Request path must not end in a slash");
StaticFileContext.cs (1)
48throw new ArgumentException($"{nameof(subPath)} cannot wrap a null value.", nameof(subPath));
Microsoft.AspNetCore.TestHost (1)
RequestBuilder.cs (1)
61throw new ArgumentException("Invalid header name: " + name, nameof(name));
Microsoft.AspNetCore.WebUtilities (10)
FileMultipartSection.cs (1)
34throw new ArgumentException("Argument must be a file section", nameof(section));
FormMultipartSection.cs (1)
34throw new ArgumentException("Argument must be a form section", nameof(section));
FormPipeReader.cs (1)
58throw new ArgumentException("UTF7 is unsupported and insecure. Please select a different encoding.");
HttpRequestStreamReader.cs (1)
80throw new ArgumentException(Resources.HttpRequestStreamReader_StreamNotReadable, nameof(stream));
HttpResponseStreamWriter.cs (1)
76throw new ArgumentException(Resources.HttpResponseStreamWriter_StreamNotWritable, nameof(stream));
MultipartSectionStreamExtensions.cs (1)
34throw new ArgumentException("Multipart section must have a body to be read.", nameof(section));
src\Shared\UrlDecoder\UrlDecoder.cs (1)
22throw new ArgumentException(
src\Shared\WebEncoders\WebEncoders.cs (3)
115throw new ArgumentException( 247throw new ArgumentException( 403throw new ArgumentException(
Microsoft.Build (11)
Collections\RetrievableEntryHashSet\HashSet.cs (3)
640throw new ArgumentException("index"); 679throw new ArgumentException("arrayIndex"); 784throw new ArgumentException("newSize");
ErrorUtilities.cs (3)
350throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException); 523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName)); 625throw new ArgumentException(
Graph\GraphBuilder.cs (1)
256throw new ArgumentException(
Graph\ParallelWorkSet.cs (1)
83throw new ArgumentException("Degree of parallelism must be a positive integer.");
Graph\ProjectGraph.cs (1)
795throw new ArgumentException(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("OM_TargetNameNullOrEmpty", nameof(GetTargetLists)));
Instance\ProjectInstance.cs (2)
917throw new ArgumentException(nameof(elementsCollection)); 929throw new ArgumentException(nameof(elementsDictionary));
Microsoft.Build.Conversion.Core (1)
OldVSProjectFileReader.cs (1)
148throw new ArgumentException("Cannot write past end of user's buffer.", nameof(charactersToRead));
Microsoft.Build.Engine (3)
Shared\ErrorUtilities.cs (3)
408throw new ArgumentException( 577throw new ArgumentException(ResourceUtilities.FormatResourceString("Shared.ParameterCannotHaveZeroLength", parameterName)); 626throw new ArgumentException(ResourceUtilities.FormatResourceString("Shared.ParametersMustHaveTheSameLength", parameter1Name, parameter2Name));
Microsoft.Build.Engine.OM.UnitTests (4)
ErrorUtilities.cs (3)
350throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException); 523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName)); 625throw new ArgumentException(
TransientIO.cs (1)
85throw new ArgumentException(nameof(relative));
Microsoft.Build.Engine.UnitTests (11)
BackEnd\BuildResult_Tests.cs (1)
319result.AddResultsForTarget("omega", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new ArgumentException("The argument was invalid"))));
BackEnd\CustomTaskHelper.cs (1)
61throw new ArgumentException(builder.ToString());
BackEnd\EventSourceSink_Tests.cs (1)
94exceptionList.Add(new ArgumentException());
BackEnd\MockHost.cs (1)
204_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TargetBuilder_Tests.cs (1)
1823_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TargetEntry_Tests.cs (1)
1323_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TargetResult_Tests.cs (1)
65TargetResult result = new TargetResult(new TaskItem[] { item }, BuildResultUtilities.GetStopWithErrorResult(new ArgumentException()));
BackEnd\TaskBuilder_Tests.cs (1)
1371_ => throw new ArgumentException("Unexpected type " + type),
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (3)
116throw new ArgumentException("An item with the same key has already been added."); 143throw new ArgumentException("Array must be one-dimensional.", nameof(array)); 153throw new ArgumentException("The number of elements in the source is greater than the available space from index to the end of the destination array.");
Microsoft.Build.Framework (20)
HashHelpers.cs (1)
63throw new ArgumentException(SR.Arg_HTCapacityOverflow);
ImmutableSegmentedList`1.cs (3)
346throw new ArgumentException(); 473throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue)); 487throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue));
ImmutableSegmentedList`1+ValueBuilder.cs (1)
249throw new ArgumentException();
SegmentedArray.cs (8)
34throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 36throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 54throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 56throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 80throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 82throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray)); 149throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 151throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray));
SegmentedArray`1.cs (1)
316throw new ArgumentException(SR.ArgumentException_OtherNotArrayOfCorrectLength, nameof(other));
ThrowHelper.cs (6)
69throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 116return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 177throw new ArgumentException(SR.Argument_InvalidArrayType); 200return new ArgumentException(GetResourceString(resource)); 205return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 210return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
Microsoft.Build.Tasks.Core (32)
ErrorUtilities.cs (3)
350throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException); 523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName)); 625throw new ArgumentException(
GenerateManifestBase.cs (1)
448throw new ArgumentException(String.Empty /* no message */, nameof(manifestType));
ManifestUtil\mansign2.cs (2)
1193throw new ArgumentException("value"); 1217throw new ArgumentException("value");
ManifestUtil\SecurityUtil.cs (2)
569throw new ArgumentException(resources.GetString("CertNotInStore"), nameof(certThumbprint)); 578throw new ArgumentException("TargetFrameworkVersion");
ManifestUtil\TrustInfo.cs (1)
505throw new ArgumentException("Partial trust is not supported.");
MetadataConversionUtilities.cs (1)
46throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("General.InvalidAttributeMetadata", item.ItemSpec, itemMetadataName, metadataValue, "bool"), e);
ResourceHandling\MSBuildResXReader.cs (4)
339throw new ArgumentException(nameof(stringValue)); 345throw new ArgumentException(nameof(stringValue)); 355throw new ArgumentException(nameof(stringValue)); 361throw new ArgumentException(nameof(stringValue));
ResourceHandling\NameUtilities.cs (1)
23throw new ArgumentException(nameof(assemblyQualifiedName));
system.design\stronglytypedresourcebuilder.cs (1)
172throw new ArgumentException(SR.GetString(SR.InvalidIdentifier, className));
XmlPeek.cs (5)
186throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.NamespacesParameterNotWellFormed"), xe); 198throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", prefixAttr)); 205throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPeek.NamespacesParameterNoAttribute", uriAttr)); 237throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooMany")); 242throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPeek.XmlInput.TooFew"));
XmlPoke.cs (3)
172throw new ArgumentException(ResourceUtilities.GetResourceString("XmlPoke.NamespacesParameterNotWellFormed"), xe); 185throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", prefixAttr)); 192throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XmlPoke.NamespacesParameterNoAttribute", uriAttr));
XslTransformation.cs (8)
224throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltParameterNotWellFormed"), xe); 235throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Name")); 240throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.XsltParameterNoAttribute", "Value")); 276throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooMany")); 280throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XmlInput.TooFew")); 385throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooMany")); 389throw new ArgumentException(ResourceUtilities.GetResourceString("XslTransform.XsltInput.TooFew")); 528throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("XslTransform.MustSpecifyType", assemblyPath));
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
48_ => throw new ArgumentException(),
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
208throw new ArgumentException("Expected log setter to be used only to reset the log to empty.");
Microsoft.Build.Utilities.Core (9)
ErrorUtilities.cs (3)
350throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException); 523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName)); 625throw new ArgumentException(
ToolLocationHelper.cs (6)
3757throw new ArgumentException("Invalid frameworkReferenceRoot", nameof(frameworkReferenceRoot)); 3826throw new ArgumentException("Invalid frameworkReferenceRoot", nameof(frameworkReferenceRoot)); 3831throw new ArgumentException("Invalid frameworkIdentifier", nameof(frameworkIdentifier)); 3888throw new ArgumentException("Invalid frameworkReferenceRoot", nameof(frameworkReferenceRoot)); 3893throw new ArgumentException("Invalid frameworkIdentifier", nameof(frameworkIdentifier)); 3898throw new ArgumentException("Invalid frameworkVersion", nameof(frameworkVersion));
Microsoft.Cci.Extensions (3)
Mappings\SimpleElementMapping.cs (1)
30throw new ArgumentException("Only understand values -1, 0, 1", "diff");
Writers\CSharp\CSDeclarationWriter.Enums.cs (1)
186throw new ArgumentException($"Unsupported type {value.GetType()}", nameof(value));
Writers\DocumentIdWriter.cs (1)
90throw new ArgumentException($"Unknown member type {member}", "member");
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Error.cs (2)
31new ArgumentException(SR.TypeArgumentRequiredForStaticCall, paramName); 49new ArgumentException(SR.DynamicArgumentNeedsValue, paramName);
Microsoft.DotNet.AsmDiff (3)
AssemblySet.cs (1)
150throw new ArgumentException("assemblies", "Assemblies must only contain assemblies loaded in the current host");
Csv\DiffAssemblyCsvColumn.cs (1)
39throw new ArgumentException();
Csv\DiffCsvColumn.cs (1)
40throw new ArgumentException("Unexpected mapping", "mapping");
Microsoft.DotNet.Build.Tasks.Feed (5)
src\BlobUrlInfo.cs (2)
49throw new ArgumentException(string.Format("Blob URL host name {0} should be of the form <account name>.<endpoint>", hostName)); 62throw new ArgumentException(string.Format("Blob URL path {0} should have a container and blob path", path));
src\common\AzureStorageUtils.cs (1)
216throw new ArgumentException("An attempt to get the MIME mapping of an empty path was made.");
src\model\SetupTargetFeedConfigV3.cs (2)
77throw new ArgumentException("Parameters 'InstallersAzureAccountKey' is empty."); 82throw new ArgumentException("Parameters 'ChecksumsAzureAccountKey' is empty.");
Microsoft.DotNet.Build.Tasks.Installers (1)
src\BuildFPMToolPreReqs.cs (1)
175throw new ArgumentException(
Microsoft.DotNet.Build.Tasks.Packaging (2)
GeneratePackageReport.cs (1)
358throw new ArgumentException($"Could not find source item for {targetPath}", nameof(targetPath));
PackageItem.cs (1)
45throw new ArgumentException($"Recursive wildcards \"**\" are not permitted in source paths for packages: {SourcePath}. Recursive directory may impact asset selection and we don't want to attempt to expand the wildcard since the build may not yet be complete.");
Microsoft.DotNet.Build.Tasks.Workloads (7)
Msi\WorkloadPackGroupMsi.wix.cs (1)
171throw new ArgumentException($"ID {id} didn't match existing ID {subdir.Id} for directory {name}.");
Msi\WorkloadPackMsi.wix.cs (1)
96_ => throw new ArgumentException(string.Format(Strings.UnknownWorkloadKind, kind)),
Swix\ComponentSwixProject.cs (1)
36throw new ArgumentException(string.Format(Strings.ComponentMustHaveAtLeastOneDependency, component.Name));
Swix\SwixDependency.cs (2)
60throw new ArgumentException(Strings.SwixDependencyVersionRequired); 65throw new ArgumentException(Strings.SwixDependencyMaxVersionLessThanMinVersion);
Utils.cs (1)
93throw new ArgumentException($"Parameter cannot be empty: ${name}");
WorkloadPackPackage.wix.cs (1)
121_ => throw new ArgumentException(string.Format(Strings.UnknownWorkloadKind, pack.Kind))
Microsoft.DotNet.Git.IssueManager (6)
Clients\AzureDevOpsClient.cs (1)
75throw new ArgumentException(
Helpers\RepositoryHelper.cs (3)
25throw new ArgumentException("A GitHub personal access token is needed for this operation."); 33throw new ArgumentException("An Azure DevOps personal access token is needed for this operation."); 57throw new ArgumentException("A GitHub personal access token is needed for this operation.");
IssueManager.cs (2)
35throw new ArgumentException(nameof(repositoryUrl)); 40throw new ArgumentException(nameof(commit));
Microsoft.DotNet.Helix.Client (5)
generated-code\Job.cs (1)
88throw new ArgumentException("The parameter is not valid", nameof(body));
generated-code\Storage.cs (2)
134throw new ArgumentException("The parameter is not valid", nameof(body)); 220throw new ArgumentException("The parameter is not valid", nameof(body));
generated-code\Telemetry.cs (1)
107throw new ArgumentException("The parameter is not valid", nameof(body));
HelixApi.cs (1)
46throw new ArgumentException(message, ex);
Microsoft.DotNet.Helix.JobSender (3)
JobDefinition.cs (2)
167throw new ArgumentException($"Helix API does not contain an entry for {queueId}"); 291return Environment.GetEnvironmentVariable(name) ?? throw new ArgumentException("Missing required environment variable", name);
Payloads\AdhocPayload.cs (1)
17throw new ArgumentException(
Microsoft.DotNet.Helix.Sdk (3)
FindDotNetCliPackage.cs (3)
198throw new ArgumentException($"'{version}' is not a valid semantic version."); 292throw new ArgumentException($"Invalid value '{Channel}' for parameter {nameof(Channel)}"); 314throw new ArgumentException($"Invalid value '{PackageType}' for parameter {nameof(PackageType)}");
Microsoft.DotNet.SignCheckLibrary (3)
Verification\Jar\JarFile.cs (1)
91throw new ArgumentException();
Verification\SignatureVerificationManager.cs (1)
218throw new ArgumentException(String.Format(SignCheckResources.ArgumentNullOrEmpty, "path"));
Verification\SignatureVerificationResult.cs (1)
191throw new ArgumentException("path");
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\WritePackageUsageData.cs (2)
95throw new ArgumentException( 271throw new ArgumentException($"Path '{path}' is not within RootDir '{RootDir}'");
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
Modeler\EnumOpenApiExtension.cs (1)
28throw new ArgumentException("x-ms-enum extension only accepts an object");
Modeler\PaginatedOpenApiExtension.cs (1)
34throw new ArgumentException("x-ms-paginated extension only accepts an object");
Modeler\ServiceClientModelFactory.cs (1)
394throw new ArgumentException("Schema must be object", nameof(schema));
Microsoft.DotNet.VersionTools (32)
src\Automation\LocalVersionsRepoUpdater.cs (2)
34throw new ArgumentException(nameof(localBaseDir)); 38throw new ArgumentException(nameof(versionsRepoPath));
src\BuildManifest\BuildManifestChange.cs (2)
40throw new ArgumentException(nameof(commitMessage)); 45throw new ArgumentException(nameof(orchestratedBuildId));
src\BuildManifest\BuildManifestClient.cs (1)
139throw new ArgumentException(
src\BuildManifest\BuildManifestLocation.cs (2)
29throw new ArgumentException(nameof(gitHubRef)); 34throw new ArgumentException(nameof(gitHubBasePath));
src\BuildManifest\Model\SigningInformationParsingExtensions.cs (15)
33throw new ArgumentException($"Value of FileExtensionSignInfo 'CertificateName' is invalid, must be non-empty."); 38throw new ArgumentException($"Value of FileExtensionSignInfo 'Include' is invalid, must be non-empty."); 43throw new ArgumentException($"Value of FileExtensionSignInfo Include is invalid: '{signInfo.Include}' is not returned by Path.GetExtension('{signInfo.Include}')"); 58throw new ArgumentException( 85throw new ArgumentException($"FileSignInfo should specify file name and extension, not a full path: '{signInfo.Include}'"); 90throw new ArgumentException($"TargetFramework metadata of FileSignInfo '{signInfo.Include}' is invalid: '{signInfo.TargetFramework}'"); 95throw new ArgumentException($"CertificateName metadata of FileSignInfo '{signInfo.Include}' should be non-empty."); 100throw new ArgumentException($"PublicKeyToken metadata of FileSignInfo '{signInfo.Include}' is invalid: '{signInfo.PublicKeyToken}'"); 116throw new ArgumentException( 159throw new ArgumentException($"CertificateName metadata of CertificatesSignInfo is invalid. Must not be empty"); 174throw new ArgumentException( 195throw new ArgumentException($"An invalid strong name was specified in StrongNameSignInfo. Must not be empty."); 200throw new ArgumentException($"PublicKeyToken metadata of StrongNameSignInfo is not a valid public key token: '{signInfo.PublicKeyToken}'"); 205throw new ArgumentException($"CertificateName metadata of StrongNameSignInfo is invalid. Must not be empty"); 221throw new ArgumentException(
src\BuildManifest\Model\XElementParsingExtensions.cs (2)
18throw new ArgumentException( 48throw new ArgumentException(
src\Dependencies\BuildManifest\OrchestratedBuildDependencyInfo.cs (1)
28throw new ArgumentException(
src\Dependencies\BuildManifest\OrchestratedBuildIdentityMatch.cs (3)
26throw new ArgumentException( 41throw new ArgumentException($"Match '{this}' has no commit."); 51throw new ArgumentException($"Could not find attribute '{name}' in '{this}'");
src\Dependencies\Submodule\IndicatorPackageSubmoduleUpdater.cs (1)
37throw new ArgumentException(nameof(indicatorPackageId), "An indicator package must be specified.");
src\Dependencies\Submodule\LatestCommitSubmoduleUpdater.cs (3)
26throw new ArgumentException( 34throw new ArgumentException( 55throw new ArgumentException(
Microsoft.DotNet.VersionTools.Tasks (4)
src\BaseDependenciesTask.cs (2)
329throw new ArgumentException( 444throw new ArgumentException(
src\SubmitPullRequest.cs (2)
137throw new ArgumentException( 156throw new ArgumentException($"{nameof(VstsInstanceName)} is required but not set.");
Microsoft.DotNet.VersionTools.Tests (8)
BuildManifest\ManifestModelTests.cs (8)
42throw new ArgumentException(); 93throw new ArgumentException(); 147throw new ArgumentException(); 223throw new ArgumentException(); 258throw new ArgumentException(); 298throw new ArgumentException(); 335throw new ArgumentException(); 376throw new ArgumentException();
Microsoft.Extensions.Caching.Abstractions (2)
CacheEntryExtensions.cs (1)
204throw new ArgumentException(message, paramName);
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Caching.Hybrid (1)
Internal\RecyclableArrayBufferWriter.cs (1)
82throw new ArgumentException(null, nameof(count));
Microsoft.Extensions.Caching.Hybrid.Tests (1)
DistributedCacheTests.cs (1)
297throw new ArgumentException("small segments not considered"); // a pain to construct
Microsoft.Extensions.Caching.Memory (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Caching.MicroBenchmarks (1)
src\Caching\Hybrid\src\Internal\RecyclableArrayBufferWriter.cs (1)
82throw new ArgumentException(null, nameof(count));
Microsoft.Extensions.Caching.SqlServer (1)
SqlServerCache.cs (1)
47throw new ArgumentException(
Microsoft.Extensions.Configuration (2)
ChainedConfigurationProvider.cs (1)
26_config = source.Configuration ?? throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "source.Configuration"), nameof(source));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Configuration.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Configuration.Binder (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Configuration.CommandLine (3)
CommandLineConfigurationProvider.cs (2)
146throw new ArgumentException( 153throw new ArgumentException(
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Configuration.FileExtensions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Configuration.Ini (2)
IniConfigurationExtensions.cs (1)
71throw new ArgumentException(SR.Error_InvalidFilePath, nameof(path));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationExtensions.cs (1)
71throw new ArgumentException(SR.Error_InvalidFilePath, nameof(path));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Configuration.UserSecrets (3)
PathHelper.cs (1)
46throw new ArgumentException(SR.Common_StringNullOrEmpty, nameof(userSecretsId));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
UserSecretsIdAttribute.cs (1)
29throw new ArgumentException(SR.Common_StringNullOrEmpty, nameof(userSecretId));
Microsoft.Extensions.Configuration.Xml (2)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
XmlConfigurationExtensions.cs (1)
80throw new ArgumentException(SR.Error_InvalidFilePath, nameof(path));
Microsoft.Extensions.DependencyInjection (8)
ServiceLookup\CallSiteFactory.cs (6)
46throw new ArgumentException( 53throw new ArgumentException( 61throw new ArgumentException( 78throw new ArgumentException( 117throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch, implementationType.FullName, serviceType.FullName)); 124throw new ArgumentException(SR.Format(SR.TrimmingAnnotationsDoNotMatch_NewConstraint, implementationType.FullName, serviceType.FullName));
ServiceLookup\ConstantCallSite.cs (1)
18throw new ArgumentException(SR.Format(SR.ConstantCantBeConvertedToServiceType, defaultValue.GetType(), serviceType));
ServiceLookup\ConstructorCallSite.cs (1)
22throw new ArgumentException(SR.Format(SR.ImplementationTypeCantBeConvertedToServiceType, constructorInfo.DeclaringType, serviceType));
Microsoft.Extensions.DependencyInjection.Abstractions (2)
Extensions\ServiceCollectionDescriptorExtensions.cs (1)
464throw new ArgumentException(
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.DependencyModel (15)
Dependency.cs (2)
16throw new ArgumentException(null, nameof(name)); 20throw new ArgumentException(null, nameof(version));
DependencyContextExtensions.cs (1)
115throw new ArgumentException($"Provided path has empty file name '{assetPath}'", nameof(assetPath));
Library.cs (3)
45throw new ArgumentException(null, nameof(type)); 49throw new ArgumentException(null, nameof(name)); 53throw new ArgumentException(null, nameof(version));
ResourceAssembly.cs (2)
14throw new ArgumentException(null, nameof(path)); 18throw new ArgumentException(null, nameof(locale));
RuntimeAssembly.cs (3)
18throw new ArgumentException(null, nameof(assemblyName)); 22throw new ArgumentException(null, nameof(path)); 37throw new ArgumentException($"Provided path has empty file name '{path}'", nameof(path));
RuntimeFallbacks.cs (1)
20throw new ArgumentException(null, nameof(runtime));
RuntimeFile.cs (1)
14throw new ArgumentException(null, nameof(path));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
TargetInfo.cs (1)
16throw new ArgumentException(null, nameof(framework));
Microsoft.Extensions.Diagnostics (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Diagnostics.HealthChecks (4)
DefaultHealthCheckService.cs (1)
179throw new ArgumentException(builder.ToString(0, builder.Length - 2), nameof(registrations));
HealthCheckPublisherOptions.cs (3)
37throw new ArgumentException($"The {nameof(Delay)} must not be infinite.", nameof(value)); 58throw new ArgumentException($"The {nameof(Period)} must be greater than or equal to one second.", nameof(value)); 63throw new ArgumentException($"The {nameof(Period)} must not be infinite.", nameof(value));
Microsoft.Extensions.FileProviders.Composite (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFileProvider.cs (1)
58throw new ArgumentException("The path must be absolute.", nameof(root));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.FileSystemGlobbing (2)
Internal\Patterns\PatternBuilder.cs (1)
82throw new ArgumentException("\"..\" can be only added at the beginning of the pattern.");
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (1)
54throw new ArgumentException(SR.IHostApplicationLifetimeReplacementNotSupported, nameof(applicationLifetime));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Hosting.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Hosting.Systemd (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Hosting.WindowsServices (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientBuilderExtensions.cs (1)
626throw new ArgumentException(SR.HandlerLifetime_InvalidValue, nameof(handlerLifetime));
HttpClientFactoryOptions.cs (1)
65throw new ArgumentException(SR.HandlerLifetime_InvalidValue, nameof(value));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Identity.Core (3)
IdentityBuilder.cs (2)
27throw new ArgumentException("User type can't be a value type.", nameof(user)); 44throw new ArgumentException("Role type can't be a value type.", nameof(role));
UserClaimsPrincipalFactory.cs (1)
32throw new ArgumentException($"{nameof(optionsAccessor)} cannot wrap a null value.", nameof(optionsAccessor));
Microsoft.Extensions.Logging (2)
LoggerFactory.cs (1)
94throw new ArgumentException(SR.Format(SR.InvalidActivityTrackingOptions, _factoryOptions.ActivityTrackingOptions), nameof(options));
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Logging.Abstractions (2)
LoggerMessage.cs (1)
459throw new ArgumentException(
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Logging.AzureAppServices (2)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
39throw new ArgumentException("The value cannot be an empty string.", paramName); 68throw new ArgumentException("The value cannot be an empty or whitespace string.", paramName);
Microsoft.Extensions.Logging.Configuration (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Logging.Debug (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Logging.EventLog (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Logging.EventSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Extensions.Logging.TraceSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Options (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Options.ConfigurationExtensions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Options.DataAnnotations (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Extensions.Primitives (3)
StringValues.cs (1)
379throw new ArgumentException(
ThrowHelper.cs (2)
27throw new ArgumentException(GetResourceText(resource)); 56return new ArgumentException(GetResourceText(resource));
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
Microsoft.Interop.SourceGeneration (8)
GeneratedStatements.cs (3)
67throw new ArgumentException("Direction must be ManagedToUnmanaged or UnmanagedToManaged"); 94throw new ArgumentException("CurrentStage must be Invoke"); 128throw new ArgumentException("CurrentStage must be Invoke");
Marshalling\MarshallerHelpers.cs (1)
286throw new ArgumentException("Stub context direction must not be bidirectional.");
Marshalling\MarshallingGeneratorExtensions.cs (1)
94throw new ArgumentException("Context direction must be ManagedToUnmanaged or UnmanagedToManaged");
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
TypeNames.cs (1)
142_ => throw new ArgumentException($"Unexpected CallConv: {callConv}")
TypeSymbolExtensions.cs (1)
333throw new ArgumentException($"Cannot handle type name in the format provided: {typeName}", nameof(typeName));
Microsoft.JSInterop (7)
Infrastructure\DotNetDispatcher.cs (5)
173throw new ArgumentException($"For instance method calls, '{nameof(assemblyName)}' should be null. Value received: '{assemblyName}'."); 253throw new ArgumentException($"The call to '{methodIdentifier}' expects '{parameterTypes.Length}' parameters, but received '{index}'."); 363throw new ArgumentException($"The assembly '{assemblyKey.AssemblyName}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 396throw new ArgumentException($"The type '{type.Name}' does not contain a public invokable method with [{nameof(JSInvokableAttribute)}(\"{methodIdentifier}\")]."); 502?? throw new ArgumentException($"There is no loaded assembly with the name '{assemblyKey.AssemblyName}'.");
Infrastructure\TaskGenericsUtil.cs (1)
47?? throw new ArgumentException($"The type '{taskType.FullName}' is not inherited from '{typeof(Task).FullName}'.");
JSRuntime.cs (1)
325: throw new ArgumentException($"There is no tracked object with id '{dotNetObjectId}'. Perhaps the DotNetObjectReference instance was already disposed.", nameof(dotNetObjectId));
Microsoft.Net.Http.Headers (7)
ContentDispositionHeaderValue.cs (1)
338throw new ArgumentException("An empty string is not allowed.", parameterName);
CookieHeaderValue.cs (2)
174throw new ArgumentException("Invalid cookie name: " + name, parameterName); 189throw new ArgumentException("Invalid cookie value: " + value, parameterName);
EntityTagHeaderValue.cs (1)
52throw new ArgumentException("An empty string is not allowed.", nameof(tag));
HeaderUtilities.cs (1)
75throw new ArgumentException("An empty string is not allowed.", parameterName);
MediaTypeHeaderValue.cs (1)
657throw new ArgumentException("An empty string is not allowed.", parameterName);
RangeItemHeaderValue.cs (1)
31throw new ArgumentException("Invalid header range.");
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (4)
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
Microsoft.NET.StringTools.net35 (1)
InternableString.Simple.cs (1)
20throw new ArgumentException(nameof(array));
Microsoft.NET.WebAssembly.Webcil (2)
WebcilReader.cs (2)
37throw new ArgumentException("Stream must be readable and seekable", nameof(stream)); 301throw new ArgumentException($"expected debug directory entry type {nameof(DebugDirectoryEntryType.PdbChecksum)}", nameof(entry));
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
227Return New ArgumentException(Description)
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (1)
1969Throw New ArgumentException
Microsoft.Web.Xdt.Extensions (3)
InsertOrAppendAttribute.cs (1)
64throw new ArgumentException("Expected two ['] characters");
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
39throw new ArgumentException("The value cannot be an empty string.", paramName); 68throw new ArgumentException("The value cannot be an empty or whitespace string.", paramName);
MobileBuildTasks (10)
Android\AndroidProject.cs (1)
159_ => throw new ArgumentException($"{runtimeIdentifier} is not supported for Android"),
Android\Ndk\NdkVersion.cs (1)
20throw new ArgumentException ("must be a non-empty string", nameof (version));
Apple\AppleProject.cs (2)
154_ => throw new ArgumentException($"{arch} is not supported"), 165_ => throw new ArgumentException($"{os} is not supported")
Apple\AppleSdk.cs (2)
119throw new ArgumentException("Could not find the path to Xcode via xcode-select. Please make sure Xcode is properly installed."); 139_ => throw new ArgumentException($"{targetOS} does not have a valid platform name")
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
MonoAOTCompiler (4)
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
MonoTargetsTasks (5)
ILStrip\ILStrip.cs (1)
62throw new ArgumentException($"'{nameof(Assemblies)}' is required.", nameof(Assemblies));
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
MSBuild (4)
ErrorUtilities.cs (3)
350throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException); 523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName)); 625throw new ArgumentException(
TerminalLogger\NodeStatus.cs (1)
34throw new ArgumentException("Target should not contain any escape codes, if you want to colorize target use the other constructor.");
MSBuildTaskHost (4)
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (3)
350throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, args), innerException); 523throw new ArgumentException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.ParameterCannotHaveZeroLength", parameterName)); 625throw new ArgumentException(
Immutable\ImmutableDictionary.cs (1)
122throw new ArgumentException(nameof(arrayIndex));
PresentationBuildTasks (14)
MS\Internal\MarkupCompiler\PathInternal.cs (2)
54throw new ArgumentException(nameof(relativeTo)); 60throw new ArgumentException(nameof(path));
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\ParserStreamGeometryContext.cs (1)
720throw new ArgumentException(SR.UnknownPathOperationType);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (4)
255throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsDefinitionAttribute")); 275throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, "XmlnsCompatibleWithAttribute")); 323throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 397throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute"));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (3)
146throw new ArgumentException(SR.ParserKeysAreStrings); 475throw new ArgumentException(SR.ParserKeysAreStrings); 483throw new ArgumentException(SR.ParserKeysAreStrings);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
353throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 366throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 371throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name));
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\IO\Packaging\CompoundFile\FormatVersion.cs (1)
84throw new ArgumentException(SR.ZeroLengthFeatureID);
PresentationCore (694)
MS\Internal\Automation\EventMap.cs (1)
124throw new ArgumentException(SR.Automation_InvalidEventId, "eventId");
MS\Internal\Automation\SynchronizedInputAdaptor.cs (1)
49throw new ArgumentException(SR.Format(SR.Automation_InvalidSynchronizedInputType, inputType));
MS\Internal\Automation\TextProviderWrapper.cs (1)
66throw new ArgumentException(SR.Format(SR.TextProvider_InvalidChild, "childElement"));
MS\Internal\Automation\TextRangeProviderWrapper.cs (3)
62throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "range")); 72throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange")); 135throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidRangeProvider, "targetRange"));
MS\Internal\FontCache\FontCacheUtil.cs (1)
518throw new ArgumentException(SR.FaceIndexMustBePositiveOrZero, "fontUri");
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
734throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
63throw new ArgumentException(SR.FamilyMap_TargetNotSet);
MS\Internal\FontFace\CompositeFontParser.cs (5)
38throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 54throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 62throw new ArgumentException(SR.Format(SR.PropertyMustBeGreaterThanZero, propertyName)); 70throw new ArgumentException(SR.Format(SR.PropertyValueCannotBeNaN, propertyName)); 78throw new ArgumentException(SR.Format(SR.PropertyCannotBeNegative, propertyName));
MS\Internal\FontFace\TypefaceCollection.cs (1)
76throw new ArgumentException(SR.Collection_BadRank);
MS\Internal\IListConverters.cs (1)
65throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
MS\Internal\Ink\ExtendedProperty.cs (1)
35throw new ArgumentException(SR.InvalidGuid);
MS\Internal\Ink\ExtendedPropertyCollection.cs (3)
166throw new ArgumentException(SR.EPExists, "id"); 184throw new ArgumentException(SR.EPGuidNotFound, "id"); 244throw new ArgumentException(SR.EPNotFound, "attributeId");
MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (5)
147throw new ArgumentException(SR.StrokeCollectionCountTooBig, "strokes"); 231throw new ArgumentException(SR.ApplicationGestureArrayLengthIsZero, "applicationGestures"); 240throw new ArgumentException(SR.ApplicationGestureIsInvalid, "applicationGestures"); 252throw new ArgumentException(SR.DuplicateApplicationGestureFound, "applicationGestures"); 262throw new ArgumentException(SR.AllGesturesMustExistAlone, "applicationGestures");
MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (7)
165throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Input buffer passed was shorter than expected")); 170throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("output buffer length was zero")); 210throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Input buffer was too short (must be at least 3 bytes)")); 250throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid decompression algo byte")); 278throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid compression specified or computed by FindPropAlgoByte")); 325throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("input.Length must be at least 2")); 335throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus isf, we don't decompress property data with lz"));
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (22)
437throw new ArgumentException(SR.InvalidSizeSpecified, "cbSize"); 447throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Custom Attribute tag embedded in ISF stream does not match guid table"), "tag"); 454throw new ArgumentException(SR.InvalidSizeSpecified, "cbSize"); 467throw new ArgumentException(); 474throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), "cbSize"); 495throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), "cbSize"); 790throw new ArgumentException(SR.InvalidGuid); 797throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(System.Windows.Media.Color)), "value"); 805throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(int)), "value"); 813throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(DrawingFlags)), "value"); 824throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(StylusTip), typeof(int)), "value"); 828throw new ArgumentException(SR.Format(SR.InvalidValueOfType, value, typeof(StylusTip)), "value"); 839throw new ArgumentException(SR.Format(SR.InvalidValueType1, typeof(String), typeof(Matrix)), "value"); 846throw new ArgumentException(SR.MatrixNotInvertible, "value"); 850throw new ArgumentException(SR.InvalidMatrixContainsNaN, "value"); 854throw new ArgumentException(SR.InvalidMatrixContainsInfinity, "value"); 862throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(bool)), "value"); 869throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(double)), "value"); 893throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte)), "value"); 906throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(byte[])), "value"); 966throw new ArgumentException(SR.InvalidDataInISF, ex); 971throw new ArgumentException(SR.InvalidDataInISF, ex);
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (6)
145throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("ISF size is larger than maximum stream size")); 154throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Drawing Attribute tag embedded in ISF stream does not match guid table")); 165throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid PenTip value found in ISF stream")); 229throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("ISF size if greater then maximum stream size")); 236throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected")); 311throw new ArgumentException ();
MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (3)
454throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to compress")); 494throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to GetDataFromReader")); 639throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("bogus GorillaEncodingType passed to Uncompress"));
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
118throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Tag is outside of the known guid tag range")); 142throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Tag is outside of the known guid tag range"));
MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (1)
253throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid huffman encoded data"));
MS\Internal\Ink\InkSerializedFormat\HuffModule.cs (1)
74throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid codec computed"));
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (60)
147throw new ArgumentException(SR.IsfOperationFailed, ex); 152throw new ArgumentException(SR.IsfOperationFailed, ex); 157throw new ArgumentException(SR.IsfOperationFailed, ex); 162throw new ArgumentException(SR.IsfOperationFailed, ex); 167throw new ArgumentException(SR.IsfOperationFailed, ex); 172throw new ArgumentException(SR.IsfOperationFailed, ex); 222throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "isfStream"); 236throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected"), "isfStream"); 241throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "isfStream"); 357throw new ArgumentException(SR.InvalidStream); 376throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 400throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inputStream"); 487throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 521throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 584throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 597throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 619throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 633throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 682throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 756throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Global Custom Attribute tag embedded in ISF stream does not match guid table"), "inkdata"); 766throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inkdata"); 780throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 795throw new ArgumentException(ISFDebugMessage("Invalid ISF data")); 813throw new ArgumentException(ISFDebugMessage("Invalid ISF data"), "inkdata"); 844throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 849throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 862throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 872throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 904throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 917throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 927throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 944throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 953throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 976throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1006throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1011throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1019throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1029throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1061throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1070throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1078throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1110throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1118throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1145throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1183throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1204throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1222throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid argument passed to ReliableRead")); 1277throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1312throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1348throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1354throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1359throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1365throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1370throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1376throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1381throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1387throw new ArgumentException(ISFDebugMessage("Invalid ISF data"),"strm"); 1604throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Button guid tag embedded in ISF stream does not match guid table"),"strd"); 1620throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF with NoX or NoY specified"), "strd"); 1644throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Packet Description Property tag embedded in ISF stream does not match guid table"), "strd");
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (2)
299throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("MetricEntryType was persisted with Never flag which should never happen")); 446throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("MetricEntry cannot be null"));
MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (1)
99throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("invalid input in MultiByteCodec.Decode"));
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (1)
328throw new ArgumentException(SR.InvalidDataTypeForExtendedProperty);
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (18)
84throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke size (" + 164throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Packet buffer overflowed the ISF stream")); 190throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table")); 203throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 238throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 252throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 261throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 270throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 278throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 287throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 294throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Read different size from stream then expected")); 314throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Stroke Custom Attribute tag embedded in ISF stream does not match guid table")); 338throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 373throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 399throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 420throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Invalid ISF data")); 494throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Buffer range is smaller than expected expected size")); 526throw new ArgumentException(StrokeCollectionSerializer.ISFDebugMessage("Button data length not equal to expected length"));
MS\Internal\Ink\Renderer.cs (3)
446throw new System.ArgumentException(SR.DuplicateStrokeAdded); 474throw new System.ArgumentException(SR.UnknownStroke3); 491throw new System.ArgumentException(SR.UnknownStroke1);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (7)
63throw new ArgumentException(SR.InvalidTempFileName, "tempFileName"); 410throw new ArgumentException(SR.InvalidScheme, "requestedUri"); 417throw new ArgumentException(SR.InvalidEventHandle, "eventHandle"); 704throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 711throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 729throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges")); 736throw new ArgumentException(SR.Format(SR.InvalidByteRanges, "byteRanges"));
MS\Internal\IO\Packaging\DeobfuscatingStream.cs (1)
328throw new ArgumentException(SR.InvalidPartName);
MS\Internal\IO\Packaging\NetStream.cs (3)
148throw new ArgumentException(SR.IOBufferOverflow, "buffer"); 263throw new ArgumentException(SR.SeekNegative); 290throw new ArgumentException(SR.SeekNegative);
MS\Internal\IO\Packaging\PreloadedPackages.cs (1)
167throw new ArgumentException(SR.UriMustBeAbsolute, "uri");
MS\Internal\Media\ParserStreamGeometryContext.cs (1)
720throw new ArgumentException(SR.UnknownPathOperationType);
MS\Internal\Media\VisualTreeUtils.cs (1)
226throw new ArgumentException(SR.Visual_NotAVisual);
MS\Internal\Media\XamlSerializationHelper.cs (1)
357throw new ArgumentException(SR.FloatUnknownBamlType);
MS\Internal\PartialArray.cs (3)
143throw new ArgumentException( 152throw new ArgumentException( 162throw new ArgumentException(
MS\Internal\TextFormatting\LineServicesRun.cs (1)
933throw new ArgumentException(SR.CompileFeatureSet_InvalidTypographyProperties);
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
400throw new ArgumentException(SR.OptimalParagraphMustWrap);
MS\Internal\TextFormatting\TextRunCacheImp.cs (5)
130throw new ArgumentException(SR.TextRunPropertiesCannotBeNull); 133throw new ArgumentException(SR.Format(SR.PropertyOfClassMustBeGreaterThanZero, "FontRenderingEmSize", "TextRunProperties")); 138throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeGreaterThan, "FontRenderingEmSize", "TextRunProperties", realMaxFontRenderingEmSize)); 143throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "CultureInfo", "TextRunProperties")); 146throw new ArgumentException(SR.Format(SR.PropertyOfClassCannotBeNull, "Typeface", "TextRunProperties"));
MS\Internal\TextFormatting\TextStore.cs (1)
2378throw new ArgumentException(SR.TextObjectMetrics_WidthOutOfRange);
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (3)
185throw new ArgumentException( 194throw new ArgumentException( 204throw new ArgumentException(
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (3)
128throw new ArgumentException( 137throw new ArgumentException( 147throw new ArgumentException(
MS\Internal\WpfWebRequestHelper.cs (2)
205throw new ArgumentException(); 223throw new ArgumentException();
src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (15)
822return new System.ArgumentException(SR.Image_PropertyNotFound, exceptionForHR); 828return new System.ArgumentException(SR.Image_PropertySize, exceptionForHR); 840return new System.ArgumentException(SR.Image_TooManyScanlines, exceptionForHR); 846return new System.ArgumentException(SR.Image_BadDimensions, exceptionForHR); 860return new System.ArgumentException(SR.Image_FrameMissing, exceptionForHR); 863return new System.ArgumentException(SR.Image_BadMetadataHeader, exceptionForHR); 866return new System.ArgumentException(SR.Image_BadStreamData, exceptionForHR); 878return new System.ArgumentException(SR.Image_SizeOutOfRange, exceptionForHR); 908return new System.ArgumentException(SR.Image_InsufficientBuffer, exceptionForHR); 911return new System.ArgumentException(SR.Format(SR.Media_InvalidArgument, null), exceptionForHR); 954return new System.ArgumentException(SR.D3DImage_InvalidUsage, exceptionForHR); 956return new System.ArgumentException(SR.D3DImage_SurfaceTooBig, exceptionForHR); 958return new System.ArgumentException(SR.D3DImage_InvalidPool, exceptionForHR); 960return new System.ArgumentException(SR.D3DImage_InvalidDevice, exceptionForHR); 962return new System.ArgumentException(SR.D3DImage_AARequires9Ex, exceptionForHR);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
323throw(new System.ArgumentException(key.ToString()));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
60throw new ArgumentException(SR.Collection_BadRank);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (1)
264throw new ArgumentException($"{osVer} is not a valid OS!", nameof(osVer));
System\IO\Packaging\PackageStore.cs (2)
102throw new ArgumentException(SR.NotAllowedPackageUri, nameof(uri)); 154throw new ArgumentException(SR.UriMustBeAbsolute, "uri");
System\IO\Packaging\PackWebRequestFactory.cs (2)
59throw new ArgumentException(SR.UriMustBeAbsolute, "uri"); 64throw new ArgumentException(SR.Format(SR.UriSchemeMismatch, PackUriHelper.UriSchemePack), "uri");
System\Windows\clipboard.cs (5)
94throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 183throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 275throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 292throw new ArgumentException(SR.Format(SR.DataObject_FileDropListIsEmpty, fileDropList)); 303throw new ArgumentException(SR.Format(SR.DataObject_FileDropListHasInvalidFileDropPath, fileDropList));
System\Windows\DataFormat.cs (1)
41throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\DataFormats.cs (1)
61throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed);
System\Windows\dataobject.cs (10)
104throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 135throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 185throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 201throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 243throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 261throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 308throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 341throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 489throw new ArgumentException(SR.Format(SR.DataObject_FileDropListIsEmpty, fileDropList)); 500throw new ArgumentException(SR.Format(SR.DataObject_FileDropListHasInvalidFileDropPath, e));
System\Windows\DataObjectPastingEventArgs.cs (4)
65throw new ArgumentException(SR.DataObject_EmptyFormatNotAllowed); 70throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, formatToApply)); 138throw new ArgumentException(SR.DataObject_DataObjectMustHaveAtLeastOneFormat); 167throw new ArgumentException(SR.Format(SR.DataObject_DataFormatNotPresentOnDataObject, value));
System\Windows\Documents\DynamicDocumentPaginator.cs (1)
78throw new ArgumentException(SR.PaginatorMissingContentPosition, "contentPosition");
System\Windows\DragDrop.cs (8)
401throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "dragSource"); 432throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "dragSource"); 717throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 740throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 774throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 797throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 1176throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope"); 1200throw new ArgumentException(SR.ScopeMustBeUIElementOrContent, "scope");
System\Windows\DragEventArgs.cs (1)
161throw new ArgumentException(SR.Format(SR.DragDrop_DragDropEffectsInvalid, "value"));
System\Windows\Duration.cs (2)
34throw new ArgumentException(SR.Timing_InvalidArgNonNegative, "timeSpan"); 60throw new ArgumentException(SR.Timing_InvalidArgNonNegative, "timeSpan");
System\Windows\EventHandlersStore.cs (2)
157throw new ArgumentException(SR.HandlerTypeIllegal); 191throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventManager.cs (3)
77throw new ArgumentException(SR.Format(SR.DuplicateEventName, name, ownerType)); 166throw new ArgumentException(SR.ClassTypeIllegal); 171throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventRoute.cs (2)
135throw new ArgumentException(SR.SourceNotSet); 140throw new ArgumentException(SR.Mismatched_RoutedEvent);
System\Windows\FontStretchConverter.cs (1)
81throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\FontStyleConverter.cs (1)
81throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\FontWeightConverter.cs (1)
81throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\FreezableCollection.cs (7)
109throw new System.ArgumentException(SR.Collection_NoNull); 221throw new System.ArgumentException(SR.Collection_NoNull); 338throw new System.ArgumentException(SR.Collection_NoNull); 509throw new ArgumentException(SR.Collection_BadRank); 524throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 667throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "T")); 723throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Generated\ContentElement.cs (8)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 538throw new ArgumentException(SR.HandlerTypeIllegal); 593throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\TextDecorationCollection.cs (8)
139throw new System.ArgumentException(SR.Collection_NoNull); 247throw new System.ArgumentException(SR.Collection_NoNull); 410throw new ArgumentException(SR.Collection_BadRank); 425throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 514throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextDecoration")); 540throw new System.ArgumentException(SR.Collection_NoNull); 931throw new System.ArgumentException(SR.Collection_NoNull); 948throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Generated\UIElement.cs (8)
80throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 88throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 94throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 149throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 156throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 161throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 538throw new ArgumentException(SR.HandlerTypeIllegal); 593throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Generated\UIElement3D.cs (2)
335throw new ArgumentException(SR.HandlerTypeIllegal); 390throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\Ink\DrawingAttributes.cs (3)
145throw new ArgumentException(SR.InvalidSttValue, "value"); 720throw new ArgumentException(SR.Format(SR.InvalidValueType, typeof(Matrix)), "propertyData"); 955throw new ArgumentException(SR.EPGuidNotFound, "id");
System\Windows\Ink\Events.cs (2)
44throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "added", "removed")); 110throw new ArgumentException(SR.Format(SR.CannotBothBeNull, "newValue", "previousValue"));
System\Windows\Ink\GestureRecognizer.cs (1)
178throw new ArgumentException(SR.StrokeCollectionCountTooBig, "strokes");
System\Windows\Ink\IncrementalHitTester.cs (2)
51throw new System.ArgumentException(SR.EmptyArrayNotAllowedAsArgument, "points"); 74throw new System.ArgumentException(SR.EmptyArrayNotAllowedAsArgument, "stylusPoints");
System\Windows\Ink\Stroke.cs (5)
66throw new ArgumentException(SR.InvalidStylusPointCollectionZeroCount, "stylusPoints"); 160throw new ArgumentException(SR.MatrixNotInvertible, "transformMatrix"); 164throw new ArgumentException(SR.InvalidMatrixContainsNaN, "transformMatrix"); 168throw new ArgumentException(SR.InvalidMatrixContainsInfinity, "transformMatrix"); 522throw new ArgumentException(SR.InvalidStylusPointCollectionZeroCount);
System\Windows\Ink\Stroke2.cs (2)
130throw new ArgumentException(SR.EmptyArray); 161throw new ArgumentException(SR.EmptyArray);
System\Windows\Ink\StrokeCollection.cs (13)
60throw new ArgumentException(SR.StrokeIsDuplicated, "strokes"); 73throw new ArgumentException(SR.Image_StreamRead, "stream"); 79throw new ArgumentException(SR.Invalid_isfData_Length, "stream"); 97throw new ArgumentException(SR.Image_StreamWrite, "stream"); 198throw new ArgumentException(SR.InvalidGuid, "propertyDataId"); 236throw new ArgumentException(SR.MatrixNotInvertible, "transformMatrix"); 328throw new ArgumentException(SR.StrokeIsDuplicated, "stroke"); 346throw new ArgumentException(SR.StrokeIsDuplicated, "stroke"); 402ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokes"); 446throw new ArgumentException(SR.StrokeIsDuplicated, "strokes"); 494ArgumentException ae = new ArgumentException(SR.EmptyScToReplace, "strokesToReplace"); 507ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokesToReplace"); 523throw new ArgumentException(SR.StrokeIsDuplicated, "strokesToReplaceWith");
System\Windows\Ink\StrokeCollection2.cs (2)
248throw new ArgumentException(SR.EmptyArray); 298throw new ArgumentException(SR.EmptyArray);
System\Windows\Input\AccessKeyManager.cs (1)
138throw new ArgumentException(SR.Format(SR.AccessKeyManager_NotAUnicodeCharacter, "key"));
System\Windows\Input\Command\KeyBinding.cs (1)
97throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(KeyGesture)));
System\Windows\Input\Command\MouseBinding.cs (1)
114throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(MouseGesture)));
System\Windows\Input\Command\RoutedCommand.cs (1)
62throw new ArgumentException(SR.StringEmpty, "name");
System\Windows\Input\Cursor.cs (5)
41throw new ArgumentException(SR.Format(SR.InvalidCursorType, cursorType)); 72throw new ArgumentException(SR.Format(SR.Cursor_UnsupportedFormat , cursorFile)); 210throw new ArgumentException(SR.Format(SR.Cursor_LoadImageFailure, fileName)); 264throw new ArgumentException(SR.Cursor_InvalidStream); 310throw new ArgumentException(SR.Cursor_InvalidStream);
System\Windows\Input\InputMethod.cs (2)
826throw new ArgumentException(SR.Format(SR.InputMethod_InvalidConversionMode, value)); 1077throw new ArgumentException(SR.Format(SR.InputMethod_InvalidSentenceMode, value));
System\Windows\Input\InputScope.cs (1)
182throw new ArgumentException(SR.Format(SR.InputScope_InvalidInputScopeName, "value"));
System\Windows\Input\ManipulationStartingEventArgs.cs (1)
39throw new ArgumentException(SR.Manipulation_InvalidManipulationMode, "value");
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
262throw new ArgumentException(SR.Stylus_MustBeDownToCallReset, "stylusDevice");
System\Windows\Input\Stylus\Common\RawStylusInput.cs (3)
37throw new ArgumentException(SR.Stylus_MatrixNotInvertable, "tabletToElementTransform"); 111throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, "stylusPoints"); 115throw new ArgumentException(SR.Stylus_StylusPointsCantBeEmpty, "stylusPoints");
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (2)
53throw new ArgumentException(SR.Stylus_PlugInIsDuplicated, nameof(plugIn)); 186throw new ArgumentException(SR.Stylus_PlugInIsDuplicated, "plugIn");
System\Windows\Input\Stylus\Common\StylusPoint.cs (3)
130throw new ArgumentException(SR.InvalidAdditionalDataForStylusPoint, "additionalValues"); 303throw new ArgumentException(SR.InvalidStylusPointProperty, "stylusPointProperty"); 386throw new ArgumentException(SR.InvalidStylusPointProperty, "propertyId");
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (8)
54throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, "initialCapacity"); 79throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, "initialCapacity"); 97throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, "stylusPoints"); 132throw new ArgumentException(SR.InvalidStylusPointConstructionZeroLengthCollection, "points"); 213throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, "stylusPoints"); 291throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, "stylusPoint"); 309throw new ArgumentException(SR.IncompatibleStylusPointDescriptions, "stylusPoint"); 457throw new ArgumentException(SR.InvalidStylusPointDescriptionSubset, "subsetToReformatTo");
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (5)
66throw new ArgumentException(SR.InvalidStylusPointDescription, "stylusPointPropertyInfos"); 82throw new ArgumentException(SR.InvalidStylusPointDescriptionDuplicatesFound, "stylusPointPropertyInfos"); 93throw new ArgumentException(SR.InvalidStylusPointDescriptionButtonsMustBeLast, "stylusPointPropertyInfos"); 100throw new ArgumentException(SR.InvalidStylusPointDescriptionTooManyButtons, "stylusPointPropertyInfos"); 162throw new ArgumentException("stylusPointProperty");
System\Windows\Input\Stylus\Common\StylusPointProperty.cs (2)
63throw new ArgumentException(SR.InvalidIsButtonForId, "isButton"); 71throw new ArgumentException(SR.InvalidIsButtonForId2, "isButton");
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (2)
66throw new ArgumentException(SR.Stylus_InvalidMax, "maximum"); 72throw new ArgumentException(SR.InvalidStylusPointPropertyInfoResolution, "resolution");
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
77throw new ArgumentException(SR.Format(SR.Stylus_IndexOutOfRange, index.ToString(System.Globalization.CultureInfo.InvariantCulture)), "index");
System\Windows\Input\TextComposition.cs (1)
116throw new ArgumentException(SR.TextComposition_NullResultText);
System\Windows\Input\TextCompositionManager.cs (8)
320throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 325throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasStarted, "composition")); 341throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 346throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 351throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition")); 366throw new ArgumentException(SR.Format(SR.TextCompositionManager_NoInputManager, "composition")); 371throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionNotStarted, "composition")); 376throw new ArgumentException(SR.Format(SR.TextCompositionManager_TextCompositionHasDone, "composition"));
System\Windows\Input\TouchDevice.cs (1)
344throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, element.GetType()), "element");
System\Windows\InterOp\HwndKeyboardInputProvider.cs (1)
712throw new ArgumentException(SR.OnlyAcceptsKeyMessages);
System\Windows\InterOp\HwndSource.cs (4)
684throw new ArgumentException(SR.NullHwnd); 1934throw new ArgumentException(SR.KeyboardSinkAlreadyOwned); 2113throw new ArgumentException(SR.OnlyAcceptsKeyMessages); 2301throw new ArgumentException(SR.OnlyAcceptsKeyMessages);
System\Windows\InterOp\HwndSourceKeyboardInputSite.cs (1)
26throw new ArgumentException(SR.KeyboardSinkMustBeAnElement, "sink");
System\Windows\InterOp\HwndTarget.cs (3)
531throw new ArgumentException( 538throw new ArgumentException( 545throw new ArgumentException(
System\Windows\Markup\XamlSerializerUtil.cs (1)
58throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XmlLanguage.cs (1)
801throw new ArgumentException(SR.Format(SR.XmlLangMalformed, ietfLanguageTag), "ietfLanguageTag");
System\Windows\Media\Animation\ClockController.cs (1)
293throw new ArgumentException(SR.Timing_InvalidArgFinitePositive, "value");
System\Windows\Media\Animation\Generated\Animatable.cs (6)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\TimelineCollection.cs (8)
146throw new System.ArgumentException(SR.Collection_NoNull); 254throw new System.ArgumentException(SR.Collection_NoNull); 420throw new ArgumentException(SR.Collection_BadRank); 435throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 524throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Timeline")); 550throw new System.ArgumentException(SR.Collection_NoNull); 950throw new System.ArgumentException(SR.Collection_NoNull); 968throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
238throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\KeySpline.cs (4)
69throw new ArgumentException(SR.Format( 77throw new ArgumentException(SR.Format( 179throw new ArgumentException(SR.Format( 211throw new ArgumentException(SR.Format(
System\Windows\Media\Animation\Timeline.cs (2)
223throw new ArgumentException(SR.Timing_InvalidArgAccelAndDecel, "value"); 612throw new ArgumentException(SR.Timing_InvalidArgFinitePositive, "value");
System\Windows\Media\Animation\TimelineGroup.cs (1)
152throw new ArgumentException(SR.Timing_ChildMustBeTimeline, nameof(child));
System\Windows\Media\CharacterMetrics.cs (6)
116throw new ArgumentException(SR.CharacterMetrics_NegativeHorizontalAdvance); 122throw new ArgumentException(SR.CharacterMetrics_NegativeVerticalAdvance); 177throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, field.ToString(), "double")); 183throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField); 192throw new ArgumentException(SR.CharacterMetrics_TooManyFields); 202throw new ArgumentException(SR.CharacterMetrics_MissingRequiredField);
System\Windows\Media\CharacterMetricsDictionary.cs (11)
139throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 157throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 196throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 199throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 214throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 219throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 381throw new ArgumentException(SR.Format(SR.CollectionDuplicateKey, key)); 510throw new ArgumentException(SR.Format(SR.CannotConvertStringToType, s, "int"), "key"); 518throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), "int"), "key"); 522throw new ArgumentException(SR.Format(SR.CodePointOutOfRange, value), "key"); 535throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CharacterMetrics), value.GetType()));
System\Windows\Media\Color.cs (5)
80throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 85throw new ArgumentException(SR.Format(SR.Color_DimensionMismatch, null)); 500throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 534throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null)); 619throw new ArgumentException(SR.Format(SR.Color_ColorContextTypeMismatch, null));
System\Windows\Media\ColorContext.cs (2)
510throw new ArgumentException(SR.UriNotAbsolute, "profileUri"); 636throw new ArgumentException(SR.ColorContext_FileTooLarge, filename);
System\Windows\Media\ColorConverter.cs (1)
91throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\Media\CompositionTarget.cs (1)
484throw new System.ArgumentException(SR.CompositionTarget_RootVisual_HasParent);
System\Windows\Media\CultureSpecificStringDictionary.cs (8)
128throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 131throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 162throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 165throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 180throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 185throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 327throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(string)), "value"); 340throw new ArgumentException(SR.Format(SR.CannotConvertType, key.GetType(), typeof(XmlLanguage)), "key");
System\Windows\Media\Effects\BitmapEffect.cs (1)
117throw new ArgumentException(SR.Effect_No_InputSource, "input");
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (8)
145throw new System.ArgumentException(SR.Collection_NoNull); 253throw new System.ArgumentException(SR.Collection_NoNull); 416throw new ArgumentException(SR.Collection_BadRank); 431throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 520throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "BitmapEffect")); 546throw new System.ArgumentException(SR.Collection_NoNull); 937throw new System.ArgumentException(SR.Collection_NoNull); 954throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Effects\PixelShader.cs (1)
113throw new ArgumentException(SR.Effect_SourceUriMustBeFileOrPack);
System\Windows\Media\Effects\ShaderEffect.cs (3)
395throw new ArgumentException(SR.GetResourceString(srid), "dp"); 446throw new ArgumentException(SR.Effect_ShaderSamplerType, "dp"); 464throw new ArgumentException(SR.GetResourceString(srid));
System\Windows\Media\EllipseGeometry.cs (1)
48throw new System.ArgumentException(SR.Format(SR.Rect_Empty, "rect"));
System\Windows\Media\FamilyMapCollection.cs (7)
90throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 93throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 104throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 108throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType)); 111throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 114throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array")); 380throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FontFamilyMap)));
System\Windows\Media\FamilyTypefaceCollection.cs (6)
255throw new ArgumentException(SR.CompositeFont_DuplicateTypeface); 373throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 383throw new ArgumentException(SR.Collection_CopyTo_ArrayCannotBeMultidimensional); 387throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface[]), elementType)); 390throw new ArgumentException(SR.Format(SR.Collection_CopyTo_IndexGreaterThanOrEqualToArrayLength, "index", "array")); 393throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, index, "array"));
System\Windows\Media\FontEmbeddingManager.cs (1)
120throw new ArgumentException(SR.GlyphTypefaceNotRecorded, "glyphTypeface");
System\Windows\Media\FontFamily.cs (1)
94throw new ArgumentException(SR.UriNotAbsolute, "baseUri");
System\Windows\Media\FontFamilyConverter.cs (1)
142throw new ArgumentException(SR.Format(SR.General_Expected_Type, "FontFamily"), "value");
System\Windows\Media\Fonts.cs (3)
98throw new ArgumentException(SR.UriNotAbsolute, "baseUri"); 106throw new ArgumentException(SR.InvalidAbsoluteUriInFontFamilyName, "location"); 329throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\Generated\BrushConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Brush"), "context");
System\Windows\Media\Generated\CacheModeConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "CacheMode"), "context");
System\Windows\Media\Generated\DoubleCollection.cs (3)
382throw new ArgumentException(SR.Collection_BadRank); 397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "double"));
System\Windows\Media\Generated\DrawingCollection.cs (8)
159throw new System.ArgumentException(SR.Collection_NoNull); 267throw new System.ArgumentException(SR.Collection_NoNull); 432throw new ArgumentException(SR.Collection_BadRank); 447throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 536throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Drawing")); 562throw new System.ArgumentException(SR.Collection_NoNull); 980throw new System.ArgumentException(SR.Collection_NoNull); 998throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeneralTransformCollection.cs (8)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform")); 548throw new System.ArgumentException(SR.Collection_NoNull); 939throw new System.ArgumentException(SR.Collection_NoNull); 956throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeometryCollection.cs (8)
159throw new System.ArgumentException(SR.Collection_NoNull); 267throw new System.ArgumentException(SR.Collection_NoNull); 432throw new ArgumentException(SR.Collection_BadRank); 447throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 536throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Geometry")); 562throw new System.ArgumentException(SR.Collection_NoNull); 980throw new System.ArgumentException(SR.Collection_NoNull); 998throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\GeometryConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Geometry"), "context");
System\Windows\Media\Generated\GradientStopCollection.cs (8)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GradientStop")); 548throw new System.ArgumentException(SR.Collection_NoNull); 1042throw new System.ArgumentException(SR.Collection_NoNull); 1059throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\Int32Collection.cs (3)
382throw new ArgumentException(SR.Collection_BadRank); 397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "int"));
System\Windows\Media\Generated\PathFigureCollection.cs (8)
148throw new System.ArgumentException(SR.Collection_NoNull); 256throw new System.ArgumentException(SR.Collection_NoNull); 419throw new ArgumentException(SR.Collection_BadRank); 434throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 523throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathFigure")); 549throw new System.ArgumentException(SR.Collection_NoNull); 1029throw new System.ArgumentException(SR.Collection_NoNull); 1046throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "PathFigureCollection"), "context");
System\Windows\Media\Generated\PathSegmentCollection.cs (8)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "PathSegment")); 548throw new System.ArgumentException(SR.Collection_NoNull); 939throw new System.ArgumentException(SR.Collection_NoNull); 956throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\PointCollection.cs (3)
382throw new ArgumentException(SR.Collection_BadRank); 397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point"));
System\Windows\Media\Generated\TextEffectCollection.cs (8)
147throw new System.ArgumentException(SR.Collection_NoNull); 255throw new System.ArgumentException(SR.Collection_NoNull); 418throw new ArgumentException(SR.Collection_BadRank); 433throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 522throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "TextEffect")); 548throw new System.ArgumentException(SR.Collection_NoNull); 939throw new System.ArgumentException(SR.Collection_NoNull); 956throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\TransformCollection.cs (8)
159throw new System.ArgumentException(SR.Collection_NoNull); 267throw new System.ArgumentException(SR.Collection_NoNull); 432throw new ArgumentException(SR.Collection_BadRank); 447throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 536throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform")); 562throw new System.ArgumentException(SR.Collection_NoNull); 980throw new System.ArgumentException(SR.Collection_NoNull); 998throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media\Generated\TransformConverter.cs (1)
83throw new ArgumentException(SR.Format(SR.General_Expected_Type, "Transform"), "context");
System\Windows\Media\Generated\VectorCollection.cs (3)
382throw new ArgumentException(SR.Collection_BadRank); 397throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 470throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector"));
System\Windows\Media\GlyphRun.cs (13)
413throw new ArgumentException(SR.ClusterMapEntriesShouldNotDecrease, "clusterMap"); 416throw new ArgumentException(SR.ClusterMapEntryShouldPointWithinGlyphIndices, "clusterMap"); 422throw new ArgumentException(SR.ClusterMapFirstEntryMustBeZero, "clusterMap"); 427throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), "clusterMap"); 433throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, GlyphCount), "clusterMap"); 440throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, CodepointCount + 1), "caretStops"); 444throw new ArgumentException(SR.SidewaysRTLTextIsNotSupported); 462throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "glyphIndices"); 466throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, MaxGlyphCount), "glyphIndices"); 472throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "advanceWidths"); 475throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "glyphOffsets"); 1113throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "value"); 1143throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "value");
System\Windows\Media\GlyphTypeface.cs (6)
125throw new ArgumentException(SR.UriNotAbsolute, "typefaceSource"); 238throw new ArgumentException(SR.CollectionNumberOfElementsMustBeGreaterThanZero, "glyphs"); 241throw new ArgumentException(SR.Format(SR.CollectionNumberOfElementsMustBeLessOrEqualTo, ushort.MaxValue), "glyphs"); 303throw new ArgumentException(SR.UriNotAbsolute, "value"); 1826throw new ArgumentException(SR.Collection_BadRank); 1911throw new ArgumentException(SR.Collection_BadRank);
System\Windows\Media\ImageSourceConverter.cs (1)
71throw new ArgumentException(SR.Format(SR.General_Expected_Type, "ImageSource"), "context");
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
94throw new ArgumentException(
System\Windows\Media\Imaging\BitmapFrame.cs (2)
85throw new System.ArgumentException(SR.Image_NoDecodeFrames, "uri"); 102throw new System.ArgumentException(SR.Image_NoDecodeFrames, "stream");
System\Windows\Media\Imaging\BitmapImage.cs (1)
387throw new System.ArgumentException(SR.Image_NoDecodeFrames);
System\Windows\Media\Imaging\BitmapPalette.cs (1)
132throw new System.ArgumentException(SR.Format(SR.Image_PaletteFixedType, paletteType));
System\Windows\Media\Imaging\BitmapSizeOptions.cs (1)
186throw new ArgumentException(SR.Image_SizeOptionsAngle, "rotation");
System\Windows\Media\Imaging\BitmapSource.cs (2)
660throw new ArgumentException(SR.Collection_BadRank, "pixels"); 679throw new ArgumentException(SR.Image_InvalidArrayForPixel);
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
46throw new ArgumentException(SR.Format(SR.Image_CantBeFrozen, null)); 83throw new ArgumentException(SR.Image_CantBeFrozen);
System\Windows\Media\Imaging\CachedBitmap.cs (3)
137throw new ArgumentException(SR.Collection_BadRank, "pixels"); 151throw new ArgumentException(SR.Image_InvalidArrayForPixel); 416throw new System.ArgumentException(
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
57throw new ArgumentException(SR.Image_AlphaThresholdOutOfRange);
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
58throw new System.ArgumentException(
System\Windows\Media\Imaging\WriteableBitmap.cs (7)
95throw new ArgumentException(SR.Effect_PixelFormat, "pixelFormat"); 413throw new ArgumentException(SR.Image_InvalidArrayForPixel); 520throw new ArgumentException(SR.Image_InvalidArrayForPixel); 895throw new ArgumentException(SR.Image_InsufficientBufferSize, "sourceBufferSize"); 1098throw new ArgumentException(SR.Image_InsufficientBuffer, "sourceBuffer"); 1124throw new ArgumentException(SR.Image_InsufficientBuffer, "sourceBuffer"); 1140throw new ArgumentException(SR.Collection_BadRank, backwardsCompat ? "pixels" : "sourceBuffer");
System\Windows\Media\MediaSystem.cs (1)
292throw new ArgumentException(SR.MediaSystem_ApiInvalidContext);
System\Windows\Media\PixelFormat.cs (2)
336throw new System.ArgumentException (SR.Format(SR.Image_BadPixelFormat, pixelFormatString), 430throw new System.ArgumentException (SR.Format(SR.Image_BadPixelFormat, format), "format");
System\Windows\Media\PixelFormatConverter.cs (1)
109throw new ArgumentException(SR.Format(SR.General_Expected_Type,"PixelFormat"));
System\Windows\Media\RequestCachePolicyConverter.cs (1)
85throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "value");
System\Windows\Media\textformatting\NumberSubstitution.cs (1)
101throw new ArgumentException(SR.SpecificNumberCultureRequired);
System\Windows\Media\textformatting\TextFormatter.cs (1)
129throw new ArgumentException(SR.CurrentDispatcherNotFound);
System\Windows\Media\textformatting\TextSimpleMarkerProperties.cs (1)
65throw new ArgumentException(SR.Format(SR.Enum_Invalid, typeof(TextMarkerStyle)), "style");
System\Windows\Media\Visual.cs (2)
2601throw new ArgumentException(SR.Visual_HasParent); 2670throw new ArgumentException(SR.Visual_NotChild);
System\Windows\Media\VisualCollection.cs (5)
194throw new ArgumentException(SR.Collection_BadRank); 362throw new System.ArgumentException(SR.VisualCollection_EntryInUse); 367throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 468throw new System.ArgumentException(SR.VisualCollection_VisualHasParent); 715throw new System.ArgumentException(SR.VisualCollection_VisualHasParent);
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (8)
143throw new System.ArgumentException(SR.Collection_NoNull); 251throw new System.ArgumentException(SR.Collection_NoNull); 414throw new ArgumentException(SR.Collection_BadRank); 429throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 518throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "GeneralTransform3D")); 544throw new System.ArgumentException(SR.Collection_NoNull); 935throw new System.ArgumentException(SR.Collection_NoNull); 952throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\MaterialCollection.cs (8)
155throw new System.ArgumentException(SR.Collection_NoNull); 263throw new System.ArgumentException(SR.Collection_NoNull); 428throw new ArgumentException(SR.Collection_BadRank); 443throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 532throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Material")); 558throw new System.ArgumentException(SR.Collection_NoNull); 976throw new System.ArgumentException(SR.Collection_NoNull); 994throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Model3DCollection.cs (8)
155throw new System.ArgumentException(SR.Collection_NoNull); 263throw new System.ArgumentException(SR.Collection_NoNull); 428throw new ArgumentException(SR.Collection_BadRank); 443throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 532throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Model3D")); 558throw new System.ArgumentException(SR.Collection_NoNull); 976throw new System.ArgumentException(SR.Collection_NoNull); 994throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Point3DCollection.cs (3)
378throw new ArgumentException(SR.Collection_BadRank); 393throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 466throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Point3D"));
System\Windows\Media3D\Generated\Transform3DCollection.cs (8)
155throw new System.ArgumentException(SR.Collection_NoNull); 263throw new System.ArgumentException(SR.Collection_NoNull); 428throw new ArgumentException(SR.Collection_BadRank); 443throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 532throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Transform3D")); 558throw new System.ArgumentException(SR.Collection_NoNull); 976throw new System.ArgumentException(SR.Collection_NoNull); 994throw new System.ArgumentException(SR.Collection_NoNull);
System\Windows\Media3D\Generated\Vector3DCollection.cs (3)
378throw new ArgumentException(SR.Collection_BadRank); 393throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, this.GetType().Name), e); 466throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Vector3D"));
System\Windows\Media3D\Generated\Visual3D.cs (6)
86throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 94throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, clock.Timeline.GetType(), dp.Name, dp.PropertyType), "clock"); 100throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior); 155throw new ArgumentException(SR.Format(SR.Animation_DependencyPropertyIsNotAnimatable, dp.Name, this.GetType()), "dp"); 162throw new ArgumentException(SR.Format(SR.Animation_AnimationTimelineTypeMismatch, animation.GetType(), dp.Name, dp.PropertyType), "animation"); 167throw new ArgumentException(SR.Animation_UnrecognizedHandoffBehavior);
System\Windows\Media3D\ModelVisual3D.cs (1)
96throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(Visual3D).Name));
System\Windows\Media3D\Rect3D.cs (4)
79throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 223throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 248throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 273throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative);
System\Windows\Media3D\Size3D.cs (4)
41throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 102throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 127throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative); 153throw new System.ArgumentException(SR.Size3D_DimensionCannotBeNegative);
System\Windows\Media3D\Viewport2DVisual3D.cs (4)
380throw new ArgumentException(SR.Visual_HasParent); 411throw new ArgumentException(SR.Visual_NotChild); 522throw new ArgumentException(SR.Viewport2DVisual3D_MaterialGroupIsInteractiveMaterial, "material"); 546throw new ArgumentException(SR.Viewport2DVisual3D_MultipleInteractiveMaterials, "material");
System\Windows\Media3D\Visual3DCollection.cs (5)
173throw new ArgumentException(SR.Collection_BadRank); 188throw new ArgumentException(SR.Format(SR.Collection_BadDestArray, "Visual3DCollection"), e); 466throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, "Visual3D")); 476throw new System.ArgumentException(SR.Collection_NoNull); 483throw new System.ArgumentException(SR.VisualCollection_VisualHasParent);
System\Windows\PresentationSource.cs (2)
131throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, element.GetType()), nameof(element)); 197throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, e.GetType()), nameof(e));
System\Windows\QueryContinueDragEventArgs.cs (1)
94throw new ArgumentException(SR.Format(SR.DragDrop_DragActionInvalid, "value"));
System\Windows\TextDecorationCollectionConverter.cs (2)
83throw new ArgumentException(SR.Format(SR.General_BadType, "ConvertFrom"), "input"); 166throw new ArgumentException(SR.Format(SR.InvalidTextDecorationCollectionString, text));
System\Windows\UIElement.cs (4)
1658throw new ArgumentException(SR.SourceNotSet); 1663throw new ArgumentException(SR.Mismatched_RoutedEvent); 1916throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType())); 1953throw new ArgumentException(SR.Format(SR.Invalid_IInputElement, d.GetType()));
PresentationFramework (483)
Microsoft\Win32\FileDialog.cs (1)
337throw new ArgumentException(SR.FileDialogInvalidFilter);
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
202throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 211throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (2)
178throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 189throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart");
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (11)
111throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "start"), "selection"); 118throw new ArgumentException(SR.Format(SR.SelectionDoesNotResolveToAPage, "end"), "selection"); 205throw new ArgumentException(SR.StartNodeMustBeFixedPageProxy, "startNode"); 293throw new ArgumentException(SR.StartNodeMustBeDocumentPageViewOrFixedPage, "startNode"); 315throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 461throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}"); 467throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}"); 487throw new ArgumentException(SR.WrongSelectionType, $"selection: type={selection.GetType()}"); 505throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 509throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 513throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
156throw new ArgumentException(SR.Format(SR.InvalidSubTreeProcessor, processorString)); 371throw new ArgumentException("Unsupported Selection", "selection");
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
82throw new ArgumentException(SR.WrongSelectionType, $"anchor1: type = {anchor1.GetType()}"); 85throw new ArgumentException(SR.WrongSelectionType, $"Anchor2: type = {anchor2.GetType()}"); 238throw new ArgumentException(SR.WrongSelectionType, "selection"); 380throw new ArgumentException(SR.WrongSelectionType, "selection");
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (9)
146throw new ArgumentException(SR.WrongSelectionType, "selection"); 156throw new ArgumentException(SR.InvalidStartNodeForTextSelection, "startNode"); 159throw new ArgumentException(SR.InvalidStartNodeForTextSelection, "startNode"); 203throw new ArgumentException(SR.Format(SR.IncorrectLocatorPartType, $"{locatorPart.PartType.Namespace}:{locatorPart.PartType.Name}"), "locatorPart"); 212throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 253throw new ArgumentException(SR.IncorrectAnchorLength, "locatorPart"); 368throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, TextSelectionProcessor.CountAttribute)); 445throw new ArgumentException("segmentNumber"); 452throw new ArgumentException(SR.Format(SR.InvalidLocatorPart, SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
277throw new ArgumentException(SR.SelectionMustBeServiceProvider, "selection");
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
105throw new ArgumentException(SR.WrongSelectionType, nameof(selection)); 125throw new ArgumentException(SR.WrongSelectionType, nameof(selection));
MS\Internal\Annotations\AnnotationObservableCollection.cs (2)
116throw new ArgumentException(SR.AlreadyHasParent); 130throw new ArgumentException(SR.AlreadyHasParent);
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
47throw new ArgumentException(SR.AnnotationAdorner_NotUIElement, "component");
MS\Internal\Annotations\Component\HighlightComponent.cs (5)
226throw new ArgumentException(SR.MoreThanOneAttachedAnnotation); 276throw new ArgumentException(SR.InvalidAttachedAnnotation, "attachedAnnotation"); 521throw new ArgumentException(SR.InvalidAttachedAnchor, "attachedAnnotation"); 531throw new ArgumentException(SR.AnnotationIsNull, "attachedAnnotation"); 537throw new ArgumentException(SR.Format(SR.NotHighlightAnnotationType, attachedAnnotation.Annotation.AnnotationType.ToString()), "attachedAnnotation");
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (3)
210throw new ArgumentException(SR.MoreThanOneAttachedAnnotation); 242throw new ArgumentException(SR.InvalidAttachedAnnotation, "attachedAnnotation"); 481throw new ArgumentException(SR.InvalidAttachedAnchor);
MS\Internal\Annotations\TextAnchor.cs (1)
109throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, "textPointer"));
MS\Internal\Annotations\XmlElementCollection.cs (2)
100throw new ArgumentException(SR.Format(SR.XmlNodeAlreadyOwned, "change", "change"), "item"); 116throw new ArgumentException(SR.Format(SR.XmlNodeAlreadyOwned, "change", "change"), "item");
MS\Internal\Controls\ConnectionPointCookie.cs (2)
53ex = new ArgumentException(SR.Format(SR.AxNoEventInterface, eventInterface.Name)); 88throw new ArgumentException(SR.Format(SR.AxNoConnectionPoint, eventInterface.Name));
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
956throw new ArgumentException(SR.InvalidValueSpecified, "attachedAnnotation"); 1301throw new ArgumentException(SR.InvalidStickyNoteAnnotation, "attachedAnnotation");
MS\Internal\Data\IndexedEnumerable.cs (1)
332throw new ArgumentException(SR.CopyToNotEnoughSpace, "index");
MS\Internal\Data\RBTree.cs (1)
580throw new ArgumentException(SR.Argument_InvalidOffLen);
MS\Internal\Data\ViewManager.cs (3)
585throw new ArgumentException(SR.Format(SR.CollectionView_WrongType, collectionViewType.Name)); 598throw new ArgumentException(SR.Format(SR.CollectionView_ViewTypeInsufficient, 846throw new ArgumentException(SR.Format(SR.CollectionView_NameTypeDuplicity, collectionViewType, cachedViewType));
MS\Internal\Documents\ContentElementCollection.cs (5)
75throw new ArgumentException(SR.TableCollectionRankMultiDimNotSupported); 83throw new ArgumentException(SR.TableCollectionInvalidOffLen); 115throw new ArgumentException(SR.TableCollectionInvalidOffLen); 461throw new ArgumentException(SR.Format(SR.TableCollectionElementTypeExpected, typeof(TItem).Name), "value"); 515throw new ArgumentException(SR.Format(SR.TableCollectionElementTypeExpected, typeof(TItem).Name), "value");
MS\Internal\Documents\DocumentPageHost.cs (2)
57throw new ArgumentException(SR.DocumentPageView_ParentNotDocumentPageHost, "pageVisual"); 60throw new ArgumentException(SR.DocumentPageView_ParentNotDocumentPageHost, "pageVisual");
MS\Internal\Documents\FlowDocumentPaginator.cs (5)
224throw new ArgumentException(SR.IDPInvalidContentPosition, "contentPosition"); 232throw new ArgumentException(SR.IDPInvalidContentPosition, "contentPosition"); 236throw new ArgumentException(SR.IDPInvalidContentPosition, "contentPosition"); 289throw new ArgumentException(SR.IDPInvalidContentPosition, "contentPosition"); 293throw new ArgumentException(SR.IDPInvalidContentPosition, "contentPosition");
MS\Internal\Documents\ParentUndoUnit.cs (1)
139throw new ArgumentException(SR.UndoUnitNotFound, "unit");
MS\Internal\Documents\TableColumnCollectionInternal.cs (3)
149throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 156throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 285throw new ArgumentException(SR.TableCollectionRangeOutOfRange);
MS\Internal\Documents\TableTextElementCollectionInternal.cs (5)
50throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 115throw new System.ArgumentException(SR.TableCollectionInOtherCollection); 234throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 270throw new System.ArgumentException(SR.TableCollectionWrongProxyParent); 425throw new System.ArgumentException(SR.TableCollectionInOtherCollection);
MS\Internal\Documents\UndoManager.cs (1)
349throw new ArgumentException(SR.UndoUnitNotFound, nameof(unit));
MS\Internal\Ink\ClipboardProcessor.cs (1)
290throw new ArgumentException(SR.InvalidClipboardFormat, "value");
MS\Internal\IO\Packaging\ByteStream.cs (1)
284throw new ArgumentException(SR.BufferTooSmall, "buffer");
MS\Internal\IO\Packaging\ManagedFilter.cs (1)
135throw new ArgumentException(SR.FilterPropSpecUnknownUnionSelector, "propSpec");
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (1)
243throw new ArgumentException(SR.CannotSetNegativePosition);
MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (1)
41throw new ArgumentException(SR.Format(SR.UnexpectedXmlNodeInXmlFixedPageInfoConstructor,
MS\Internal\IO\Packaging\XpsFilter.cs (3)
366throw new ArgumentException(SR.FileNameNullOrEmpty, "pszFileName"); 373throw new ArgumentException(SR.FilterLoadInvalidModeFlag, "dwMode"); 389throw new ArgumentException(SR.FilterLoadInvalidModeFlag, "dwMode");
MS\Internal\KnownBoxes.cs (3)
17throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 36throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative); 53throw new System.ArgumentException(SR.Rect_WidthAndHeightCannotBeNegative);
MS\Internal\Markup\StaticExtension.cs (3)
73throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 81throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, Member)); 91throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, "IXamlTypeResolver"));
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (2)
148throw new ArgumentException(nameof(type)); 201throw new ArgumentException($"The provided type '{runtimeClass.FullName}' is not a WinRT projected runtime class.", nameof(runtimeClass));
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
323throw(new System.ArgumentException(key.ToString()));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (1)
264throw new ArgumentException($"{osVer} is not a valid OS!", nameof(osVer));
System\Windows\Annotations\Annotation.cs (6)
99throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Name");// needs better message 103throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Namespace");//needs better message 135throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Name");//needs better message 139throw new ArgumentException(SR.TypeNameMustBeSpecified, "annotationType.Namespace");//needs better message 144throw new ArgumentException(SR.InvalidGuid, "id"); 148throw new ArgumentException(SR.ModificationEarlierThanCreation, "lastModificationTime");
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
77throw new ArgumentException(SR.OnlyFlowAndFixedSupported);
System\Windows\Annotations\AnnotationHelper.cs (3)
612throw new ArgumentException(SR.InvalidSelectionPages); 943throw new ArgumentException(SR.InvalidHighlightColor, "highlightBrush"); 1099throw new ArgumentException(SR.AnnotationServiceNotEnabled, "service");
System\Windows\Annotations\AnnotationResource.cs (1)
83throw new ArgumentException(SR.InvalidGuid, "id");
System\Windows\Annotations\AnnotationService.cs (3)
148throw new ArgumentException(SR.ParameterMustBeLogicalNode, "root"); 367throw new ArgumentException(SR.ParameterMustBeLogicalNode, "element"); 402throw new ArgumentException(SR.ParameterMustBeLogicalNode, "element");
System\Windows\Annotations\LocatorPart.cs (2)
53throw new ArgumentException(SR.TypeNameMustBeSpecified, "partType.Name"); 57throw new ArgumentException(SR.TypeNameMustBeSpecified, "partType.Namespace");
System\Windows\Annotations\Storage\XmlStreamStore.cs (8)
79throw new ArgumentException(SR.StreamDoesNotSupportSeek); 146throw new ArgumentException(SR.AnnotationAlreadyExists, "newAnnotation"); 150throw new ArgumentException(SR.AnnotationAlreadyExists, "newAnnotation"); 792throw new ArgumentException(SR.NullUri, "knownNamespaces"); 796throw new ArgumentException(SR.DuplicatedUri, "knownNamespaces"); 810throw new ArgumentException(SR.NullUri, "knownNamespaces"); 815throw new ArgumentException(SR.DuplicatedCompatibleUri, "knownNamespaces"); 889throw new ArgumentException(SR.Format(SR.InvalidNamespace, xmlNamespace), "xmlNamespace");
System\Windows\Application.cs (11)
389throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 392throw new ArgumentException(SR.AbsoluteUriNotAllowed); 478throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull,"resourceLocator", "OriginalString")); 481throw new ArgumentException(SR.AbsoluteUriNotAllowed); 613throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriResource", "OriginalString")); 617throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 645throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriContent", "OriginalString")); 649throw new ArgumentException(SR.NonPackAppAbsoluteUriNotAllowed); 674throw new ArgumentException(SR.Format(SR.ArgumentPropertyMustNotBeNull, "uriRemote", "OriginalString")); 680throw new ArgumentException(SR.NonPackSooAbsoluteUriNotAllowed); 1649throw new ArgumentException(SR.Format(SR.WindowPassedShouldBeOnApplicationThread, window.GetType().FullName, this.GetType().FullName));
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
549throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
164throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
141throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
257throw new ArgumentException(SR.PropertyNotSupported);
System\Windows\ComponentResourceKeyConverter.cs (1)
104throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ComponentResourceKey"));
System\Windows\Condition.cs (3)
57throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, conditionValue, conditionProperty.Name)); 140throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 146throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\ConditionCollection.cs (1)
117throw new ArgumentException(SR.MustBeCondition);
System\Windows\Controls\AdornedElementPlaceholder.cs (2)
67throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 70throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
System\Windows\Controls\AVElementHelper.cs (1)
107throw new ArgumentException(SR.AudioVideo_InvalidDependencyObject);
System\Windows\Controls\ColumnDefinition.cs (7)
91throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 99throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 121throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 326throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 562throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition")); 567throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "ColumnDefinitionCollection")); 583throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "ColumnDefinitionCollection", "ColumnDefinition"));
System\Windows\Controls\ContextMenuService.cs (1)
48throw new ArgumentException(SR.ContextMenuInDifferentDispatcher);
System\Windows\Controls\CustomDictionarySources.cs (2)
99throw new ArgumentException(SR.CustomDictionaryItemAlreadyExists, "item"); 363throw new ArgumentException(SR.CustomDictionaryNullItem);
System\Windows\Controls\DataGridColumnCollection.cs (3)
50throw new ArgumentException(SR.Format(SR.DataGrid_InvalidColumnReuse, item.Header), "item"); 76throw new ArgumentException(SR.Format(SR.DataGrid_InvalidColumnReuse, item.Header), "item"); 503throw new ArgumentException(SR.DataGrid_DuplicateDisplayIndex);
System\Windows\Controls\DataGridLength.cs (4)
81throw new ArgumentException( 92throw new ArgumentException( 99throw new ArgumentException( 106throw new ArgumentException(
System\Windows\Controls\Decorator.cs (2)
71throw new ArgumentException (SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"); 76throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType()));
System\Windows\Controls\DocumentViewer.cs (2)
1991throw new ArgumentException(SR.DocumentViewerArgumentMustBeInteger, "data"); 2024throw new ArgumentException(SR.DocumentViewerArgumentMustBePercentage, "data");
System\Windows\Controls\FlowDocumentReader.cs (6)
759throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1648throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1683throw new ArgumentException(SR.FlowDocumentReaderCannotDisableAllViewingModes); 1689throw new ArgumentException(SR.FlowDocumentReaderViewingModeEnabledConflict); 1958throw new ArgumentException(SR.FlowDocumentReaderCanHaveOnlyOneChild); 1962throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value");
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
1202throw new ArgumentException(SR.FlowDocumentScrollViewerDocumentBelongsToAnotherFlowDocumentScrollViewerAlready); 1855throw new ArgumentException(SR.FlowDocumentScrollViewerCanHaveOnlyOneChild); 1859throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value");
System\Windows\Controls\Grid.cs (1)
89throw (new ArgumentException(SR.Format(SR.Grid_UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value"));
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1189throw new ArgumentException(SR.Format(SR.ListView_MissingParameterlessConstructor, headerType), e);
System\Windows\Controls\InkCanvas.cs (1)
1843throw new ArgumentException(SR.InvalidPoint, "point");
System\Windows\Controls\ItemCollection.cs (1)
299throw new ArgumentException(SR.BadTargetArray, "array"); // array is multidimensional.
System\Windows\Controls\ItemContainerGenerator.cs (3)
175throw new ArgumentException(SR.PanelIsNotItemsHost, "panel"); 279throw new ArgumentException(SR.Format(SR.RemoveRequiresOffsetZero, position.Index, position.Offset), "position"); 281throw new ArgumentException(SR.Format(SR.RemoveRequiresPositiveCount, count), "count");
System\Windows\Controls\ItemsPanelTemplate.cs (1)
161throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ItemsPresenter", templatedParent.GetType().Name));
System\Windows\Controls\Panel.cs (1)
99throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value");
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
887throw new ArgumentException(SR.DocumentViewerPageViewsCollectionEmpty); 897throw new ArgumentException(SR.DocumentViewerOneMasterPage); 1743throw new ArgumentException(SR.DocumentViewerChildMustImplementIDocumentPaginatorSource, "value");
System\Windows\Controls\Primitives\Popup.cs (1)
1294throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value");
System\Windows\Controls\PrintDialog.cs (3)
94throw new System.ArgumentException(SR.PrintDialogInvalidPageRange, "PageRange"); 172throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MinPage")); 192throw new System.ArgumentException(SR.Format(SR.PrintDialogZeroNotAllowed, "MaxPage"));
System\Windows\Controls\RichTextBox.cs (4)
158throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FlowDocument)), "value"); 163throw new ArgumentException(SR.Format(SR.CanOnlyHaveOneChild, this.GetType(), value.GetType())); 363throw new ArgumentException(SR.RichTextBox_DocumentBelongsToAnotherRichTextBoxAlready); 579throw new ArgumentException(SR.RichTextBox_PointerNotInSameDocument, "value");
System\Windows\Controls\RowDefinition.cs (7)
91throw new ArgumentException(SR.GridCollection_DestArrayInvalidRank); 99throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 121throw new ArgumentException(SR.Format(SR.GridCollection_DestArrayInvalidLength, "array")); 326throw new ArgumentException(SR.TableCollectionRangeOutOfRange); 562throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition")); 567throw new ArgumentException(SR.Format(SR.GridCollection_InOtherCollection, "value", "RowDefinitionCollection")); 583throw new ArgumentException(SR.Format(SR.GridCollection_MustBeCertainType, "RowDefinitionCollection", "RowDefinition"));
System\Windows\Controls\Stack.cs (1)
863throw new ArgumentException(SR.Stack_VisualInDifferentSubTree,"child");
System\Windows\Controls\StickyNote.cs (1)
1789throw new ArgumentException(SR.InvalidInkForeground);
System\Windows\Controls\TextAdaptor.cs (1)
680throw new ArgumentException(SR.TextProvider_InvalidPoint);
System\Windows\Controls\TextBlock.cs (2)
140throw new ArgumentException(SR.Format(SR.TextPanelIllegalParaTypeForIAddChild, "value", value.GetType())); 158throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, parentType.Name, valueType.Name));
System\Windows\Controls\TextRangeAdaptor.cs (3)
513throw new ArgumentException(SR.TextRangeProvider_WrongTextRange); 1754throw new ArgumentException(SR.Format(SR.TextRangeProvider_EmptyStringParameter, "text")); 1857throw new ArgumentException(SR.Format(SR.TextRangeProvider_InvalidParameterValue, maxLength, "maxLength"));
System\Windows\Controls\ToolBarTray.cs (1)
281throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(ToolBar)), "value");
System\Windows\Controls\UIElementCollection.cs (2)
391throw new System.ArgumentException(SR.Format(SR.Collection_NoNull, "UIElementCollection")); 396throw new System.ArgumentException(SR.Format(SR.Collection_BadType, "UIElementCollection", value.GetType().Name, "UIElement"));
System\Windows\Controls\ViewPort3D.cs (1)
237throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Visual3D)), "value");
System\Windows\Controls\VirtualizationCacheLength.cs (2)
70throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheBeforeViewport")); 75throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "cacheAfterViewport"));
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
74throw new ArgumentException(SR.SelectedCellsCollection_InvalidItem, "cell"); 79throw new ArgumentException(SR.SelectedCellsCollection_DuplicateItem, "cell"); 130throw new ArgumentException(SR.SelectedCellsCollection_InvalidItem, "cell");
System\Windows\Controls\WebBrowser.cs (2)
441throw new ArgumentException(SR.NeedToBeComVisible); 882throw new ArgumentException(SR.AbsoluteUriOnly, "source");
System\Windows\ControlTemplate.cs (3)
71throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, _targetType.Name, templatedParent.GetType().Name)); 77throw new ArgumentException(SR.MustNotTemplateUnassociatedControl); 142throw new ArgumentException(SR.Format(SR.InvalidControlTemplateTargetType, targetType.Name));
System\Windows\CornerRadiusConverter.cs (2)
142throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(CornerRadius)), "value"); 153throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(CornerRadius), destinationType.FullName));
System\Windows\Data\BindingExpression.cs (1)
407throw new ArgumentException(SR.Format(SR.PropertyNotBindable, dp.Name), "dp");
System\Windows\Data\BindingListCollectionView.cs (3)
970throw new ArgumentException(SR.CannotEditPlaceholder, "item"); 2217throw new ArgumentException(SR.CannotDetermineSortByPropertiesForCollection); 2226throw new ArgumentException(SR.Format(SR.PropertyToSortByNotFoundOnType, typeName, sorts[i].PropertyName));
System\Windows\Data\CompositeCollection.cs (1)
485throw new ArgumentException(SR.CollectionContainerMustBeUniqueForComposite, "cc");
System\Windows\Data\ListCollectionView.cs (1)
1168throw new ArgumentException(SR.CannotEditPlaceholder, "item");
System\Windows\Data\MultiBinding.cs (1)
62throw new ArgumentException(SR.Format(SR.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), "value");
System\Windows\Data\MultiBindingExpression.cs (1)
171throw new ArgumentException(SR.Format(SR.PropertyNotBindable, dp.Name), "dp");
System\Windows\Data\PriorityBinding.cs (1)
58throw new ArgumentException(SR.Format(SR.ChildHasWrongType, this.GetType().Name, "BindingBase", value.GetType().FullName), "value");
System\Windows\Data\PriorityBindingExpression.cs (1)
154throw new ArgumentException(SR.Format(SR.PropertyNotBindable, dp.Name), "dp");
System\Windows\Data\RelativeSource.cs (1)
291throw new ArgumentException(SR.RelativeSourceModeInvalid, "mode");
System\Windows\Data\XmlNamespaceMappingCollection.cs (5)
54throw new ArgumentException(SR.Format(SR.RequiresXmlNamespaceMapping, value.GetType().FullName), "value"); 92throw new ArgumentException(SR.RequiresXmlNamespaceMappingUri, nameof(mapping)); 126throw new ArgumentException(SR.RequiresXmlNamespaceMappingUri, nameof(mapping)); 143throw new ArgumentException(SR.Format(SR.Collection_CopyTo_NumberOfElementsExceedsArrayLength, nameof(arrayIndex), nameof(array))); 161throw new ArgumentException(SR.RequiresXmlNamespaceMappingUri, nameof(mapping));
System\Windows\DataTemplate.cs (1)
193throw new ArgumentException(SR.Format(SR.TemplateTargetTypeMismatch, "ContentPresenter", templatedParent.GetType().Name));
System\Windows\DataTrigger.cs (2)
80throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 86throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported);
System\Windows\DependencyPropertyHelper.cs (1)
207throw new ArgumentException(SR.ElementMustBelongToTemplate, nameof(elementInTemplate));
System\Windows\Documents\DocumentSequence.cs (2)
113throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(DocumentReference)), "value"); 338throw new ArgumentException(SR.IDPInvalidContentPosition);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
364throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 370throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position"));
System\Windows\Documents\DocumentSequenceTextPointer.cs (5)
668throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 672throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 676throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 680throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex)); 795throw new ArgumentException(SR.BadDistance, "distance");
System\Windows\Documents\DocumentStructures\SemanticBasicElement.cs (9)
81throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(), 126throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType1, value.GetType(), 164throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(NamedElement)), "value"); 213throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(ListItemStructure)), nameof(value)); 255throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(), 308throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowGroupStructure)), "value"); 350throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowStructure)), nameof(value)); 393throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCellStructure)), nameof(value)); 437throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType4, value.GetType(),
System\Windows\Documents\DocumentStructures\StoryFragments.cs (2)
58throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(StoryFragment)), "value"); 118throw new ArgumentException(SR.Format(SR.DocumentStructureUnexpectedParameterType6, value.GetType(),
System\Windows\Documents\FixedDocument.cs (3)
147throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(PageContent)), "value"); 415throw new ArgumentException(SR.IDPInvalidContentPosition); 455throw new ArgumentException(SR.FixedDocumentExpectsDependencyObject);
System\Windows\Documents\FixedLineResult.cs (1)
52throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FixedLineResult)), "o");
System\Windows\Documents\FixedNode.cs (1)
154throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FixedNode)), "o");
System\Windows\Documents\FixedPage.cs (1)
194throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(UIElement)), "value");
System\Windows\Documents\FixedSOMContainer.cs (1)
42throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, comparedObj.GetType(), typeof(FixedSOMContainer)), "comparedObj");
System\Windows\Documents\FixedSOMGroup.cs (1)
44throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, comparedObj.GetType(), typeof(FixedSOMGroup)), "comparedObj");
System\Windows\Documents\FixedSOMSemanticBox.cs (1)
99throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FixedSOMSemanticBox)), "o");
System\Windows\Documents\FixedTextContainer.cs (2)
331throw new ArgumentException(SR.Format(SR.NotInAssociatedContainer, "position")); 338throw new ArgumentException(SR.Format(SR.BadFixedTextPosition, "position"));
System\Windows\Documents\FixedTextPointer.cs (3)
136throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 283throw new ArgumentException(SR.BadDistance, "distance"); 403throw new ArgumentException(SR.BadDistance, "offset");
System\Windows\Documents\FlowDocument.cs (2)
1642throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, _typeofThis.Name, value.GetType().Name)); 1648throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, value.GetType().Name));
System\Windows\Documents\FlowNode.cs (1)
117throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FlowNode)), "o");
System\Windows\Documents\FlowPosition.cs (1)
74throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(FlowPosition)), "o");
System\Windows\Documents\Glyphs.cs (17)
263throw new ArgumentException(SR.GlyphsCaretStopsContainsHexDigits, "CaretStops"); 270throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 277throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 284throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 291throw new ArgumentException(SR.GlyphsCaretStopsLengthCorrespondsToUnicodeString, "CaretStops"); 315throw new ArgumentException(SR.GlyphsUnicodeStringAndIndicesCannotBothBeEmpty); 416throw new ArgumentException(SR.GlyphsClusterBadCharactersBeforeBracket); 420throw new ArgumentException(SR.GlyphsClusterNoNestedClusters); 424throw new ArgumentException(SR.GlyphsClusterNoMatchingBracket); 438throw new ArgumentException(SR.GlyphsClusterMisplacedSeparator); 475throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 575throw new ArgumentException(SR.GlyphsIndexRequiredIfNoUnicode); 578throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort); 607throw new ArgumentException(SR.GlyphsAdvanceWidthCannotBeNegative); 625throw new ArgumentException(SR.GlyphsTooManyCommas); 670throw new ArgumentException(SR.GlyphsIndexRequiredWithinCluster); 673throw new ArgumentException(SR.GlyphsUnicodeStringIsTooShort);
System\Windows\Documents\NLGSpellerInterop.cs (1)
982throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath), e);
System\Windows\Documents\PageContent.cs (1)
191throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(FixedPage)), "value");
System\Windows\Documents\Serialization\SerializerDescriptor.cs (4)
72throw new ArgumentException(SR.SerializerProviderDisplayNameNull); 76throw new ArgumentException(SR.SerializerProviderManufacturerNameNull); 80throw new ArgumentException(SR.SerializerProviderManufacturerWebsiteNull); 84throw new ArgumentException(SR.SerializerProviderDefaultFileExtensionNull);
System\Windows\Documents\Serialization\SerializerProvider.cs (8)
94throw new ArgumentException(SR.SerializerProviderAlreadyRegistered, serializerKey); 120throw new ArgumentException(SR.SerializerProviderNotRegistered, serializerKey); 146throw new ArgumentException(SR.SerializerProviderWrongVersion, serializerKey); 162throw new ArgumentException(SR.SerializerProviderUnknownSerializer, serializerKey); 173throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName); 177throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName); 181throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName); 185throw new ArgumentException(SR.SerializerProviderCannotLoad, serializerDescriptor.DisplayName);
System\Windows\Documents\Span.cs (3)
103throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "start", "end")); 107throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "start", "end")); 120throw new ArgumentException(SR.Format(SR.InDifferentParagraphs, "start", "end"));
System\Windows\Documents\Table.cs (1)
85throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRowGroup)), "value"));
System\Windows\Documents\TableColumnCollection.cs (1)
281throw new ArgumentException(SR.Format(SR.TableCollectionElementTypeExpected, typeof(TableColumn).Name), "value");
System\Windows\Documents\TableRow.cs (1)
81throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableCell)), "value"));
System\Windows\Documents\TableRowGroup.cs (1)
96throw (new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(TableRow)), "value"));
System\Windows\Documents\TextElement.cs (6)
105throw new ArgumentException(SR.TextElement_UnmatchedEndPointer); 131throw new ArgumentException(SR.Format(SR.InDifferentScope, "start", "end")); 824throw new ArgumentException(SR.Format(SR.TextSchema_ThisInlineUIContainerHasAChildUIElementAlready, this.GetType().Name, ((InlineUIContainer)this).Child.GetType().Name, value.GetType().Name)); 836throw new ArgumentException(SR.Format(SR.TextSchema_ThisBlockUIContainerHasAChildUIElementAlready, this.GetType().Name, ((BlockUIContainer)this).Child.GetType().Name, value.GetType().Name)); 852throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name)); 859throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, this.GetType().Name, value.GetType().Name));
System\Windows\Documents\TextElementCollection.cs (11)
256throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 295throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 324throw new ArgumentException(SR.TextElementCollection_NoEnumerator, "range"); 338throw new ArgumentException(SR.Format(SR.TextElementCollection_ItemHasUnexpectedType, "range", typeof(TextElementType).Name, typeof(TextElementType).Name), "value"); 401throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value"); 456throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value"); 466throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, this.GetType().Name)); 567throw new ArgumentException(SR.Format(SR.TextElementCollection_TextElementTypeExpected, typeof(TextElementType).Name), "value"); 605throw new ArgumentException("array"); 612throw new ArgumentException("arrayIndex"); 617throw new ArgumentException(SR.Format(SR.TextElementCollection_CannotCopyToArrayNotSufficientMemory, count, arrayIndex, array.Length));
System\Windows\Documents\TextPointer.cs (6)
295throw new ArgumentException(SR.BadDistance); 1758throw new ArgumentException(SR.Format(SR.NegativeValue, "startIndex")); 1762throw new ArgumentException(SR.Format(SR.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 1766throw new ArgumentException(SR.Format(SR.NegativeValue, "count")); 1770throw new ArgumentException(SR.Format(SR.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex)); 3911throw new ArgumentException(SR.BadDistance);
System\Windows\Documents\TextRange.cs (5)
795throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name)); 812throw new ArgumentException(SR.Format(SR.TextEditorTypeOfParameterIsNotAppropriateForFormattingProperty, value == null ? "null" : value.GetType().Name, formattingProperty.Name), "value"); 822throw new ArgumentException(SR.TextRange_InvalidParameterValue, "propertyValueAction"); 828throw new ArgumentException(SR.Format(SR.TextRange_PropertyCannotBeIncrementedOrDecremented, formattingProperty.Name), "propertyValueAction"); 864throw new ArgumentException(SR.Format(SR.TextEditorPropertyIsNotApplicableForTextFormatting, formattingProperty.Name));
System\Windows\Documents\TextRangeBase.cs (6)
69throw new ArgumentException(SR.NotInAssociatedTree, "textPointer"); 1542throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), "dataFormat"); 1576throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), "stream"); 1588throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), "stream"); 1593throw new ArgumentException(SR.Format(SR.TextRange_UnrecognizedStructureInDataFormat, dataFormat), "stream"); 1600throw new ArgumentException(SR.Format(SR.TextRange_UnsupportedDataFormat, dataFormat), "dataFormat");
System\Windows\Documents\TextStore.cs (1)
3366throw new ArgumentException(SR.Format(SR.TextStore_BadIMECharOffset, offset, this.TextContainer.IMECharCount));
System\Windows\Documents\ValidationHelper.cs (5)
47throw new ArgumentException(SR.Format(SR.NotInAssociatedTree, paramName)); 62throw new ArgumentException(SR.Format(SR.InDifferentTextContainers, "startPosition", "endPosition")); 66throw new ArgumentException(SR.Format(SR.BadTextPositionOrder, "startPosition", "endPosition")); 110throw new ArgumentException(SR.Format(SR.TextSchema_ChildTypeIsInvalid, position.Parent.GetType().Name, child.GetType().Name)); 118throw new ArgumentException(SR.Format(SR.TextSchema_TheChildElementBelongsToAnotherTreeAlready, child.GetType().Name));
System\Windows\Documents\WinRTSpellerInterop.cs (2)
439throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath)); 497throw new ArgumentException(SR.Format(SR.CustomDictionaryFailedToLoadDictionaryUri, lexiconFilePath), e);
System\Windows\Documents\WpfPayload.cs (1)
494throw new ArgumentException(SR.WpfPayload_InvalidImageSource);
System\Windows\DynamicResourceExtensionConverter.cs (1)
52throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "DynamicResourceExtension"), "value");
System\Windows\EventSetter.cs (3)
97throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Event")); 101throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "EventSetter.Handler")); 105throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\EventSetterHandlerConverter.cs (1)
66throw new ArgumentException(SR.TextRange_InvalidParameterValue, "typeDescriptorContext");
System\Windows\EventTrigger.cs (1)
61throw new ArgumentException(SR.Format(SR.EventTriggerBadAction, value.GetType().Name));
System\Windows\FigureLength.cs (3)
105throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 109throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 121throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownFigureUnitType, "type"));
System\Windows\FrameworkElement.cs (1)
496throw new ArgumentException( SR.Format(SR.TargetNameNotFound, targetName));
System\Windows\FrameworkElementFactory.cs (7)
99throw new ArgumentException(SR.Format(SR.MustBeFrameworkOr3DDerived, value.Name)); 156throw new ArgumentException(SR.NameNotEmptyString); 179throw new ArgumentException(SR.FrameworkElementFactoryAlreadyParented); 221throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dp.Name)); 235throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, dp.Name, GetType().Name)); 323throw new ArgumentException(SR.HandlerTypeIllegal); 359throw new ArgumentException(SR.HandlerTypeIllegal);
System\Windows\FrameworkPropertyMetadata.cs (2)
227throw new ArgumentException(SR.NoDefaultUpdateSourceTrigger, "defaultUpdateSourceTrigger"); 486throw new ArgumentException(SR.NoDefaultUpdateSourceTrigger, "value");
System\Windows\FrameworkTemplate.cs (2)
386throw new ArgumentException(SR.Format(SR.VisualTreeRootIsFrameworkElement, 849throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, dependencyProperty.Name));
System\Windows\GridLength.cs (3)
94throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoNaN, "value")); 98throw new ArgumentException(SR.Format(SR.InvalidCtorParameterNoInfinity, "value")); 104throw new ArgumentException(SR.Format(SR.InvalidCtorParameterUnknownGridUnitType, "type"));
System\Windows\Ink\Events.cs (2)
313throw new ArgumentException(SR.InvalidEmptyStrokeCollection, "strokes"); 320throw new ArgumentException(SR.InvalidEmptyArray, "gestureRecognitionResults");
System\Windows\Interop\DynamicScriptObject.cs (4)
134throw new ArgumentException("indexes", HRESULT.DISP_E_BADPARAMCOUNT.GetException()); 162throw new ArgumentException("indexes", HRESULT.DISP_E_BADPARAMCOUNT.GetException()); 364throw new ArgumentException(SR.NeedToBeComVisible); 424throw new ArgumentException(member, new InvalidCastException(comException.Message, hr.Code));
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
1437throw new ArgumentException(SR.Format(SR.IntegerCollectionLengthLessThanZero, Array.Empty<object>())); 2083throw new ArgumentException(SR.Format(SR.MissingTagInNamespace, "=", uriInput)); 2088throw new ArgumentException(SR.Format(SR.AssemblyTagMissing, "assembly", uriInput));
System\Windows\Markup\Baml2006\SharedStream.cs (1)
49throw new ArgumentException("can\u2019t seek on baseStream");
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
89throw new ArgumentException(SR.AssemblyIdNegative); 128throw new ArgumentException(SR.KnownTypeIdNegative); 157throw new ArgumentException(SR.KnownTypeIdNegative);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
53throw new ArgumentException(SR.Format(SR.RuntimeTypeRequired, type), "type");
System\Windows\Markup\BamlWriter.cs (2)
46throw new ArgumentException(SR.BamlWriterBadStream); 1081throw new ArgumentException(SR.Format(SR.BamlWriterBadAssembly,
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (3)
289throw new ArgumentException( 301throw new ArgumentException( 363throw new ArgumentException(
System\Windows\Markup\RoutedEventConverter.cs (1)
169throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, nameString));
System\Windows\Markup\XamlInt32CollectionSerializer.cs (2)
285throw new ArgumentException(SR.IntegerCollectionLengthLessThanZero); 334throw new ArgumentException(SR.UnknownIndexType);
System\Windows\Markup\XamlSerializerUtil.cs (1)
54throw new ArgumentException(SR.Format(SR.NonWhiteSpaceInAddText, s));
System\Windows\Markup\XamlStream.cs (2)
165throw new ArgumentException(SR.ParserWriterUnknownOrigin); 309throw new ArgumentException(SR.ParserWriterUnknownOrigin);
System\Windows\Markup\XmlnsCache.cs (2)
362throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsDefinitionAttribute")); 397throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, "XmlnsCompatibleWithAttribute"));
System\Windows\Markup\XmlnsDictionary.cs (3)
146throw new ArgumentException(SR.ParserKeysAreStrings); 475throw new ArgumentException(SR.ParserKeysAreStrings); 483throw new ArgumentException(SR.ParserKeysAreStrings);
System\Windows\Media\Animation\BeginStoryboard.cs (2)
84throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior); 109throw new ArgumentException(SR.Format(SR.InvalidPropertyValue, value, "Name"));
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
237throw new ArgumentException(SR.Animation_ChildMustBeKeyFrame, "child");
System\Windows\Media\Animation\SeekStoryboard.cs (1)
83throw new ArgumentException(SR.Storyboard_UnrecognizedTimeSeekOrigin);
System\Windows\Media\Animation\Storyboard.cs (1)
1217throw new ArgumentException(SR.Storyboard_UnrecognizedHandoffBehavior);
System\Windows\MessageBox.cs (1)
382throw new ArgumentException(SR.CantShowMBServiceWithOwner);
System\Windows\Navigation\NavigationService.cs (1)
207throw new System.ArgumentException(SR.HyperLinkTargetNotFound);
System\Windows\PropertyPath.cs (1)
860throw new ArgumentException(SR.Format(SR.ParserPrefixNSProperty, nsPrefix, name));
System\Windows\PropertyPathConverter.cs (3)
112throw new ArgumentException(SR.Format(SR.CannotConvertType, source.GetType().FullName, typeof(PropertyPath))); 143throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(PropertyPath), destinationType.FullName)); 149throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(PropertyPath)), "value");
System\Windows\ResourceDictionary.cs (2)
147throw new ArgumentException(SR.Format(SR.ResourceDictionaryLoadFromFailure, value == null ? "''" : value.ToString())); 1244throw new ArgumentException(SR.KeyCollectionHasInvalidKey);
System\Windows\ResourceReferenceExpressionConverter.cs (1)
122throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "ResourceReferenceExpression"));
System\Windows\Setter.cs (8)
61throw new ArgumentException(SR.SetterValueCannotBeUnset); 80throw new ArgumentException(SR.Format(SR.ReadOnlyPropertyNotAllowed, property.Name, GetType().Name)); 102throw new ArgumentException(SR.Format(SR.NullPropertyIllegal, "Setter.Property")); 110throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 124throw new ArgumentException(SR.Format(SR.SetterValueOfMarkupExtensionNotSupported, 131throw new ArgumentException(SR.Format(SR.InvalidSetterValue, value, dp.OwnerType, dp.Name)); 184throw new ArgumentException(SR.SetterValueCannotBeUnset); 192throw new ArgumentException(SR.StyleValueOfExpressionNotSupported);
System\Windows\Shell\JumpList.cs (1)
72throw new ArgumentException(SR.JumpItemsRejectedEventArgs_CountMismatch);
System\Windows\Shell\WindowChrome.cs (4)
122throw new ArgumentException("The element must be a DependencyObject", "inputElement"); 135throw new ArgumentException("The element must be a DependencyObject", "inputElement"); 154throw new ArgumentException("The element must be a DependencyObject", "inputElement"); 167throw new ArgumentException("The element must be a DependencyObject", "inputElement");
System\Windows\Standard\Verify.cs (16)
71throw new ArgumentException(errorMessage, name); 96throw new ArgumentException(errorMessage, name); 110throw new ArgumentException("The parameter must not be the default value.", name); 138throw new ArgumentException("The parameter must be null.", name); 173throw new ArgumentException("", name); 189throw new ArgumentException(message, name); 202throw new ArgumentException(message, parameterName); 207throw new ArgumentException(message, parameterName); 220throw new ArgumentException(message, parameterName); 225throw new ArgumentException(message, parameterName); 236throw new ArgumentException("The URI must be absolute.", parameterName); 252throw new ArgumentException(string.Create(CultureInfo.InvariantCulture, $"The integer value must be bounded with [{lowerBoundInclusive}, {upperBoundExclusive})"), parameterName); 262throw new ArgumentException(message, parameter); 276throw new ArgumentException("The type of this parameter does not support a required interface", parameterName); 287throw new ArgumentException($"No file exists at \"{filePath}\"", parameterName); 311throw new ArgumentException($"The parameter must implement interface {interfaceType}.", parameterName);
System\Windows\Style.cs (3)
188throw new ArgumentException(SR.Format(SR.MustBeFrameworkDerived, value.Name)); 226throw new ArgumentException(SR.StyleCannotBeBasedOnSelf); 417throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(SetterBase)), "value");
System\Windows\StyleHelper.cs (1)
5329throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, childName));
System\Windows\SystemKeyConverter.cs (1)
135throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "SystemResourceKey or SystemThemeKey"));
System\Windows\TemplateBindingExpressionConverter.cs (1)
49throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "TemplateBindingExpression"));
System\Windows\TemplateBindingExtensionConverter.cs (1)
55throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "TemplateBindingExtension"), "value");
System\Windows\TemplateKey.cs (2)
166result = new ArgumentException(SR.Format(SR.MustBeTypeOrString, dataType.GetType().Name), argName); 170result = new ArgumentException(SR.DataTypeCannotBeObject, argName);
System\Windows\ThicknessConverter.cs (2)
139throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Thickness)), "value"); 150throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(Thickness), destinationType.FullName));
System\Windows\Trigger.cs (3)
86throw new ArgumentException(SR.Format(SR.ConditionValueOfMarkupExtensionNotSupported, 92throw new ArgumentException(SR.ConditionValueOfExpressionNotSupported); 188throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, o.GetType(), typeof(Setter)), "o");
System\Windows\TriggerActionCollection.cs (1)
308throw new ArgumentException(SR.MustBeTriggerAction);
System\Windows\TriggerBase.cs (2)
183throw new ArgumentException(SR.StylePropertyInStyleNotAllowed); 197throw new ArgumentException(SR.ChildNameMustBeNonEmpty);
System\Windows\Window.cs (5)
1184throw new ArgumentException(SR.CannotSetOwnerToItself); 1218throw new ArgumentException(SR.Format(SR.CircularOwnerChild, value, this)); 5604throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, l)); 5615throw new ArgumentException(SR.Format(SR.InvalidValueForTopLeft, length)); 5621throw new ArgumentException(SR.Format(SR.ValueNotBetweenInt32MinMax, length));
PresentationUI (3)
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (1)
92throw new ArgumentException(SR.PackagePartTypeNotWritable, "contentType");
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
88throw new ArgumentException(
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
47throw new ArgumentException(SR.DigitalSignatureNoFixedDocumentSequence);
ReachFramework (20)
Packaging\XpsFixedPageReaderWriter.cs (2)
1232throw new ArgumentException(SR.ReachPackaging_InvalidType); 1252throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, mimeType.ToString()));
Packaging\XpsManager.cs (4)
314throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, contentType), "contentType"); 364throw new ArgumentException(SR.ReachPackaging_InvalidType); 1194throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, contentType), "contentType"); 1489throw new ArgumentException(SR.ReachPackaging_PartFromDifferentContainer);
PrintConfig\FallbackPTProvider.cs (1)
113throw new ArgumentException(
PrintConfig\PTProvider.cs (3)
241throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, 346throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, 507throw new ArgumentException(String.Format(CultureInfo.CurrentCulture,
Serialization\FontTypeConverter.cs (1)
162throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "GlyphRun"));
Serialization\ImageSourceTypeConverter.cs (1)
171throw new ArgumentException(SR.Format(SR.MustBeOfType, "value", "BitmapSource"));
Serialization\Manager\NGCSerializer.cs (3)
100throw new ArgumentException(SR.ReachSerialization_ExpectedFixedDocument); 169throw new ArgumentException(SR.ReachSerialization_ExpectedFixedPage); 486throw new ArgumentException(SR.ReachSerialization_ExpectedFixedDocumentSequence);
Serialization\Manager\ReachVisualSerializer.cs (2)
57throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 193throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\ReachVisualSerializerAsync.cs (2)
89throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 242throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\XpsOMPackagingPolicy.cs (1)
545throw new ArgumentException(SR.Format(SR.ReachPackaging_InvalidContentType, contentType.ToString()));
ResultsOfTGenerator (1)
Program.cs (1)
24throw new ArgumentException("Invalid number of args specified. Must specify both class file path and test file path if args are passed.");
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
62throw new ArgumentException($"TestConnection does not support address family of type {addressFamily}", nameof(addressFamily));
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestConnection.cs (1)
62throw new ArgumentException($"TestConnection does not support address family of type {addressFamily}", nameof(addressFamily));
Swaggatherer (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
System.Collections (63)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\BitArray.cs (10)
82throw new ArgumentException(SR.Format(SR.Argument_ArrayTooLarge, BitsPerByte), nameof(bytes)); 204throw new ArgumentException(SR.Format(SR.Argument_ArrayTooLarge, BitsPerInt32), nameof(values)); 330throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 403throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 476throw new ArgumentException(SR.Arg_ArrayLengthsDiffer); 755throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 761throw new ArgumentException(SR.Argument_InvalidOffLen); 779throw new ArgumentException(SR.Argument_InvalidOffLen); 826throw new ArgumentException(SR.Argument_InvalidOffLen); 969throw new ArgumentException(SR.Arg_BitArrayTypeUnsupported, nameof(array));
System\Collections\Generic\LinkedList.cs (6)
207throw new ArgumentException(SR.Arg_InsufficientSpace); 453throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 458throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 465throw new ArgumentException(SR.Arg_InsufficientSpace); 480throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 496throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\PriorityQueue.cs (4)
941throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 946throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 956throw new ArgumentException(SR.Argument_InvalidOffLen); 965throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\SortedDictionary.cs (15)
334throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 339throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 363throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 368throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 550throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 562throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 567throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 574throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 590throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 711throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 723throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 728throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 735throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 751throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 904throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, item));
System\Collections\Generic\SortedList.cs (15)
167throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, keys[i])); 185throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key), nameof(key)); 273throw new ArgumentException(SR.Format(SR.Arg_WrongType, key, typeof(TKey)), nameof(key)); 276throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 442throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 458throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 463throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 473throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 488throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 500throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 626throw new ArgumentException(SR.Format(SR.Arg_WrongType, value, typeof(TValue)), nameof(value)); 1054throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1063throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1168throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1177throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Generic\SortedSet.cs (7)
523throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 546throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 551throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 558throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 571throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 584throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 1515throw new ArgumentException(SR.SortedSet_LowerValueGreaterThanUpperValue, nameof(lowerValue));
System\Collections\Generic\Stack.cs (5)
108throw new ArgumentException(SR.Argument_InvalidOffLen); 126throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 131throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 141throw new ArgumentException(SR.Argument_InvalidOffLen); 151throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System.Collections.Concurrent (21)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\Concurrent\BlockingCollection.cs (10)
184throw new ArgumentException(SR.BlockingCollection_ctor_CountMoreThanCapacity); 994throw new ArgumentException(SR.BlockingCollection_CantAddAnyWhenCompleted, nameof(collections)); //case#4 1378throw new ArgumentException(SR.BlockingCollection_CantTakeAnyWhenAllDone, nameof(collections)); 1578throw new ArgumentException(SR.Collection_CopyTo_TooManyElems, nameof(index)); 1582throw new ArgumentException(SR.BlockingCollection_CopyTo_MultiDim, nameof(array)); 1586throw new ArgumentException(SR.BlockingCollection_CopyTo_IncorrectType, nameof(array)); 1590throw new ArgumentException(SR.BlockingCollection_CopyTo_IncorrectType, nameof(array)); 1659throw new ArgumentException( 1674throw new ArgumentException( 1684throw new ArgumentException(
System\Collections\Concurrent\ConcurrentBag.cs (1)
297throw new ArgumentException(SR.Collection_CopyTo_TooManyElems, nameof(index));
System\Collections\Concurrent\ConcurrentDictionary.cs (7)
295throw new ArgumentException(SR.ConcurrentDictionary_SourceContainsDuplicateKeys); 720throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough); 1527throw new ArgumentException(SR.ConcurrentDictionary_KeyAlreadyExisted); 1663throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1796throw new ArgumentException(SR.ConcurrentDictionary_TypeOfKeyIncorrect); 1856throw new ArgumentException(SR.ConcurrentDictionary_ArrayNotLargeEnough); 1883throw new ArgumentException(SR.ConcurrentDictionary_ArrayIncorrectType, nameof(array));
System\Collections\Concurrent\ConcurrentStack.cs (1)
402throw new ArgumentException(SR.ConcurrentStack_PushPopRange_InvalidCount);
System\ThrowHelper.cs (1)
20internal static void ThrowValueNullException() => throw new ArgumentException(SR.ConcurrentDictionary_TypeOfValueIncorrect);
System.Collections.Immutable (24)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Collections\Frozen\FrozenDictionary.cs (5)
354throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 359throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 369throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall, nameof(array)); 390throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 402throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
System\Collections\Frozen\FrozenSet.cs (1)
252throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
60throw new ArgumentException(SR.CapacityMustBeGreaterThanOrEqualToCount, paramName: nameof(value));
System\Collections\Immutable\ImmutableArray_1.cs (4)
595throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue)); 1450throw new ArgumentException(SR.ArrayInitializedStateNotEqual, nameof(other)); 1460throw new ArgumentException(SR.ArrayInitializedStateNotEqual, nameof(other)); 1466throw new ArgumentException(SR.ArrayLengthsNotEqual, nameof(other));
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (4)
162throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 168throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 194throw new ArgumentException(SR.Format(SR.DuplicateKey, key)); 200throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
848throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue));
System\Collections\Immutable\ImmutableList_1.cs (1)
411throw new ArgumentException(SR.CannotFindOldValue, nameof(oldValue));
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
873throw new ArgumentException(SR.Format(SR.DuplicateKey, item.Key));
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
705throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System\Collections\Immutable\SortedInt32KeyNode.cs (1)
466throw new ArgumentException(SR.Format(SR.DuplicateKey, key));
System\Collections\ThrowHelper.cs (1)
22throw new ArgumentException(SR.CapacityMustBeGreaterThanOrEqualToCount, "destination");
Validation\Requires.cs (2)
117throw new ArgumentException(message, parameterName); 129throw new ArgumentException();
System.Collections.NonGeneric (10)
System\Collections\CollectionBase.cs (1)
170if (index < 0) throw new ArgumentException(SR.Arg_RemoveArgNotFound);
System\Collections\Queue.cs (2)
133throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 138throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Collections\SortedList.cs (5)
179throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate_OldAndNewKeys, GetKey(i), key)); 339throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 342throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 941throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1044throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
System\Collections\Stack.cs (2)
119throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 122throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Collections.Specialized (9)
src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
44throw new ArgumentException(SR.Argument_ImplementIComparable);
System\Collections\Specialized\ListDictionary.cs (2)
163throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key)); 211throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Specialized\NameObjectCollectionBase.cs (4)
377throw new ArgumentException(SR.Arg_MultiRank, nameof(array)); 384throw new ArgumentException(SR.Arg_InsufficientSpace); 601throw new ArgumentException(SR.Arg_MultiRank, nameof(array)); 608throw new ArgumentException(SR.Arg_InsufficientSpace);
System\Collections\Specialized\NameValueCollection.cs (2)
202throw new ArgumentException(SR.Arg_MultiRank, nameof(dest)); 209throw new ArgumentException(SR.Arg_InsufficientSpace);
System.ComponentModel.Annotations (5)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
43throw new ArgumentException(SR.Format(SR.Common_PropertyNotFound, validationContext.ObjectType.FullName, OtherProperty));
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
184throw new ArgumentException(SR.Format(SR.AttributeStore_Unknown_Property, _type.Name, propertyName),
System\ComponentModel\DataAnnotations\Validator.cs (3)
140throw new ArgumentException(SR.Validator_InstanceMustMatchValidationContextInstance, nameof(instance)); 284throw new ArgumentException(SR.Validator_InstanceMustMatchValidationContextInstance, nameof(instance)); 380throw new ArgumentException(SR.Format(SR.Validator_Property_Value_Wrong_Type, propertyName, propertyType),
System.ComponentModel.Composition (35)
Microsoft\Internal\Requires.cs (2)
100throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_InvalidEnumInSet, parameterName, value, enumFlagSet.ToString()), parameterName); 119throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, parameterName), parameterName);
System\ComponentModel\Composition\AttributedModel\AttributedModelDiscovery.cs (1)
55throw new ArgumentException(SR.Format(SR.Argument_ReflectionContextReturnsReflectionOnlyType, nameof(reflectionContext)), nameof(reflectionContext));
System\ComponentModel\Composition\ConstraintServices.cs (7)
121throw new ArgumentException(nameof(parameter)); 126throw new ArgumentException(nameof(constantKey)); 140throw new ArgumentException(nameof(parameter)); 145throw new ArgumentException(nameof(constantKey)); 150throw new ArgumentException(nameof(constantType)); 168throw new ArgumentException(nameof(parameter)); 173throw new ArgumentException(nameof(constantValue));
System\ComponentModel\Composition\ExceptionBuilder.cs (10)
25return new ArgumentException(message, parameterName); 41throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(memberName)), nameof(memberName)); 55throw new ArgumentException(SR.ArgumentException_EmptyString); 61return new ArgumentException(message, parameterName); 70throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName)); 75return new ArgumentException(message, parameterName); 94throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(parameterName)), nameof(parameterName)); 102return new ArgumentException(SR.Format(SR.ReflectionModel_InvalidPartDefinition, partDefinitionType), parameterName); 111throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(typeName)), nameof(typeName)); 116return new ArgumentException(message, typeName);
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (1)
394throw new ArgumentException(SR.Format(SR.Argument_AssemblyReflectionOnly, nameof(assembly)), nameof(assembly));
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (3)
185throw new ArgumentException(SR.Format(SR.Argument_ElementReflectionOnlyType, nameof(types)), nameof(types)); 196throw new ArgumentException(SR.Format(SR.Argument_ReflectionContextReturnsReflectionOnlyType, nameof(reflectionContext)), nameof(reflectionContext)); 216throw new ArgumentException(SR.Format(SR.Argument_ElementReflectionOnlyType, nameof(types)), nameof(types));
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (1)
105throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_InvalidEnum, nameof(cardinality), cardinality, nameof(ImportCardinality)), nameof(cardinality));
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (1)
53throw new ArgumentException(errorMessage, nameof(accessors));
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (3)
43throw new ArgumentException(SR.ArgumentValueType, nameof(attributedPart)); 400throw new ArgumentException(SR.Argument_ExportsEmpty, nameof(exports)); 403throw new ArgumentException(SR.Argument_ExportsTooMany, nameof(exports));
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (5)
50throw new ArgumentException( 65throw new ArgumentException( 80throw new ArgumentException( 96throw new ArgumentException( 118throw new ArgumentException(
System\Composition\Diagnostics\CompositionTrace.cs (1)
49throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(fileName)), nameof(fileName));
System.ComponentModel.Composition.Registration (2)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (2)
60throw new ArgumentException(SR.Format(SR.Argument_ExpressionMustBePropertyMember, nameof(propertyFilter)), nameof(propertyFilter)); 107throw new ArgumentException(SR.Format(SR.Argument_ExpressionMustBePropertyMember, nameof(constructorFilter)), nameof(constructorFilter));
System.ComponentModel.TypeConverter (73)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
67_ => throw new ArgumentException(SR.Format(SR.InvalidColor, text)), 112throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text.ToString(), nameof(Int32)), e);
System\ComponentModel\AmbientValueAttribute.cs (1)
147throw new ArgumentException(SR.RuntimeInstanceNotAllowed);
System\ComponentModel\BaseNumberConverter.cs (1)
80throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text, TargetType.Name), nameof(value), e);
System\ComponentModel\Container.cs (1)
235throw new ArgumentException(SR.Format(SR.DuplicateComponentName, name));
System\ComponentModel\CultureInfoConverter.cs (1)
127throw new ArgumentException(SR.Format(SR.CultureInfoConverterInvalidCulture, (string)value), nameof(value));
System\ComponentModel\Design\DesignerOptionService.cs (1)
42throw new ArgumentException(SR.Format(SR.InvalidArgumentValue, "name.Length"), nameof(name));
System\ComponentModel\Design\PropertyTabAttribute.cs (6)
58throw new ArgumentException(SR.PropertyTabAttributeBadPropertyTabScope, nameof(tabScope)); 75throw new ArgumentException(SR.PropertyTabAttributeBadPropertyTabScope, nameof(tabScope)); 198throw new ArgumentException(SR.PropertyTabAttributeArrayLengthMismatch); 206throw new ArgumentException(SR.PropertyTabAttributeArrayLengthMismatch); 213throw new ArgumentException(SR.PropertyTabAttributeParamsBothNull); 222throw new ArgumentException(SR.PropertyTabAttributeBadPropertyTabScope);
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (8)
46throw new ArgumentException(SR.InstanceDescriptorMustBeStatic); 50throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 57throw new ArgumentException(SR.InstanceDescriptorCannotBeStatic); 61throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 68throw new ArgumentException(SR.InstanceDescriptorMustBeStatic); 72throw new ArgumentException(SR.InstanceDescriptorLengthMismatch); 79throw new ArgumentException(SR.InstanceDescriptorMustBeReadable); 84throw new ArgumentException(SR.InstanceDescriptorMustBeStatic);
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (3)
46throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "source.Owner"), nameof(source)); 59throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "source.Owner"), nameof(source)); 125throw new ArgumentException(SR.Format(SR.MemberRelationshipService_RelationshipNotSupported, sourceName, source.Member.Name, relName, relationship.Member.Name));
System\ComponentModel\Design\ServiceContainer.cs (3)
85throw new ArgumentException(SR.Format(SR.ErrorInvalidServiceInstance, serviceType.FullName)); 90throw new ArgumentException(SR.Format(SR.ErrorServiceExists, serviceType.FullName), nameof(serviceType)); 127throw new ArgumentException(SR.Format(SR.ErrorServiceExists, serviceType.FullName), nameof(serviceType));
System\ComponentModel\EnumConverter.cs (2)
28throw new ArgumentException(SR.EnumInvalidValue); 133throw new ArgumentException(SR.Format(SR.EnumConverterInvalidValue, value, EnumType.Name));
System\ComponentModel\LicenseManager.cs (1)
249throw new ArgumentException(SR.LicMgrDifferentUser);
System\ComponentModel\MaskedTextProvider.cs (3)
227throw new ArgumentException(SR.MaskedTextProviderMaskInvalidChar); 674throw new ArgumentException(SR.MaskedTextProviderInvalidCharError); 705throw new ArgumentException(SR.MaskedTextProviderInvalidCharError);
System\ComponentModel\MemberDescriptor.cs (1)
47throw new ArgumentException(SR.InvalidMemberName, nameof(name));
System\ComponentModel\NullableConverter.cs (1)
31throw new ArgumentException(SR.NullableConverterBadCtorArg, nameof(type));
System\ComponentModel\PropertyDescriptorCollection.cs (4)
420throw new ArgumentException(nameof(value)); 460throw new ArgumentException(nameof(value)); 487throw new ArgumentException(nameof(key)); 581throw new ArgumentException(nameof(value));
System\ComponentModel\ReflectEventDescriptor.cs (5)
83throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 87throw new ArgumentException(SR.Format(SR.ErrorInvalidEventType, name)); 101_componentClass = componentClass ?? throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 195throw new ArgumentException(SR.Format(SR.ErrorInvalidEventHandler, Name)); 369throw new ArgumentException(SR.Format(SR.ErrorMissingEventAccessors, Name));
System\ComponentModel\ReflectPropertyDescriptor.cs (4)
95throw new ArgumentException(SR.Format(SR.ErrorInvalidPropertyType, name)); 100throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 171throw new ArgumentException(SR.Format(SR.InvalidNullArgument, nameof(componentClass))); 351throw new ArgumentException(SR.Format(SR.ErrorMissingPropertyAccessors, Name));
System\ComponentModel\ToolboxItemAttribute.cs (1)
93throw new ArgumentException(SR.Format(SR.ToolboxItemAttributeFailedGetType, _toolboxItemTypeName), ex);
System\ComponentModel\TypeDescriptor.cs (13)
407throw new ArgumentException(SR.TypeDescriptorSameAssociation); 432throw new ArgumentException(SR.TypeDescriptorAlreadyAssociated); 486throw new ArgumentException(SR.TypeDescriptorArgsCountMismatch); 998throw new ArgumentException(nameof(component)); 1031throw new ArgumentException(nameof(component)); 1041throw new ArgumentException(nameof(component)); 2090throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(Attribute).FullName)); 2103throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(PropertyDescriptor).FullName)); 2116throw new ArgumentException(SR.Format(SR.TypeDescriptorExpectedElementType, typeof(EventDescriptor).FullName)); 2784throw new ArgumentException(SR.Format(SR.ConvertToException, nameof(objectType), instance.GetType()), nameof(instance)); 3253throw new ArgumentException(SR.TypeDescriptorArgsCountMismatch); 3356throw new ArgumentException(nameof(instance)); 3372throw new ArgumentException(nameof(instance));
System\Drawing\PointConverter.cs (2)
54throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "x, y")); 104throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\RectangleConverter.cs (2)
50throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "x, y, width, height")); 110throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\SizeConverter.cs (2)
50throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "Width,Height")); 102throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Drawing\SizeFConverter.cs (2)
49throw new ArgumentException(SR.Format(SR.TextParseFailedFormat, text, "Width,Height")); 99throw new ArgumentException(SR.PropertyValueInvalidEntry);
System\Timers\Timer.cs (3)
53throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(interval), interval)); 59throw new ArgumentException(SR.Format(SR.InvalidParameter, nameof(interval), interval)); 171throw new ArgumentException(SR.Format(SR.TimerInvalidInterval, value, 0));
System.Composition.Convention (12)
System\Composition\Convention\ExportConventionBuilder.cs (3)
66throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(contractName)), nameof(contractName)); 103throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(name)), nameof(name)); 130throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(name)), nameof(name));
System\Composition\Convention\ImportConventionBuilder.cs (3)
40throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(contractName)), nameof(contractName)); 108throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(name)), nameof(name)); 135throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(name)), nameof(name));
System\Composition\Convention\PartConventionBuilder.cs (3)
405throw new ArgumentException(SR.ArgumentException_EmptyString); 433throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(name)), nameof(name)); 460throw new ArgumentException(SR.Format(SR.ArgumentException_EmptyString, nameof(name)), nameof(name));
System\Composition\Convention\PartConventionBuilderOfT.cs (3)
48throw new ArgumentException(SR.Format(SR.Argument_ExpressionMustBeVoidMethodWithNoArguments, nameof(methodSelector)), nameof(methodSelector)); 119throw new ArgumentException(SR.Format(SR.Argument_ExpressionMustBePropertyMember, nameof(propertySelector)), nameof(propertySelector)); 170throw new ArgumentException(SR.Format(SR.Argument_ExpressionMustBeNew, nameof(constructorSelector)), nameof(constructorSelector));
System.Composition.Hosting (2)
System\Composition\Hosting\Util\SmallSparseInitonlyArray.cs (2)
36throw new ArgumentException(SR.Format(SR.Key_Already_Exist, index), nameof(index)); 51throw new ArgumentException(SR.Format(SR.Key_Already_Exist, index), nameof(index));
System.Console (3)
System\ConsolePal.Unix.cs (1)
766throw new ArgumentException(SR.Arg_InvalidConsoleColor);
System\IO\SyncTextReader.cs (2)
125throw new ArgumentException(SR.Argument_InvalidOffLen); 137throw new ArgumentException(SR.Argument_InvalidOffLen);
System.Data.Common (16)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (6)
46ArgumentException e = new ArgumentException(error); 53ArgumentException e = new ArgumentException(error, inner); 60ArgumentException e = new ArgumentException(error, parameter); 205ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value)); 212ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value)); 219ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit));
System\Data\Common\DbConnectionStringBuilder.cs (1)
351throw new ArgumentException("not a string", nameof(keyword));
System\Data\DataException.cs (3)
338internal static Exception _Argument(string error) => TraceExceptionAsReturnValue(new ArgumentException(error)); 339internal static Exception _Argument(string error, Exception? innerException) => TraceExceptionAsReturnValue(new ArgumentException(error, innerException)); 373public static Exception ArgumentContainsNull(string paramName) => TraceExceptionAsReturnValue(new ArgumentException(SR.Data_ArgumentContainsNull, paramName));
System\Data\DataSetUtil.cs (1)
20return new ArgumentException(message);
System\Data\SQLTypes\SQLDecimal.cs (1)
589throw new ArgumentException(SQLResource.InvalidArraySizeMessage, nameof(bits));
System\Data\SQLTypes\SQLGuid.cs (1)
34throw new ArgumentException(SQLResource.InvalidArraySizeMessage);
System\Xml\XmlDataDocument.cs (3)
105throw new ArgumentException(SR.DataDom_MultipleDataSet); 2665throw new ArgumentException(SR.DataDom_DataSetNull); 2668throw new ArgumentException(SR.DataDom_MultipleDataSet);
System.Diagnostics.DiagnosticSource (6)
System\Diagnostics\Activity.cs (3)
445NotifyError(new ArgumentException(SR.OperationNameInvalid)); 610NotifyError(new ArgumentException(SR.ParentIdInvalid)); 954throw new ArgumentException(SR.ActivityIdFormatInvalid);
System\Diagnostics\ActivityContext.cs (1)
106throw new ArgumentException(SR.InvalidTraceParent);
System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs (1)
75throw new ArgumentException();
System\Diagnostics\Metrics\TagList.cs (1)
229throw new ArgumentException(SR.Arg_BufferTooSmall);
System.Diagnostics.Process (2)
System\Collections\Specialized\StringDictionaryWrapper.cs (1)
39throw new ArgumentException();
System\Diagnostics\Process.cs (1)
1039throw new ArgumentException(SR.Format(SR.MissingProcess, processId.ToString()));
System.Diagnostics.TraceSource (5)
System\Diagnostics\TraceListeners.cs (3)
221throw new ArgumentException(SR.MustAddListener, nameof(value)); 250throw new ArgumentException(SR.MustAddListener, nameof(value)); 277throw new ArgumentException(SR.MustAddListener, nameof(value));
System\Diagnostics\TraceSwitch.cs (1)
40throw new ArgumentException(SR.TraceSwitchInvalidLevel);
System\Diagnostics\TraceUtils.cs (1)
34throw new ArgumentException(SR.Format(SR.AttributeNotSupported, key, parent.GetType().FullName));
System.Drawing.Primitives (4)
src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (2)
67_ => throw new ArgumentException(SR.Format(SR.InvalidColor, text)), 112throw new ArgumentException(SR.Format(SR.ConvertInvalidPrimitive, text.ToString(), nameof(Int32)), e);
System\Drawing\Color.cs (1)
435throw new ArgumentException(SR.Format(SR.InvalidEx2BoundArgument, n, v, byte.MinValue, byte.MaxValue));
System\Drawing\ColorTranslator.cs (1)
274throw new ArgumentException(ex.Message, nameof(htmlColor), ex);
System.Formats.Asn1 (27)
System\Formats\Asn1\Asn1Tag.cs (1)
369throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
System\Formats\Asn1\AsnDecoder.BitString.cs (1)
167throw new ArgumentException(
System\Formats\Asn1\AsnDecoder.cs (1)
712throw new ArgumentException(
System\Formats\Asn1\AsnDecoder.Enumerated.cs (1)
208throw new ArgumentException(
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (1)
193throw new ArgumentException(
System\Formats\Asn1\AsnDecoder.OctetString.cs (1)
71throw new ArgumentException(
System\Formats\Asn1\AsnDecoder.Text.cs (3)
78throw new ArgumentException(SR.Argument_Tag_NotCharacterString, nameof(expectedTag)); 155throw new ArgumentException( 171throw new ArgumentException(SR.Argument_Tag_NotCharacterString, nameof(expectedTag));
System\Formats\Asn1\AsnWriter.BitString.cs (2)
59throw new ArgumentException(SR.Argument_UnusedBitCountMustBeZero, nameof(unusedBitCount)); 71throw new ArgumentException(SR.Argument_UnusedBitWasSet, nameof(unusedBitCount));
System\Formats\Asn1\AsnWriter.cs (3)
168throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 454throw new ArgumentException( 660throw new ArgumentException(
System\Formats\Asn1\AsnWriter.Enumerated.cs (1)
81throw new ArgumentException(
System\Formats\Asn1\AsnWriter.Integer.cs (4)
223throw new ArgumentException(SR.Argument_IntegerCannotBeEmpty, nameof(value)); 229throw new ArgumentException(SR.Argument_IntegerRedundantByte, nameof(value)); 254throw new ArgumentException(SR.Argument_IntegerCannotBeEmpty, nameof(value)); 266throw new ArgumentException(SR.Argument_IntegerRedundantByte, nameof(value));
System\Formats\Asn1\AsnWriter.NamedBitList.cs (1)
112throw new ArgumentException(
System\Formats\Asn1\AsnWriter.Oid.cs (7)
85throw new ArgumentException(SR.Argument_InvalidOidValue, nameof(oidValue)); 87throw new ArgumentException(SR.Argument_InvalidOidValue, nameof(oidValue)); 102_ => throw new ArgumentException(SR.Argument_InvalidOidValue, nameof(oidValue)), 123throw new ArgumentException(SR.Argument_InvalidOidValue, nameof(oidValue)); 160throw new ArgumentException(SR.Argument_InvalidOidValue, nameof(oidValue)); 170throw new ArgumentException(SR.Argument_InvalidOidValue, nameof(oidValue)); 187throw new ArgumentException(SR.Argument_InvalidOidValue, "oidValue");
System.Formats.Cbor (5)
System\Formats\Cbor\Writer\CborWriter.cs (3)
166throw new ArgumentException(SR.Cbor_Writer_PayloadIsNotValidCbor, e); 171throw new ArgumentException(SR.Cbor_Writer_PayloadIsNotValidCbor); 194throw new ArgumentException(SR.Argument_EncodeDestinationTooSmall, nameof(destination));
System\Formats\Cbor\Writer\CborWriter.String.cs (1)
138throw new ArgumentException(SR.Cbor_Writer_InvalidUtf8String, e);
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
78throw new ArgumentException(SR.Cbor_Writer_ValueCannotBeInfiniteOrNaN, nameof(seconds));
System.Formats.Tar (21)
System\Formats\Tar\SeekableSubReadStream.cs (1)
21throw new ArgumentException(SR.IO_NotSupported_UnseekableStream, nameof(superStream));
System\Formats\Tar\SubReadStream.cs (1)
28throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(superStream));
System\Formats\Tar\TarEntry.cs (2)
54throw new ArgumentException(SR.TarCannotConvertPaxGlobalExtendedAttributesEntry, nameof(other)); 259throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(value));
System\Formats\Tar\TarFile.cs (4)
38throw new ArgumentException(SR.IO_NotSupported_UnwritableStream, nameof(destination)); 77return Task.FromException(new ArgumentException(SR.IO_NotSupported_UnwritableStream, nameof(destination))); 178throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(source)); 223return Task.FromException(new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(source)));
System\Formats\Tar\TarHeader.cs (2)
126throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedKeyChar, kvp.Key, kvp.Key[index] == '\n' ? "\\n" : kvp.Key[index])); 130throw new ArgumentException(SR.Format(SR.TarExtAttrDisallowedValueChar, kvp.Key, "\\n"));
System\Formats\Tar\TarHeader.Write.cs (7)
521throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 542throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 595throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.Name)), ArgNameEntry); 630throw new ArgumentException(SR.Format(SR.TarSizeFieldTooLargeForEntryFormat, _format)); 654throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(TarEntry.LinkName)), ArgNameEntry); 712throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.UserName)), ArgNameEntry); 730throw new ArgumentException(SR.Format(SR.TarEntryFieldExceedsMaxLength, nameof(PaxTarEntry.GroupName)), ArgNameEntry);
System\Formats\Tar\TarHelpers.cs (1)
387throw new ArgumentException(SR.Format(SR.TarEntryTypeNotSupportedInFormat, entryType, archiveFormat), paramName);
System\Formats\Tar\TarReader.cs (1)
39throw new ArgumentException(SR.IO_NotSupported_UnreadableStream, nameof(archiveStream));
System\Formats\Tar\TarWriter.cs (2)
65throw new ArgumentException(SR.IO_NotSupported_UnwritableStream); 393throw new ArgumentException(SR.TarEntryHardLinkOrSymlinkLinkNameEmpty, "entry");
System.IO.Compression (9)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
28throw new ArgumentException(SR.NotSupported_UnreadableStream, nameof(stream));
System\IO\Compression\DeflateZLib\DeflateStream.cs (3)
60throw new ArgumentException(SR.NotSupported_UnreadableStream, nameof(stream)); 73throw new ArgumentException(SR.ArgumentOutOfRange_Enum, nameof(mode)); 95throw new ArgumentException(SR.NotSupported_UnwritableStream, nameof(stream));
System\IO\Compression\ZipArchive.cs (4)
136throw new ArgumentException(SR.CreateModeCapabilities); 140throw new ArgumentException(SR.ReadModeCapabilities); 151throw new ArgumentException(SR.UpdateModeCapabilities); 385throw new ArgumentException(SR.EntryNameAndCommentEncodingNotSupported, nameof(EntryNameAndCommentEncoding));
System\IO\Compression\ZipArchiveEntry.cs (1)
144throw new ArgumentException(SR.EntryNamesTooLong);
System.IO.Compression.Brotli (4)
System\IO\Compression\BrotliStream.cs (3)
38throw new ArgumentException(SR.Stream_FalseCanWrite, nameof(stream)); 48throw new ArgumentException(SR.Stream_FalseCanRead, nameof(stream)); 53throw new ArgumentException(SR.ArgumentOutOfRange_Enum, nameof(mode));
System\IO\Compression\BrotliUtils.cs (1)
23_ => throw new ArgumentException(SR.ArgumentOutOfRange_Enum, nameof(compressionLevel))
System.IO.Compression.ZipFile (2)
System\IO\Compression\ZipFile.Create.cs (1)
455throw new ArgumentException(SR.UnwritableStream, nameof(destination));
System\IO\Compression\ZipFile.Extract.cs (1)
325throw new ArgumentException(SR.UnreadableStream, nameof(source));
System.IO.FileSystem.DriveInfo (2)
System\IO\DriveInfo.UnixOrDefault.cs (2)
29throw new ArgumentException(SR.Format(SR.Arg_InvalidDriveChars, driveName), nameof(driveName)); 33throw new ArgumentException(SR.Arg_MustBeNonEmptyDriveName, nameof(driveName));
System.IO.FileSystem.Watcher (5)
System\IO\FileSystemWatcher.cs (5)
116throw new ArgumentException(SR.Format(SR.InvalidEnumArgument, nameof(value), (int)value, nameof(NotifyFilters))); 257throw new ArgumentException(SR.Format(SR.InvalidDirName, value), nameof(Path)); 260throw new ArgumentException(SR.Format(SR.InvalidDirName_NotExists, value), nameof(Path)); 379throw new ArgumentException(SR.Format(SR.InvalidDirName, path), nameof(path)); 382throw new ArgumentException(SR.Format(SR.InvalidDirName_NotExists, path), nameof(path));
System.IO.Hashing (1)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (1)
348throw new ArgumentException(SR.Argument_DestinationTooShort, "destination");
System.IO.IsolatedStorage (4)
System\IO\IsolatedStorage\IsolatedStorage.cs (1)
182throw new ArgumentException(SR.IsolatedStorage_Scope_Invalid);
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
675throw new ArgumentException(SR.IsolatedStorage_Scope_U_R_M);
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (2)
89throw new ArgumentException( 113throw new ArgumentException(SR.IsolatedStorage_FileOpenMode);
System.IO.MemoryMappedFiles (11)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (9)
114throw new ArgumentException(SR.Argument_NewMMFAppendModeNotAllowed, nameof(mode)); 118throw new ArgumentException(SR.Argument_NewMMFTruncateModeNotAllowed, nameof(mode)); 145throw new ArgumentException(SR.Argument_EmptyFile); 218throw new ArgumentException(SR.Argument_EmptyFile); 247throw new ArgumentException(SR.Argument_EmptyFile); 290throw new ArgumentException(SR.Argument_MapNameEmptyString); 308throw new ArgumentException(SR.Argument_NewMMFWriteAccessNotAllowed, nameof(access)); 519throw new ArgumentException(SR.Argument_MapNameEmptyString); 535throw new ArgumentException(SR.Argument_NewMMFWriteAccessNotAllowed, nameof(access));
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (2)
22throw new ArgumentException(SR.Argument_ReadAccessWithLargeCapacity); 33throw new ArgumentException(SR.Argument_NewMMFWriteAccessNotAllowed, nameof(access));
System.IO.Pipes (8)
System\IO\Pipes\AnonymousPipeClientStream.cs (3)
33throw new ArgumentException(SR.Argument_InvalidHandle, nameof(pipeHandleAsString)); 41throw new ArgumentException(SR.Argument_InvalidHandle, nameof(pipeHandleAsString)); 57throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle));
System\IO\Pipes\AnonymousPipeServerStream.cs (2)
45throw new ArgumentException(SR.Argument_InvalidHandle, nameof(serverSafePipeHandle)); 49throw new ArgumentException(SR.Argument_InvalidHandle, nameof(clientSafePipeHandle));
System\IO\Pipes\NamedPipeClientStream.cs (2)
64throw new ArgumentException(SR.Argument_EmptyServerName); 99throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle));
System\IO\Pipes\NamedPipeServerStream.cs (1)
140throw new ArgumentException(SR.Argument_InvalidHandle, nameof(safePipeHandle));
System.Linq.Expressions (118)
System\Dynamic\Utils\ListArgumentProvider.cs (1)
100throw new ArgumentException();
System\Linq\Expressions\BlockExpression.cs (1)
773throw new ArgumentException();
System\Linq\Expressions\Error.cs (115)
19return new ArgumentException(Strings.ReducibleMustOverrideReduce); 26return new ArgumentException(Strings.ArgCntMustBeGreaterThanNameCnt); 47return new ArgumentException(Strings.SameKeyExistsInExpando(key), nameof(key)); 75return new ArgumentException(Strings.MustReduceToDifferent); 117return new ArgumentException(Strings.ReducedNotCompatible); 124return new ArgumentException(Strings.SetterHasNoParams, paramName); 131return new ArgumentException(Strings.PropertyCannotHaveRefType, paramName); 138return new ArgumentException(Strings.IndexesOfSetGetMustMatch, paramName); 152return new ArgumentException(Strings.FirstArgumentMustBeCallSite); 159return new ArgumentException(Strings.AccessorsCannotHaveVarArgs, paramName); 166return new ArgumentException(Strings.AccessorsCannotHaveByRefArgs, paramName); 180return new ArgumentException(Strings.TypeMustBeDerivedFromSystemDelegate); 194return new ArgumentException(Strings.BoundsCannotBeLessThanOne, paramName); 201return new ArgumentException(Strings.TypeMustNotBeByRef, paramName); 209return new ArgumentException(Strings.TypeMustNotBePointer, paramName); 217return new ArgumentException(Strings.SetterMustBeVoid, paramName); 225return new ArgumentException(Strings.PropertyTypeMustMatchGetter, paramName); 233return new ArgumentException(Strings.PropertyTypeMustMatchSetter, paramName); 240return new ArgumentException(Strings.BothAccessorsMustBeStatic, paramName); 247return new ArgumentException(Strings.OnlyStaticFieldsHaveNullInstance, paramName); 254return new ArgumentException(Strings.OnlyStaticPropertiesHaveNullInstance, paramName); 261return new ArgumentException(Strings.OnlyStaticMethodsHaveNullInstance); 268return new ArgumentException(Strings.PropertyTypeCannotBeVoid, paramName); 275return new ArgumentException(Strings.InvalidUnboxType, paramName); 282return new ArgumentException(Strings.ExpressionMustBeWriteable, paramName); 289return new ArgumentException(Strings.ArgumentMustNotHaveValueType, paramName); 296return new ArgumentException(Strings.MustBeReducible); 303return new ArgumentException(Strings.AllTestValuesMustHaveSameType, paramName); 310return new ArgumentException(Strings.AllCaseBodiesMustHaveSameType, paramName); 317return new ArgumentException(Strings.DefaultBodyMustBeSupplied, paramName); 324return new ArgumentException(Strings.LabelMustBeVoidOrHaveExpression, paramName); 331return new ArgumentException(Strings.LabelTypeMustBeVoid, paramName); 338return new ArgumentException(Strings.QuotedExpressionMustBeLambda, paramName); 345return new ArgumentException(Strings.VariableMustNotBeByRef(p0, p1), paramName); 359return new ArgumentException(Strings.DuplicateVariable(p0), paramName); 373return new ArgumentException(Strings.StartEndMustBeOrdered); 380return new ArgumentException(Strings.FaultCannotHaveCatchOrFinally, paramName); 387return new ArgumentException(Strings.TryMustHaveCatchFinallyOrFault); 394return new ArgumentException(Strings.BodyOfCatchMustHaveSameTypeAsBodyOfTry); 408return new ArgumentException(Strings.UserDefinedOperatorMustBeStatic(p0), paramName); 415return new ArgumentException(Strings.UserDefinedOperatorMustNotBeVoid(p0), paramName); 471return new ArgumentException(Strings.ArgumentTypeCannotBeVoid); 478return new ArgumentException(Strings.ArgumentMustBeArray, paramName); 485return new ArgumentException(Strings.ArgumentMustBeBoolean, paramName); 492return new ArgumentException(Strings.EqualityMustReturnBoolean(p0), paramName); 499return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertyInfo, paramName); 506return new ArgumentException(Strings.ArgumentMustBeFieldInfoOrPropertyInfoOrMethod, paramName); 521return new ArgumentException(Strings.ArgumentMustBeInstanceMember, paramName); 535return new ArgumentException(Strings.ArgumentMustBeInteger, paramName); 549return new ArgumentException(Strings.ArgumentMustBeArrayIndexType, paramName); 563return new ArgumentException(Strings.ArgumentMustBeSingleDimensionalArrayType, paramName); 570return new ArgumentException(Strings.ArgumentTypesMustMatch); 577return new ArgumentException(Strings.ArgumentTypesMustMatch, paramName); 598return new ArgumentException(Strings.IncorrectTypeForTypeAs(p0), paramName); 620return new ArgumentException(Strings.ArgumentTypeDoesNotMatchMember(p0, p1), paramName); 634return new ArgumentException(Strings.ArgumentMemberNotDeclOnType(p0, p1), paramName); 649return new ArgumentException(Strings.ExpressionTypeDoesNotMatchReturn(p0, p1)); 656return new ArgumentException(Strings.ExpressionTypeDoesNotMatchAssignment(p0, p1)); 663return new ArgumentException(Strings.ExpressionTypeDoesNotMatchLabel(p0, p1)); 670return new ArgumentException(Strings.ExpressionTypeNotInvocable(p0), paramName); 677return new ArgumentException(Strings.FieldNotDefinedForType(p0, p1)); 684return new ArgumentException(Strings.InstanceFieldNotDefinedForType(p0, p1)); 691return new ArgumentException(Strings.FieldInfoNotDefinedForType(p0, p1, p2)); 698return new ArgumentException(Strings.IncorrectNumberOfIndexes); 705return new ArgumentException(Strings.IncorrectNumberOfLambdaDeclarationParameters); 713return new ArgumentException(Strings.IncorrectNumberOfMembersForGivenConstructor); 720return new ArgumentException(Strings.IncorrectNumberOfArgumentsForMembers); 727return new ArgumentException(Strings.LambdaTypeMustBeDerivedFromSystemDelegate, paramName); 734return new ArgumentException(Strings.MemberNotFieldOrProperty(p0), paramName); 741return new ArgumentException(Strings.MethodContainsGenericParameters(p0), paramName); 748return new ArgumentException(Strings.MethodIsGeneric(p0), paramName); 755return new ArgumentException(Strings.MethodNotPropertyAccessor(p0, p1), paramName); 769return new ArgumentException(Strings.PropertyDoesNotHaveGetter(p0), paramName); 783return new ArgumentException(Strings.PropertyDoesNotHaveSetter(p0), paramName); 790return new ArgumentException(Strings.PropertyDoesNotHaveAccessor(p0), paramName); 797return new ArgumentException(Strings.NotAMemberOfType(p0, p1), paramName); 812return new ArgumentException(Strings.NotAMemberOfAnyType(p0), paramName); 820return new ArgumentException(Strings.ParameterExpressionNotValidAsDelegate(p0, p1)); 827return new ArgumentException(Strings.PropertyNotDefinedForType(p0, p1), paramName); 834return new ArgumentException(Strings.InstancePropertyNotDefinedForType(p0, p1), paramName); 841return new ArgumentException(Strings.InstancePropertyWithoutParameterNotDefinedForType(p0, p1)); 848return new ArgumentException(Strings.InstancePropertyWithSpecifiedParametersNotDefinedForType(p0, p1, p2), paramName); 855return new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2)); 863return new ArgumentException(Strings.TypeMissingDefaultConstructor(p0), paramName); 871return new ArgumentException(Strings.ElementInitializerMethodNotAdd, paramName); 878return new ArgumentException(Strings.ElementInitializerMethodNoRefOutParam(p0, p1), paramName); 885return new ArgumentException(Strings.ElementInitializerMethodWithZeroArgs, paramName); 892return new ArgumentException(Strings.ElementInitializerMethodStatic, paramName); 899return new ArgumentException(Strings.TypeNotIEnumerable(p0), paramName); 907return new ArgumentException(Strings.UnhandledBinary(p0), paramName); 914return new ArgumentException(Strings.UnhandledBinding); 921return new ArgumentException(Strings.UnhandledBindingType(p0)); 929return new ArgumentException(Strings.UnhandledUnary(p0), paramName); 936return new ArgumentException(Strings.UnknownBindingType, $"bindings[{index}]"); 943return new ArgumentException(Strings.UserDefinedOpMustHaveConsistentTypes(p0, p1)); 950return new ArgumentException(Strings.UserDefinedOpMustHaveValidReturnType(p0, p1)); 957return new ArgumentException(Strings.LogicalOperatorMustHaveBooleanOperators(p0, p1)); 992return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForFunc, paramName); 999return new ArgumentException(Strings.IncorrectNumberOfTypeArgsForAction, paramName); 1006return new ArgumentException(Strings.ArgumentCannotBeOfTypeVoid, paramName); 1172return new ArgumentException(Strings.TestValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); 1179return new ArgumentException(Strings.SwitchValueTypeDoesNotMatchComparisonMethodParameter(p0, p1)); 1213return new ArgumentException(Strings.NonStaticConstructorRequired, paramName); 1245return new ArgumentException(Strings.TypeContainsGenericParameters(p0), paramName); 1261return new ArgumentException(Strings.TypeIsGeneric(p0), paramName); 1277return new ArgumentException(Strings.IncorrectNumberOfConstructorArguments); 1285return new ArgumentException(Strings.ExpressionTypeDoesNotMatchMethodParameter(p0, p1, p2), paramName); 1301return new ArgumentException(Strings.ExpressionTypeDoesNotMatchParameter(p0, p1), paramName); 1325return new ArgumentException(Strings.IncorrectNumberOfMethodCallArguments(p0), paramName); 1333return new ArgumentException(Strings.ExpressionTypeDoesNotMatchConstructorParameter(p0, p1), paramName); 1350return new ArgumentException(Strings.ExpressionMustBeReadable, paramName); 1363return new ArgumentException(Strings.InvalidArgumentValue_ParamName, paramName); 1368return new ArgumentException(Strings.NonEmptyCollectionRequired, paramName); 1373return new ArgumentException(Strings.InvalidNullValue(type), paramName); 1378return new ArgumentException(Strings.InvalidObjectType(value?.GetType() as object ?? "null", type), paramName);
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
356throw new ArgumentException(nameof(array));
System.Linq.Parallel (2)
System\Linq\ParallelEnumerable.cs (2)
355throw new ArgumentException(SR.ParallelEnumerable_WithQueryExecutionMode_InvalidMode); 391throw new ArgumentException(SR.ParallelEnumerable_WithMergeOptions_InvalidOptions);
System.Linq.Queryable (2)
System\Linq\Error.cs (2)
9new ArgumentException(Strings.ArgumentNotIEnumerableGeneric(message)); 12new ArgumentException(Strings.ArgumentNotValid(message));
System.Memory (3)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (3)
49throw new ArgumentException(null, nameof(initialCapacity)); 129throw new ArgumentException(null, nameof(count)); 202throw new ArgumentException(nameof(sizeHint));
System.Net.Http (7)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (1)
420throw new ArgumentException(SR.Format(CultureInfo.InvariantCulture,
System\Net\Http\Headers\HttpHeaderValueCollection.cs (2)
105throw new ArgumentException(SR.net_http_copyto_array_too_small); 119throw new ArgumentException(SR.net_http_copyto_array_too_small);
System\Net\Http\Headers\RangeItemHeaderValue.cs (1)
25throw new ArgumentException(SR.net_http_headers_invalid_range);
System\Net\Http\HttpClient.cs (1)
89throw new ArgumentException(SR.net_http_client_absolute_baseaddress_required, nameof(value));
System\Net\Http\MultipartContent.cs (2)
82throw new ArgumentException(SR.Format(System.Globalization.CultureInfo.InvariantCulture, SR.net_http_headers_invalid_value, boundary), nameof(boundary)); 87throw new ArgumentException(SR.Format(System.Globalization.CultureInfo.InvariantCulture, SR.net_http_headers_invalid_value, boundary), nameof(boundary));
System.Net.Http.Json (2)
src\libraries\Common\src\System\ThrowHelper.cs (1)
68throw new ArgumentException(paramName, "Argument is whitespace");
System\Net\Http\Json\JsonContent.cs (1)
161throw new ArgumentException(SR.Format(SR.SerializeWrongType, inputType, inputValue.GetType()));
System.Net.HttpListener (16)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (4)
77throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCharInProtocolString, subProtocol, invalidCharDescription), nameof(subProtocol)); 85throw new ArgumentException(SR.Format(SR.net_WebSockets_ReasonNotNull, 103throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusCode, 112throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusDescription,
System\Net\HttpListener.cs (4)
89throw new ArgumentException(SR.net_listener_cannot_set_custom_cbt, nameof(value)); 126throw new ArgumentException(SR.net_listener_scheme, nameof(uriPrefix)); 149throw new ArgumentException(SR.net_listener_host, nameof(uriPrefix)); 153throw new ArgumentException(SR.net_listener_slash, nameof(uriPrefix));
System\Net\HttpListenerResponse.cs (2)
165throw new ArgumentException(SR.net_WebHeaderInvalidControlChars, nameof(value)); 262throw new ArgumentException(SR.net_cookie_exists, nameof(cookie));
System\Net\Managed\ChunkedInputStream.cs (1)
159throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
System\Net\Managed\HttpListener.Managed.cs (1)
310throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
363throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
System\Net\Managed\HttpListenerResponse.Managed.cs (1)
67throw new ArgumentException(SR.net_wrongversion, nameof(value));
System\Net\Managed\HttpRequestStream.Managed.cs (1)
172throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
System\Net\Managed\ListenerPrefix.cs (1)
110throw new ArgumentException(SR.net_listener_host);
System.Net.Mail (7)
System\Net\Mail\Attachment.cs (4)
138throw new ArgumentException(SR.MediaTypeInvalid, nameof(mediaType)); 142throw new ArgumentException(SR.MediaTypeInvalid, nameof(mediaType)); 147throw new ArgumentException(SR.MediaTypeInvalid, nameof(mediaType)); 224throw new ArgumentException(SR.MailHeaderInvalidCID, nameof(value));
System\Net\Mail\MailPriority.cs (2)
158throw new ArgumentException(SR.MailSubjectInvalidFormat); 313throw new ArgumentException(SR.net_io_invalidasyncresult);
System\Net\Mime\MimeBasePart.cs (1)
208throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
System.Net.NameResolution (5)
System\Net\Dns.cs (5)
45throw new ArgumentException(SR.net_invalid_ip_addr, nameof(address)); 76throw new ArgumentException(SR.net_invalid_ip_addr, nameof(hostNameOrAddress)); 155throw new ArgumentException(SR.net_invalid_ip_addr, nameof(address)); 200throw new ArgumentException(SR.net_invalid_ip_addr, nameof(hostNameOrAddress)); 508throw new ArgumentException(SR.net_invalid_ip_addr, nameof(hostName));
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
52throw new ArgumentException(SR.net_invalidPingBufferSize, nameof(buffer)); 69throw new ArgumentException(SR.net_invalid_ip_addr, nameof(address));
System.Net.Primitives (9)
System\Net\CookieContainer.cs (1)
218throw new ArgumentException(
System\Net\CredentialCache.cs (2)
35throw new ArgumentException(SR.Format(SR.net_nodefaultcreds, authType), nameof(authType)); 61throw new ArgumentException(SR.Format(SR.net_nodefaultcreds, authenticationType), nameof(authenticationType));
System\Net\DnsEndPoint.cs (1)
28throw new ArgumentException(SR.net_sockets_invalid_optionValue_all, nameof(addressFamily));
System\Net\IPAddress.cs (2)
132throw new ArgumentException(SR.dns_bad_ip_address, nameof(address)); 182throw new ArgumentException(SR.dns_bad_ip_address, nameof(address));
System\Net\IPEndPoint.cs (2)
160throw new ArgumentException(SR.Format(SR.net_InvalidAddressFamily, socketAddress.Family.ToString(), GetType().FullName), nameof(socketAddress)); 166throw new ArgumentException(SR.Format(SR.net_InvalidSocketAddressSize, socketAddress.GetType().FullName, GetType().FullName), nameof(socketAddress));
System\Net\IPNetwork.cs (1)
67static void ThrowInvalidBaseAddressException() => throw new ArgumentException(SR.net_bad_ip_network_invalid_baseaddress, nameof(baseAddress));
System.Net.Quic (5)
System\Net\Quic\Internal\MsQuicConfiguration.cs (3)
114throw new ArgumentException(SR.Format(SR.net_quic_not_null_ceritifcate, nameof(SslServerAuthenticationOptions.ServerCertificate), nameof(SslServerAuthenticationOptions.ServerCertificateContext), nameof(SslServerAuthenticationOptions.ServerCertificateSelectionCallback)), nameof(options)); 125throw new ArgumentException(SR.Format(SR.net_quic_not_null_not_empty_connection, nameof(SslApplicationProtocol)), nameof(options)); 335throw new ArgumentException(SR.net_quic_empty_cipher_suite, nameof(SslClientAuthenticationOptions.CipherSuitesPolicy));
System\Net\Quic\Internal\MsQuicSafeHandle.cs (1)
54_ => throw new ArgumentException($"Unexpected value: {safeHandleType}", nameof(safeHandleType))
System\Net\Quic\QuicConnection.cs (1)
306throw new ArgumentException(SR.Format(SR.net_quic_unsupported_endpoint_type, options.RemoteEndPoint.GetType()), nameof(options));
System.Net.Requests (23)
src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (6)
13throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name)); 19throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name)); 71throw new ArgumentException(SR.net_WebHeaderInvalidControlChars, nameof(value)); 81throw new ArgumentException(SR.net_WebHeaderInvalidCRLFChars, nameof(value)); 89throw new ArgumentException(SR.net_WebHeaderInvalidControlChars, nameof(value)); 95throw new ArgumentException(SR.net_WebHeaderInvalidCRLFChars, nameof(value));
System\Net\Cache\HttpRequestCachePolicy.cs (2)
38throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl)); 64throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl));
System\Net\FtpWebRequest.cs (5)
104throw new ArgumentException(SR.net_ftp_unsupported_method, nameof(method)); 276throw new ArgumentException(SR.net_ftp_unsupported_method, nameof(value)); 326throw new ArgumentException(SR.net_ftp_no_defaultcreds, nameof(value)); 686throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 809throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult));
System\Net\HttpWebRequest.cs (10)
381throw new ArgumentException(SR.net_invalid_host, nameof(value)); 475throw new ArgumentException(SR.net_nochunked, nameof(value)); 613throw new ArgumentException(SR.net_connarg, nameof(value)); 662throw new ArgumentException(SR.net_no100, nameof(value)); 834throw new ArgumentException(SR.net_wrongversion, nameof(value)); 935throw new ArgumentException(SR.net_badmethod, nameof(value)); 1145throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 1416throw new ArgumentException(SR.net_io_invalidasyncresult, nameof(asyncResult)); 1504throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier)); 1523throw new ArgumentException(SR.net_nottoken, nameof(rangeSpecifier));
System.Net.Security (14)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
198throw new ArgumentException(SR.net_ssl_app_protocols_invalid, nameof(applicationProtocols));
System\Net\Security\AuthenticatedStream.cs (1)
24throw new ArgumentException(SR.net_io_must_be_rw_stream, nameof(innerStream));
System\Net\Security\NegotiateStream.cs (1)
608throw new ArgumentException(SR.net_auth_must_specify_extended_protection_scheme, nameof(policy));
System\Net\Security\Pal.Managed\EndpointChannelBindingToken.cs (1)
56throw new ArgumentException(signatureAlgorithm.Value);
System\Net\Security\SslApplicationProtocol.cs (1)
34throw new ArgumentException(SR.net_ssl_app_protocol_invalid, nameof(protocol));
System\Net\Security\SslClientAuthenticationOptions.cs (2)
56throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(X509RevocationMode)), nameof(value)); 71throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value));
System\Net\Security\SslServerAuthenticationOptions.cs (2)
58throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(X509RevocationMode)), nameof(value)); 73throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(EncryptionPolicy)), nameof(value));
System\Net\Security\SslStream.cs (1)
209throw new ArgumentException(SR.Format(SR.net_invalid_enum, "EncryptionPolicy"), nameof(encryptionPolicy));
System\Net\StreamFramer.cs (1)
108throw new ArgumentException(SR.Format(SR.net_frame_max_size, MaxMessageSize, value), nameof(PayloadSize));
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (3)
29throw new ArgumentException(SR.security_ExtendedProtectionPolicy_UseDifferentConstructorForNever, nameof(policyEnforcement)); 34throw new ArgumentException(SR.security_ExtendedProtectionPolicy_NoEmptyServiceNameCollection, nameof(customServiceNames)); 55throw new ArgumentException(SR.security_ExtendedProtectionPolicy_UseDifferentConstructorForNever, nameof(policyEnforcement));
System.Net.Sockets (42)
System\Net\Sockets\SendPacketsElement.cs (1)
54throw new ArgumentException(SR.net_sockets_sendpackelement_FileStreamMustBeAsync, nameof(fileStream));
System\Net\Sockets\Socket.cs (28)
239throw new ArgumentException(SR.Arg_InvalidHandle, nameof(handle)); 900throw new ArgumentException(SR.net_sockets_invalid_ipaddress_length, nameof(addresses)); 938throw new ArgumentException(SR.net_invalidAddressList, nameof(addresses)); 1093throw new ArgumentException(SR.Format(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers)); 1532throw new ArgumentException(SR.Format(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers)); 1646throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEP.AddressFamily, _addressFamily), nameof(remoteEP)); 2006throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "LingerOption"), nameof(optionValue)); 2010throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper_Named, 0, (int)ushort.MaxValue, "optionValue.LingerTime"), nameof(optionValue)); 2019throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "MulticastOption"), nameof(optionValue)); 2029throw new ArgumentException(SR.Format(SR.net_sockets_invalid_optionValue, "IPv6MulticastOption"), nameof(optionValue)); 2035throw new ArgumentException(SR.net_sockets_invalid_optionValue_all, nameof(optionValue)); 2192throw new ArgumentException(SR.net_sockets_invalid_optionValue_all, nameof(level)); 2542throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint)); 2578throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPoint.AddressFamily, _addressFamily), nameof(endPoint)); 2683throw new ArgumentException(SR.net_multibuffernotsupported, nameof(e)); 2732throw new ArgumentException(SR.net_multibuffernotsupported, "BufferList"); 2830throw new ArgumentException(SR.net_multibuffernotsupported, nameof(e)); 2834throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e)); 2938throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, "e.RemoteEndPoint"), nameof(e)); 2943throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e)); 2947throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, endPointSnapshot.AddressFamily, _addressFamily), nameof(e)); 2992throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e)); 2996throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, e.RemoteEndPoint.AddressFamily, _addressFamily), nameof(e)); 3064throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.SendPacketsElements"), nameof(e)); 3102throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "e.RemoteEndPoint"), nameof(e)); 3184throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, nameof(remoteEP)), nameof(remoteEP)); 3783throw new ArgumentException(SR.Format(SR.net_sockets_invalid_dnsendpoint, remoteEndPointArgumentName), remoteEndPointArgumentName); 3788throw new ArgumentException(SR.Format(SR.net_InvalidEndPointAddressFamily, remoteEndPoint.AddressFamily, _addressFamily), remoteEndPointArgumentName);
System\Net\Sockets\Socket.Tasks.cs (2)
169throw new ArgumentException(SR.net_invalidAddressList, nameof(addresses)); 841throw new ArgumentException(SR.Format(SR.net_sockets_zerolist, nameof(buffers)), nameof(buffers));
System\Net\Sockets\SocketAsyncEventArgs.cs (4)
156throw new ArgumentException(SR.net_ambiguousbuffers); 363throw new ArgumentException(SR.net_ambiguousbuffers); 390throw new ArgumentException(SR.net_ambiguousbuffers); 557throw new ArgumentException(SR.net_buffercounttoosmall, nameof(Count));
System\Net\Sockets\SocketPal.Unix.cs (1)
1849throw new ArgumentException(SR.Format(SR.net_sockets_select, socket?.GetType().FullName ?? "null", typeof(Socket).FullName), nameof(socketList));
System\Net\Sockets\TCPClient.cs (1)
37throw new ArgumentException(SR.Format(SR.net_protocol_invalid_family, "TCP"), nameof(family));
System\Net\Sockets\UDPClient.cs (5)
33throw new ArgumentException(SR.Format(SR.net_protocol_invalid_family, "UDP"), nameof(family)); 61throw new ArgumentException(SR.Format(SR.net_protocol_invalid_family, "UDP"), nameof(family)); 345throw new ArgumentException(SR.net_invalidAddressList, nameof(hostname)); 394throw new ArgumentException(SR.Format(SR.net_protocol_invalid_multicast_family, "UDP"), nameof(multicastAddr)); 478throw new ArgumentException(SR.Format(SR.net_protocol_invalid_multicast_family, "UDP"), nameof(multicastAddr));
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
170throw new ArgumentException(SR.net_webclient_invalid_baseaddress, nameof(value), e);
System.Net.WebHeaderCollection (7)
src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (6)
13throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name)); 19throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name)); 71throw new ArgumentException(SR.net_WebHeaderInvalidControlChars, nameof(value)); 81throw new ArgumentException(SR.net_WebHeaderInvalidCRLFChars, nameof(value)); 89throw new ArgumentException(SR.net_WebHeaderInvalidControlChars, nameof(value)); 95throw new ArgumentException(SR.net_WebHeaderInvalidCRLFChars, nameof(value));
System\Net\WebHeaderCollection.cs (1)
317throw new ArgumentException(SR.net_WebHeaderMissingColon, nameof(header));
System.Net.WebSockets (10)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (4)
77throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCharInProtocolString, subProtocol, invalidCharDescription), nameof(subProtocol)); 85throw new ArgumentException(SR.Format(SR.net_WebSockets_ReasonNotNull, 103throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusCode, 112throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusDescription,
System\Net\WebSockets\ManagedWebSocket.cs (3)
261throw new ArgumentException(SR.Format( 279throw new ArgumentException(SR.Format( 302throw new ArgumentException(SR.net_WebSockets_Argument_MessageFlagsHasDifferentCompressionOptions, nameof(messageFlags));
System\Net\WebSockets\WebSocket.cs (3)
138throw new ArgumentException(!stream.CanRead ? SR.NotReadableStream : SR.NotWriteableStream, nameof(stream)); 165throw new ArgumentException(!stream.CanRead ? SR.NotReadableStream : SR.NotWriteableStream, nameof(stream)); 192throw new ArgumentException(!innerStream.CanRead ? SR.NotReadableStream : SR.NotWriteableStream, nameof(innerStream));
System.Net.WebSockets.Client (9)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (4)
77throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCharInProtocolString, subProtocol, invalidCharDescription), nameof(subProtocol)); 85throw new ArgumentException(SR.Format(SR.net_WebSockets_ReasonNotNull, 103throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusCode, 112throw new ArgumentException(SR.Format(SR.net_WebSockets_InvalidCloseStatusDescription,
System\Net\WebSockets\ClientWebSocket.cs (2)
100throw new ArgumentException(SR.net_uri_NotAbsolute, nameof(uri)); 104throw new ArgumentException(SR.net_WebSockets_Scheme, nameof(uri));
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
168throw new ArgumentException(SR.Format(SR.net_WebSockets_NoDuplicateProtocol, subProtocol), nameof(subProtocol));
System\Net\WebSockets\WebSocketHandle.Managed.cs (2)
56throw new ArgumentException(SR.net_WebSockets_CustomInvokerRequiredForHttp2, nameof(options)); 64throw new ArgumentException(SR.net_WebSockets_OptionsIncompatibleWithCustomInvoker, nameof(options));
System.Numerics.Tensors (31)
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (3)
65throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode)); 121throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode)); 157throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode));
System\ThrowHelper.cs (28)
17throw new ArgumentException(SR.Argument_DestinationTooShort, destinationName); 21throw new ArgumentException(SR.Argument_SpansMustHaveSameLength); 25throw new ArgumentException(SR.Argument_SpansMustBeNonEmpty); 29throw new ArgumentException(SR.Argument_InputAndDestinationSpanMustNotOverlap, "destination"); 46throw new ArgumentException(SR.Format(SR.Argument_InvalidTypeWithPointersNotSupported, targetType)); 69throw new ArgumentException(SR.ThrowArgument_IndicesLengthMustEqualRank); 73return new ArgumentException(message); 85throw new ArgumentException(SR.ThrowArgument_FilterTensorMustEqualTensorLength); 91throw new ArgumentException(SR.ThrowArgument_SetSliceNoRange, paramNames); 97throw new ArgumentException(SR.ThrowArgument_SetSliceInvalidShapes, paramNames); 103throw new ArgumentException(SR.ThrowArgument_ShapesNotBroadcastCompatible); 109throw new ArgumentException(SR.ThrowArgument_SplitNotSplitEvenly); 115throw new ArgumentException(SR.ThrowArgument_DimensionsNotSame, paramNames); 121throw new ArgumentException(SR.ThrowArgument_1DTensorRequired, paramNames); 127throw new ArgumentException(SR.ThrowArgument_IncorrectNumberOfFilterItems, paramNames); 133throw new ArgumentException(SR.ThrowArgument_StackTooFewTensors); 139throw new ArgumentException(SR.ThrowArgument_OnlyOneWildcard); 145throw new ArgumentException(SR.ThrowArgument_InvalidReshapeDimensions); 151throw new ArgumentException(SR.ThrowArgument_AxisLargerThanRank); 157throw new ArgumentException(SR.ThrowArgument_InvalidSqueezeAxis); 163throw new ArgumentException(SR.ThrowArgument_ConcatenateTooFewTensors); 169throw new ArgumentException(SR.ThrowArgument_InvalidAxis); 175throw new ArgumentException(SR.ThrowArgument_InvalidConcatenateShape); 181throw new ArgumentException(SR.ThrowArgument_TransposeTooFewDimensions); 187throw new ArgumentException(SR.ThrowArgument_PermuteAxisOrder); 193throw new ArgumentException(SR.ThrowArgument_InPlaceInvalidShape); 199throw new ArgumentException(SR.ThrowArgument_InvalidStridesAndLengths); 205throw new ArgumentException(SR.ThrowArgument_StrideLessThan0);
System.ObjectModel (16)
System\Collections\CollectionHelpers.cs (3)
16throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 21throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 29throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Collections\ObjectModel\KeyedCollection.cs (2)
160throw new ArgumentException(SR.Argument_ItemNotExist, nameof(item)); 251throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate, key), nameof(key));
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (11)
30throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Reset), nameof(action)); 59throw new ArgumentException(SR.ResetActionRequiresNullItem, nameof(action)); 63throw new ArgumentException(SR.ResetActionRequiresIndexMinus1, nameof(action)); 78throw new ArgumentException(SR.MustBeResetAddOrRemoveActionForCtor, nameof(action)); 107throw new ArgumentException(SR.ResetActionRequiresNullItem, nameof(action)); 111throw new ArgumentException(SR.ResetActionRequiresIndexMinus1, nameof(action)); 133throw new ArgumentException(SR.MustBeResetAddOrRemoveActionForCtor, nameof(action)); 161throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), nameof(action)); 192throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Replace), nameof(action)); 214throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), nameof(action)); 235throw new ArgumentException(SR.Format(SR.WrongActionForCtor, NotifyCollectionChangedAction.Move), nameof(action));
System.Private.CoreLib (870)
src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
63throw new ArgumentException();
src\libraries\Common\src\System\Reflection\AssemblyNameParser.cs (1)
64throw new ArgumentException(SR.Format_StringZeroLength);
src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (2)
82throw new ArgumentException(null, nameof(asyncResult)); 111throw new ArgumentException(null, nameof(asyncResult));
src\libraries\System.Private.CoreLib\src\System\Activator.RuntimeType.cs (2)
37throw new ArgumentException(SR.Arg_MustBeType, nameof(type)); 98throw new ArgumentException(SR.Arg_MustBeType, nameof(type));
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
133throw new ArgumentException(SR.AggregateException_ctor_InnerExceptionNull);
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (2)
101throw new ArgumentException(SR.Argument_EmptyString, nameof(assemblyName)); 205throw new ArgumentException(SR.Arg_MustBeTrue);
src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (2)
129throw new ArgumentException(SR.Argument_EmptyString, paramName); 136throw new ArgumentException(SR.Argument_EmptyOrWhiteSpaceString, paramName);
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (1)
156throw new ArgumentException(SR.Arg_MustBeBoolean);
src\libraries\System.Private.CoreLib\src\System\Buffer.cs (4)
25throw new ArgumentException(SR.Arg_MustBePrimArray, nameof(src)); 36throw new ArgumentException(SR.Arg_MustBePrimArray, nameof(dst)); 50throw new ArgumentException(SR.Argument_InvalidOffLen); 61throw new ArgumentException(SR.Arg_MustBePrimArray, nameof(array));
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
408throw new ArgumentException(SR.Arg_BufferTooSmall, "destination");
src\libraries\System.Private.CoreLib\src\System\Buffers\ConfigurableArrayPool.cs (1)
236throw new ArgumentException(SR.ArgumentException_BufferNotFromPool, nameof(array));
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
153throw new ArgumentException(SR.ArgumentException_BufferNotFromPool, nameof(array));
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
63throw new ArgumentException(SR.Arg_MustBeByte);
src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
145throw new ArgumentException(SR.Arg_MustBeChar); 1133throw new ArgumentException(SR.Format(invalidIsLow ? SR.Argument_InvalidLowSurrogate : SR.Argument_InvalidHighSurrogate, index), nameof(s));
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (31)
195throw new ArgumentException(SR.Argument_InvalidOffLen); 252throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 265throw new ArgumentException(SR.Argument_InvalidOffLen); 267throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 330throw new ArgumentException(SR.Argument_InvalidOffLen); 534throw new ArgumentException(SR.Argument_InvalidOffLen); 580throw new ArgumentException(SR.Argument_InvalidOffLen); 608throw new ArgumentException(SR.Argument_InvalidOffLen); 639throw new ArgumentException(SR.Argument_InvalidOffLen); 765throw new ArgumentException(SR.Argument_InvalidOffLen); 826throw new ArgumentException(SR.Argument_InvalidOffLen); 828throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 831throw new ArgumentException(SR.Argument_InvalidOffLen); 848throw new ArgumentException(SR.Argument_InvalidOffLen); 972throw new ArgumentException(SR.Argument_InvalidOffLen); 990throw new ArgumentException(SR.Argument_InvalidOffLen); 1028throw new ArgumentException(SR.Argument_InvalidOffLen); 1037throw new ArgumentException(SR.Argument_InvalidOffLen); 1813throw new ArgumentException(SR.Argument_InvalidOffLen); 2067throw new ArgumentException(SR.Argument_InvalidOffLen); 2219throw new ArgumentException(SR.Argument_InvalidOffLen); 2282throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 2285throw new ArgumentException(SR.Argument_InvalidOffLen); 2296throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 2300throw new ArgumentException(SR.Argument_InvalidOffLen); 2302throw new ArgumentException(SR.Argument_InvalidOffLen); 2333throw new ArgumentException(SR.Argument_InvalidOffLen); 2344throw new ArgumentException(SR.Argument_InvalidOffLen); 2457throw new ArgumentException(SR.Argument_InvalidOffLen); 2475throw new ArgumentException(SR.Argument_InvalidOffLen); 2498throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\Collections\Comparer.cs (1)
67throw new ArgumentException(SR.Argument_ImplementIComparable);
src\libraries\System.Private.CoreLib\src\System\Collections\CompatibleComparer.cs (1)
44throw new ArgumentException(SR.Argument_ImplementIComparable);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (5)
106throw new ArgumentException(SR.Argument_InvalidOffLen); 127throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 132throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 143throw new ArgumentException(SR.Argument_InvalidOffLen); 162throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (12)
170throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 185throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 205throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 220throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure); 272throw new ArgumentException(SR.Arg_HTCapacityOverflow, nameof(capacity)); 577throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 580throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 891throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, _buckets[bucketNumber].key, key)); 1194throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1197throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 1229throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 1232throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (5)
107throw new ArgumentException(SR.Format(SR.Argument_AddingDuplicate__, node.key, key)); 153throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 158throw new ArgumentException(SR.ArgumentOutOfRange_IndexMustBeLessOrEqual, nameof(index)); 308throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 311throw new ArgumentException(SR.ArgumentOutOfRange_IndexMustBeLessOrEqual, nameof(index));
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (5)
16throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array)); 21throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array)); 29throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall); 51throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 63throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (2)
197throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array)); 209throw new ArgumentException(SR.Argument_IncompatibleArrayType, nameof(array));
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
250throw new ArgumentException(SR.RuntimeInstanceNotAllowed);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (5)
164_ => throw new ArgumentException(SR.Arg_UnknownTypeCode), 2296private static void ThrowInvalidBase() => throw new ArgumentException(SR.Arg_InvalidBase); 2347throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)options), nameof(options)); 2394throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)options), nameof(options)); 2433throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)options), nameof(options));
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (2)
251throw new ArgumentException(SR.Arg_MustBeDateOnly); 695case ParseFailureKind.Argument_InvalidDateStyles: throw new ArgumentException(SR.Argument_InvalidDateStyles, "style");
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (6)
223private static void ThrowInvalidKind() => throw new ArgumentException(SR.Argument_InvalidDateTimeKind, "kind"); 1088throw new ArgumentException(SR.Arg_MustBeDateTime); 1183throw new ArgumentException(SR.Arg_OleAutDateInvalid); 1197if (millis < 0 || millis > MaxMillis) throw new ArgumentException(SR.Arg_OleAutDateScale); 1267throw new ArgumentException(SR.Argument_DateTimeBadBinaryData, nameof(dateData)); 1274throw new ArgumentException(SR.Argument_DateTimeBadBinaryData, nameof(dateData));
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (8)
107throw new ArgumentException(SR.Argument_OffsetLocalMismatch, nameof(offset)); 114throw new ArgumentException(SR.Argument_OffsetUtcMismatch, nameof(offset)); 576throw new ArgumentException(SR.Arg_MustBeDateTimeOffset); 842throw new ArgumentException(SR.Arg_ArgumentOutOfRangeException); 980throw new ArgumentException(SR.Argument_OffsetPrecision, nameof(offset)); 1012throw new ArgumentException(SR.Argument_InvalidDateTimeStyles, parameterName); 1016throw new ArgumentException(SR.Argument_ConflictingDateTimeStyles, parameterName); 1020throw new ArgumentException(SR.Argument_DateTimeOffsetInvalidDateTimeStyles, parameterName);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (4)
304throw new ArgumentException(SR.Arg_DecBitCtor); 337throw new ArgumentException(SR.Arg_DecBitCtor); 424throw new ArgumentException(SR.Arg_MustBeDecimal); 688throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, nameof(MidpointRounding)), nameof(mode));
src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (4)
36throw new ArgumentException(SR.Arg_EmptyArray, nameof(match)); 550throw new ArgumentException(SR.Arg_MustBeType, nameof(types)); 556throw new ArgumentException(SR.Arg_EmptyArray, nameof(match)); 646throw new ArgumentException(SR.Arg_EmptyArray, nameof(match));
src\libraries\System.Private.CoreLib\src\System\Delegate.cs (1)
161throw new ArgumentException(SR.Arg_DlgtTypeMis);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (3)
519throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive); 566throw new ArgumentException(SR.Argument_ToExclusiveLessThanFromExclusive); 654throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, failureKind), nameof(failureKind));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (12)
323throw new ArgumentException(SR.Argument_InvalidTypeName, nameof(eventSourceType)); 440throw new ArgumentException(SR.EventSource_InvalidCommand, nameof(command)); 1578throw new ArgumentException(SR.EventSource_TraitEven, nameof(traits)); 1583throw new ArgumentException(SR.EventSource_NeedGuid); 1588throw new ArgumentException(SR.EventSource_NeedName); 1921throw new ArgumentException(SR.EventSource_NoRelatedActivityId); 2605throw new ArgumentException(SR.EventSource_ListenerNotFound); 2817throw new ArgumentException(SR.Format(SR.EventSource_EventSourceGuidInUse, m_guid)); 3272throw new ArgumentException(SR.EventSource_StopsFollowStarts); 3373throw new ArgumentException(msg, exception); 3783throw new ArgumentException(SR.EventSource_InvalidEventFormat, nameof(settings)); 5477throw new ArgumentException(msg);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\Statics.cs (1)
585throw new ArgumentException(SR.Format(SR.EventSource_NonCompliantTypeError, dataType.Name));
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (4)
759throw new ArgumentException(SR.Format(SR.EventSource_UnknownEtwTrait, etwTrait.ToString()), "traits"); 815throw new ArgumentException(SR.EventSource_EvenHexDigits, "traits"); 828throw new ArgumentException(SR.Format(SR.EventSource_IllegalValue, value), "traits"); 852throw new ArgumentException(SR.Format(SR.EventSource_BadHexDigit, c), "traits");
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
267return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeDouble);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (9)
406throw new ArgumentException(SR.Format(SR.Argument_EnumTypeDoesNotMatch, flag.GetType(), GetType())); 889throw new ArgumentException(SR.Arg_MustBeEnum, nameof(TEnum)); 1123throw new ArgumentException(SR.Format(SR.Arg_EnumValueNotFound, originalValue.ToString())); 1291throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, target.GetType(), GetType())); 1638throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, rtType)); 1651throw new ArgumentException(SR.Format(SR.Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 2149throw new ArgumentException(enumType is not RuntimeType ? SR.Arg_MustBeType : SR.Arg_MustBeEnum, nameof(enumType)); 2152throw new ArgumentException(SR.Arg_MustContainEnumInfo, "value"); 2224throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value));
src\libraries\System.Private.CoreLib\src\System\Environment.cs (2)
242throw new ArgumentException(SR.Argument_StringFirstCharIsZero, nameof(variable)); 245throw new ArgumentException(SR.Argument_IllegalEnvVarName, nameof(variable));
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (2)
57throw new ArgumentException(SR.Argument_LongEnvVarValue); 64throw new ArgumentException(Marshal.GetPInvokeErrorMessage(errorCode));
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
139throw new ArgumentException(SR.Format(SR.Argument_ResultCalendarRange, minValue, maxValue));
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (5)
70throw new ArgumentException(SR.Argument_OnlyMscorlib, nameof(assembly)); 88throw new ArgumentException(SR.Argument_OnlyMscorlib, nameof(assembly)); 102throw new ArgumentException(SR.Argument_CustomCultureCannotBePassedByNumber, nameof(culture)); 482throw new ArgumentException( 1373throw new ArgumentException(paramName: nameof(options), message: SR.Argument_InvalidFlag);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (4)
713throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options)); 747throw new ArgumentException(SR.Arg_ExternalException); 800throw new ArgumentException(SR.Arg_ExternalException); 939throw new ArgumentException(SR.Arg_ExternalException);
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (2)
18throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options)); 122throw new ArgumentException(
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (9)
147throw new ArgumentException(SR.Arg_ExternalException); 168throw new ArgumentException(SR.Arg_ExternalException); 202throw new ArgumentException(SR.Arg_ExternalException); 250throw new ArgumentException(SR.Arg_ExternalException); 378throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options)); 402throw new ArgumentException(SR.Arg_ExternalException); 415throw new ArgumentException(SR.Arg_ExternalException); 515throw new ArgumentException(SR.Arg_ExternalException); 560throw new ArgumentException(SR.Arg_ExternalException);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
732throw new ArgumentException(SR.Format(SR.Argument_InvalidId, nameof(name)));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
341throw new ArgumentException(SR.Format(SR.Argument_InvalidResourceCultureName, cultureName));
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (11)
1060throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value)); 1085throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value)); 1105throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 7), nameof(value)); 1127throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1148throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1353throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format)); 1631throw new ArgumentException(SR.Arg_ArrayZeroError, nameof(patterns)); 1677throw new ArgumentException(SR.Format(SR.Format_BadFormatSpecifier, format), nameof(format)); 1693throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1714throw new ArgumentException(SR.Format(SR.Argument_InvalidArrayLength, 13), nameof(value)); 1775throw new ArgumentException(message, styles ? nameof(styles) : nameof(style));
src\libraries\System.Private.CoreLib\src\System\Globalization\GregorianCalendarHelper.cs (2)
408throw new ArgumentException(SR.Argument_NoEra); 429throw new ArgumentException(SR.Argument_NoEra);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (37)
79throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 83throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, index + count - 1), nameof(unicode)); 128throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 204throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, unicode.Length - 1), nameof(unicode)); 222throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 232throw new ArgumentException(SR.Format(SR.Argument_InvalidCharSequence, i), nameof(unicode)); 244throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 248throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 268throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 272throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, 311throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 333throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 362throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode)); 381throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode)); 388throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(unicode)); 414throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(unicode)); 499throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(unicode)); 511throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, 538throw new ArgumentException(SR.Format(SR.Argument_IdnBadStd3, c), nameof(c)); 553throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 583throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 587throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, 610throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 618throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 638throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 653throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 688throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 695throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 703throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 714throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 720throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 735throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(ascii)); 779throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii)); 786throw new ArgumentException(SR.Argument_IdnBadBidi, nameof(ascii)); 792throw new ArgumentException(SR.Argument_IdnBadLabelSize, nameof(ascii)); 804throw new ArgumentException(SR.Format(SR.Argument_IdnBadNameSize, c_defaultNameLimit - (IsDot(output[output.Length - 1]) ? 0 : 1)), nameof(ascii)); 827throw new ArgumentException(SR.Argument_IdnBadPunycode, nameof(cp));
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Icu.cs (5)
39throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(unicode)); 48throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(unicode)); 89throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 104throw new ArgumentException(SR.Argument_IdnIllegalName, nameof(ascii)); 137throw new ArgumentException(SR.Argument_IdnIllegalName, paramName);
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (1)
122throw new ArgumentException(
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (5)
35throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput)); 75throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput)); 102throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput)); 126throw new ArgumentException(SR.Argument_InvalidNormalizationForm, nameof(normalizationForm)); 131throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput));
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (4)
41throw new ArgumentException(SR.Argument_InvalidNormalizationForm, nameof(normalizationForm)); 44throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput)); 119throw new ArgumentException(SR.Argument_InvalidNormalizationForm, nameof(normalizationForm)); 123throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(strInput));
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (9)
110throw new ArgumentException(SR.Argument_InvalidNativeDigitCount, propertyName); 125throw new ArgumentException(SR.Argument_InvalidNativeDigitValue, propertyName); 130throw new ArgumentException(SR.Argument_InvalidNativeDigitValue, propertyName); 139throw new ArgumentException(SR.Argument_InvalidNativeDigitValue, propertyName); 155throw new ArgumentException(SR.Argument_InvalidDigitSubstitution, propertyName); 294throw new ArgumentException(SR.Argument_InvalidGroupSize, propName); 298throw new ArgumentException(SR.Argument_InvalidGroupSize, propName); 822throw new ArgumentException( 837throw new ArgumentException((value & InvalidNumberStyles) != 0 ? SR.Argument_InvalidNumberStyles : SR.Arg_HexBinaryStylesNotSupported, nameof(style));
src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (7)
33throw new ArgumentException(SR.Argument_NoRegionInvariantCulture, nameof(name)); 38throw new ArgumentException(SR.Format(SR.Argument_InvalidCultureName, name), nameof(name)); 43throw new ArgumentException(SR.Format(SR.Argument_InvalidNeutralRegionName, name), nameof(name)); 54throw new ArgumentException(SR.Argument_NoRegionInvariantCulture); 60throw new ArgumentException(SR.Format(SR.Argument_CultureIsNeutral, culture), nameof(culture)); 66throw new ArgumentException(SR.Format(SR.Argument_CustomCultureCannotBePassedByNumber, culture), nameof(culture)); 75throw new ArgumentException(SR.Format(SR.Argument_CultureIsNeutral, culture), nameof(culture));
src\libraries\System.Private.CoreLib\src\System\Guid.cs (3)
90throw new ArgumentException(SR.Format(SR.Arg_GuidArrayCtor, "16"), "b"); 116throw new ArgumentException(SR.Format(SR.Arg_GuidArrayCtor, "8"), nameof(d)); 963throw new ArgumentException(SR.Arg_MustBeGuid, nameof(value));
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
434return (obj is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeHalf);
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
61throw new ArgumentException(SR.Arg_MustBeInt128);
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
68throw new ArgumentException(SR.Arg_MustBeInt16);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
75throw new ArgumentException(SR.Arg_MustBeInt32);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
72throw new ArgumentException(SR.Arg_MustBeInt64);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
193throw new ArgumentException(SR.Arg_MustBeIntPtr);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (3)
46throw new ArgumentException(SR.Argument_StreamNotReadable); 302throw new ArgumentException(SR.Argument_InvalidOffLen); 421throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (2)
51throw new ArgumentException(SR.Argument_StreamNotWritable); 181throw new ArgumentException(SR.Arg_SurrogatesNotAllowedAsSingleChar);
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
75throw new ArgumentException(SR.Argument_DirectorySeparatorInvalid, paramName);
src\libraries\System.Private.CoreLib\src\System\IO\Directory.Unix.cs (1)
17throw new ArgumentException(SR.Arg_InvalidUnixFileMode, nameof(unixCreateMode));
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (4)
79throw new ArgumentException(SR.Argument_PathEmpty, nameof(path)); 81throw new ArgumentException(SR.Arg_Path2IsRooted, nameof(path)); 98throw new ArgumentException(SR.Format(SR.Argument_InvalidSubPath, path, FullPath), nameof(path)); 199_ => throw new ArgumentException(SR.ArgumentOutOfRange_Enum, nameof(searchTarget)),
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (3)
30throw new ArgumentException(SR.Arg_Path2IsRooted, nameof(expression)); 33throw new ArgumentException(SR.Argument_NullCharInPath, expression); 36throw new ArgumentException(SR.Argument_NullCharInPath, directory);
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (2)
238throw new ArgumentException(SR.Arg_InvalidFileAttrs, "Attributes"); 481throw new ArgumentException(SR.Arg_InvalidUnixFileMode, nameof(UnixFileMode));
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (5)
71throw new ArgumentException(SR.Arg_InvalidHandle, nameof(handle)); 188throw new ArgumentException(SR.Argument_InvalidAppendMode, nameof(options)); 194throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, options.Mode, options.Access), nameof(options)); 208throw new ArgumentException(SR.Argument_InvalidUnixCreateMode, nameof(options)); 597throw new ArgumentException(SR.Argument_InvalidSeekOrigin, nameof(origin));
src\libraries\System.Private.CoreLib\src\System\IO\FileStreamOptions.cs (1)
144throw new ArgumentException(SR.Arg_InvalidUnixFileMode, nameof(UnixCreateMode));
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.cs (1)
27throw new ArgumentException(SR.Argument_NullCharInPath, argName);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (2)
88throw new ArgumentException(SR.Argument_InvalidOffLen); 520_ => throw new ArgumentException(SR.Argument_InvalidSeekOrigin)
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (2)
867throw new ArgumentException(SR.Arg_PathEmpty, nameof(relativeTo)); 869throw new ArgumentException(SR.Arg_PathEmpty, nameof(path));
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (3)
31throw new ArgumentException(SR.Argument_NullCharInPath, nameof(path)); 42throw new ArgumentException(SR.Arg_BasePathNotFullyQualified, nameof(basePath)); 45throw new ArgumentException(SR.Argument_NullCharInPath);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (4)
105throw new ArgumentException(SR.Format(SR.Argument_InvalidFileModeAndAccessCombo, mode, access), nameof(access)); 111throw new ArgumentException(SR.Argument_InvalidAppendMode, nameof(access)); 127throw new ArgumentException(SR.Argument_InvalidPreallocateAccess, nameof(access)); 135throw new ArgumentException(SR.Argument_InvalidPreallocateMode, nameof(mode));
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (6)
148throw new ArgumentException(SR.Argument_StreamNotReadable); 222throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(options)); 356throw new ArgumentException(SR.Argument_InvalidOffLen); 435throw new ArgumentException(SR.Argument_InvalidOffLen); 1057throw new ArgumentException(SR.Argument_InvalidOffLen); 1268throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (5)
104throw new ArgumentException(SR.Argument_StreamNotWritable); 179throw new ArgumentException(SR.Argument_StreamNotWritable, nameof(options)); 379throw new ArgumentException(SR.Argument_InvalidOffLen); 739throw new ArgumentException(SR.Argument_InvalidOffLen); 891throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (3)
94throw new ArgumentException(SR.Argument_InvalidOffLen); 295throw new ArgumentException(SR.Argument_InvalidOffLen); 313throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (1)
96throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (5)
78throw new ArgumentException(SR.Argument_InvalidOffLen); 268throw new ArgumentException(SR.Argument_InvalidOffLen); 298throw new ArgumentException(SR.Argument_InvalidOffLen); 397throw new ArgumentException(SR.Argument_InvalidOffLen); 410throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
152throw new ArgumentException(SR.Argument_InvalidOffLen);
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (9)
48throw new ArgumentException(SR.Argument_OffsetAndCapacityOutOfBounds); 69throw new ArgumentException(SR.Argument_UnmanagedMemAccessorWrapAround); 249throw new ArgumentException(SR.Arg_BadDecimal); // Throw same Exception type as Decimal(int[]) ctor for compat 303throw new ArgumentException(SR.Argument_NotEnoughBytesToRead, nameof(position)); 321throw new ArgumentException(SR.Argument_InvalidOffLen); 531throw new ArgumentException(SR.Argument_NotEnoughBytesToWrite, nameof(position)); 547throw new ArgumentException(SR.Argument_InvalidOffLen); 586throw new ArgumentException(SR.Argument_NotEnoughBytesToRead, nameof(position)); 610throw new ArgumentException(SR.Argument_NotEnoughBytesToWrite, nameof(position));
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (4)
88throw new ArgumentException(SR.Argument_InvalidSafeBufferOffLen); 109throw new ArgumentException(SR.ArgumentOutOfRange_UnmanagedMemStreamWrapAround); 558throw new ArgumentException(SR.Argument_InvalidSeekOrigin); 665throw new ArgumentException(SR.Arg_BufferTooSmall);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1443throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
src\libraries\System.Private.CoreLib\src\System\ParseNumbers.cs (4)
33throw new ArgumentException(SR.Arg_InvalidBase, nameof(radix)); 53throw new ArgumentException(SR.Arg_CannotHaveNegativeValue); 121throw new ArgumentException(SR.Arg_InvalidBase, nameof(radix)); 141throw new ArgumentException(SR.Arg_CannotHaveNegativeValue);
src\libraries\System.Private.CoreLib\src\System\Random.cs (1)
197throw new ArgumentException(SR.Arg_EmptySpan, nameof(choices));
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
259throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, path), nameof(path));
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
34throw new ArgumentException(SR.Format_StringZeroLength);
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (1)
55throw new ArgumentException(SR.Argument_MustBeRuntimeConstructorInfo, nameof(constructor));
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
24_ => throw new ArgumentException(SR.Argument_InvalidMemberForNamedArgument)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (4)
237throw new ArgumentException(SR.Arg_InvalidTypeInSignature); 240throw new ArgumentException(SR.Arg_InvalidTypeInSignature); 273throw new ArgumentException(SR.Argument_InvalidTypeForDynamicMethod); 351throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (5)
96throw new ArgumentException(SR.Argument_NotExceptionType, nameof(excType)); 101throw new ArgumentException(SR.Arg_NoDefCTorWithoutTypeName, nameof(excType)); 134throw new ArgumentException(SR.NotSupported_OutputStreamUsingTypeBuilder); 140throw new ArgumentException(SR.Argument_EmitWriteLineType, nameof(localBuilder)); 177throw new ArgumentException(SR.Argument_EmitWriteLineType, nameof(fld));
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\MethodBuilder.cs (1)
27throw new ArgumentException(SR.Arg_EmptyArray, nameof(names));
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (5)
76throw new ArgumentException(SR.Argument_BadSigFormat); 137throw new ArgumentException(SR.Argument_BadSigFormat); 167throw new ArgumentException(SR.Argument_BadSigFormat); 185throw new ArgumentException(SR.Argument_BadSigFormat); 301throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (16)
90throw new ArgumentException(SR.Arg_EmptyArray, nameof(names)); 128throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeOptionalCustomModifiers), nameof(parameterTypes))); 131throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(parameterTypeRequiredCustomModifiers), nameof(parameterTypes))); 331throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type)); 343throw new ArgumentException(SR.Argument_NeedGenericMethodDefinition, nameof(method)); 348throw new ArgumentException(SR.Argument_MethodNeedGenericDeclaringType, nameof(method)); 353throw new ArgumentException(SR.Argument_InvalidMethodDeclaringType, nameof(type)); 366throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type)); 378throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type)); 383throw new ArgumentException(SR.Argument_ConstructorNeedGenericDeclaringType, nameof(constructor)); 388throw new ArgumentException(SR.Argument_InvalidConstructorDeclaringType, nameof(type)); 399throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type)); 411throw new ArgumentException(SR.Argument_MustBeTypeBuilder, nameof(type)); 416throw new ArgumentException(SR.Argument_FieldNeedGenericDeclaringType, nameof(field)); 421throw new ArgumentException(SR.Argument_InvalidFieldDeclaringType, nameof(type)); 432throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type));
src\libraries\System.Private.CoreLib\src\System\Reflection\FieldAccessor.cs (1)
481throw new ArgumentException(SR.Format(SR.Arg_FieldDeclTarget, fieldInfo.Name, fieldInfo.DeclaringType, target.GetType()));
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (1)
146throw new ArgumentException(SR.Arg_VarMissNull, "parameters");
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (1)
77throw new ArgumentException(SR.Argument_MustBeRuntimeMethod, nameof(method));
src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterModifier.cs (1)
13throw new ArgumentException(SR.Arg_ParmArraySize);
src\libraries\System.Private.CoreLib\src\System\Reflection\Pointer.cs (3)
28throw new ArgumentException(SR.Arg_MustBePointer, nameof(ptr)); 30throw new ArgumentException(SR.Arg_MustBeType, nameof(type)); 38throw new ArgumentException(SR.Arg_MustBePointer, nameof(ptr));
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureByRefType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureConstructedGenericType.cs (1)
54public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureGenericParameterType.cs (1)
31public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Reflection\SignaturePointerType.cs (1)
20public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (2)
140throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, fallbackLocation)); 158throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_Asm_Culture, a, attr.CultureName), e);
src\libraries\System.Private.CoreLib\src\System\Resources\NeutralResourcesLanguageAttribute.cs (1)
25throw new ArgumentException(SR.Format(SR.Arg_InvalidNeutralResourcesLanguage_FallbackLoc, location));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (5)
192throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 208throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 214throw new ArgumentException(SR.Arg_ResMgrNotResSet, nameof(usingResourceSet)); 225throw new ArgumentException(SR.Argument_MustBeRuntimeType); 540throw new ArgumentException(SR.Format(SR.Arg_InvalidSatelliteContract_Asm_Ver, a, v));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
151throw new ArgumentException(SR.Format(SR.Arg_ResourceNameNotExist, resourceName));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
132throw new ArgumentException(SR.Argument_StreamNotReadable); 810throw new ArgumentException(SR.Resources_StreamNotValid); 848throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ContractHelper.cs (1)
36throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, failureKind), nameof(failureKind));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (2)
25throw new ArgumentException(SR.ArgumentException_NotIsomorphic); 31throw new ArgumentException(SR.Argument_StructArrayTooLarge);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CurrencyWrapper.cs (1)
21throw new ArgumentException(SR.Arg_MustBeDecimal, nameof(obj));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ErrorWrapper.cs (1)
20throw new ArgumentException(SR.Arg_MustBeInt32, nameof(errorCode));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (2)
41throw new ArgumentException(SR.ArgumentException_NotIsomorphic, nameof(value)); 97throw new ArgumentException(SR.ArgumentException_NotIsomorphic, nameof(value));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (14)
112throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t)); 116throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t)); 127throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T)); 571throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(structureType)); 575throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(structureType)); 619throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(T)); 1057throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 1074throw new ArgumentException(SR.Argument_TypeMustNotBeComImport, nameof(type)); 1078throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(type)); 1100throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(t)); 1104throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(t)); 1112throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(t)); 1125throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(TDelegate)); 1133throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(TDelegate));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (6)
358throw new ArgumentException(SR.UnsupportedType, nameof(T)); 385throw new ArgumentException(SR.ComVariant_VT_DECIMAL_NotSupported_CreateRaw, nameof(vt)); 389throw new ArgumentException(SR.ComVariant_VT_VARIANT_In_Variant, nameof(vt)); 416_ => throw new ArgumentException(SR.Format(SR.ComVariant_SizeMustMatchVariantSize, nameof(T), nameof(vt))) 551throw new ArgumentException(SR.UnsupportedType, nameof(T)); 577throw new ArgumentException(SR.ComVariant_VT_DECIMAL_NotSupported_RawDataRef, nameof(T));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (3)
90throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 125throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly); 207throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
802throw new ArgumentException(SR.Arg_MustBeNFloat);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeBuffer.cs (4)
223throw new ArgumentException(SR.Argument_InvalidOffLen); 310throw new ArgumentException(SR.Argument_InvalidOffLen); 376throw new ArgumentException(SR.Arg_BufferTooSmall); 406throw new ArgumentException(SR.Argument_NeedStructWithNoRefs);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (5)
340throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, assemblyPath), nameof(assemblyPath)); 358throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, nativeImagePath), nameof(nativeImagePath)); 363throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, assemblyPath), nameof(assemblyPath)); 444throw new ArgumentException(SR.Format(SR.Argument_AbsolutePathRequired, unmanagedDllPath), nameof(unmanagedDllPath)); 570throw new ArgumentException(SR.Arg_MustBeRuntimeAssembly, nameof(activating));
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\OptionalFieldAttribute.cs (1)
18throw new ArgumentException(SR.Serialization_OptionalFieldVersionValue);
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
340throw new ArgumentException(SR.Argument_MustBeRuntimeType);
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (6)
120throw new ArgumentException(SR.Argument_FrameworkNameTooShort, nameof(frameworkName)); 131throw new ArgumentException(SR.Argument_FrameworkNameInvalid, nameof(frameworkName)); 148throw new ArgumentException(SR.Argument_FrameworkNameInvalid, nameof(frameworkName)); 173throw new ArgumentException(SR.Argument_FrameworkNameInvalidVersion, nameof(frameworkName), e); 188throw new ArgumentException(SR.Argument_FrameworkNameInvalid, nameof(frameworkName)); 194throw new ArgumentException(SR.Argument_FrameworkNameMissingVersion, nameof(frameworkName));
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\VersioningHelper.cs (5)
37throw new ArgumentException(SR.Format(SR.Argument_ResourceScopeWrongDirection, fromResType, toResType), nameof(from)); 112throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeTypeBits, consumeAsScope), nameof(consumeAsScope)); 126throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeTypeBits, calleeScope), nameof(calleeScope)); 147throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeVisibilityBits, consumeAsScope), nameof(consumeAsScope)); 161throw new ArgumentException(SR.Format(SR.Argument_BadResourceScopeVisibilityBits, calleeScope), nameof(calleeScope));
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (25)
46throw new ArgumentException(SR.Argument_HasToBeArrayClass); 63throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 105throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value)); 114throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 196throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 214throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 229throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 324throw new ArgumentException(SR.Arg_NoAccessSpec, nameof(bindingFlags)); 341throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams)); 346throw new ArgumentException(SR.Arg_NamedParamTooBig, nameof(namedParams)); 399throw new ArgumentException(SR.Arg_NamedParamNull, nameof(namedParams)); 410throw new ArgumentException(SR.Arg_CreatInstAccess, nameof(bindingFlags)); 435throw new ArgumentException(SR.Arg_FldSetGet, nameof(bindingFlags)); 438throw new ArgumentException(SR.Arg_FldGetPropSet, nameof(bindingFlags)); 447throw new ArgumentException(SR.Arg_FldSetPropGet, nameof(bindingFlags)); 450throw new ArgumentException(SR.Arg_FldSetInvoke, nameof(bindingFlags)); 496throw new ArgumentException(SR.Arg_IndexMustBeInt); 519throw new ArgumentException(SR.Arg_FldGetArgErr, nameof(bindingFlags)); 526throw new ArgumentException(SR.Arg_FldSetArgErr, nameof(bindingFlags)); 548throw new ArgumentException(SR.Arg_PropSetGet, nameof(bindingFlags)); 557throw new ArgumentException(SR.Arg_PropSetInvoke, nameof(bindingFlags)); 721throw new ArgumentException( 736throw new ArgumentException( 804throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this)); 875throw new ArgumentException(SR.Format(SR.Arg_ObjObjEx, value?.GetType(), this));
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
67throw new ArgumentException(SR.Arg_MustBeSByte);
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
219throw new ArgumentException(SR.Argument_SearchValues_UnsupportedStringComparison, nameof(comparisonType));
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (11)
39throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 49throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, tag)); 52throw new ArgumentException(SR.Format(SR.Argument_InvalidElementText, text)); 68throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 115throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, attrName)); 118throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, attrValue)); 141throw new ArgumentException(SR.Format(SR.Argument_InvalidElementTag, value)); 159throw new ArgumentException(SR.ArgumentNull_Child); 183throw new ArgumentException(SR.Argument_AttributeNamesMustBeUnique); 197throw new ArgumentException(SR.Format(SR.Argument_InvalidElementName, name)); 200throw new ArgumentException(SR.Format(SR.Argument_InvalidElementValue, value));
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
266return (value is null) ? 1 : throw new ArgumentException(SR.Arg_MustBeSingle);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (1)
448throw new ArgumentException(SR.Arg_MustBeNullTerminatedString);
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (5)
114throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 120throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart)); 130throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSimpleAssemblyName, startupHookPart), assemblyNameException); 162throw new ArgumentException( 204throw new ArgumentException(SR.Format(SR.Argument_InvalidStartupHookSignature,
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (6)
260throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 513throw new ArgumentException(SR.Arg_MustBeString); 574throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 683throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 741throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 998throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType));
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
1200throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType));
src\libraries\System.Private.CoreLib\src\System\String.Searching.cs (3)
74throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 285: new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)); 423: new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType));
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (3)
42_ => throw new ArgumentException(SR.NotSupported_StringComparison, nameof(comparisonType)), 175throw new ArgumentException(SR.Argument_ImplementIComparable); 231throw new ArgumentException(SR.Argument_InvalidFlag, nameof(options));
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (3)
40throw new ArgumentException( 257throw new ArgumentException(SR.Argument_ConversionOverflow); 299throw new ArgumentException(SR.Argument_ConversionOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (8)
127throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 134throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 150throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 182throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 189throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 199throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 241throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 311throw new ArgumentException(
src\libraries\System.Private.CoreLib\src\System\Text\DecoderReplacementFallback.cs (1)
59throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(replacement));
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (3)
40throw new ArgumentException( 257throw new ArgumentException(SR.Argument_ConversionOverflow); 298throw new ArgumentException(SR.Argument_ConversionOverflow);
src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (2)
285throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 357throw new ArgumentException(SR.Format(SR.Argument_RecursiveFallback, charRecursive), "chars");
src\libraries\System.Private.CoreLib\src\System\Text\EncoderNLS.cs (1)
243throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, Encoding.EncodingName, _fallbackBuffer.GetType()));
src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (1)
59throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex, nameof(replacement));
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (5)
222throw new ArgumentException(SR.Format(SR.Argument_CodepageNotSupported, codepage), nameof(codepage)); 1098throw new ArgumentException( 1119throw new ArgumentException(SR.Argument_ConversionOverflow); 1126throw new ArgumentException( 1438throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty,
src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
99throw new ArgumentException(
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
1478throw new ArgumentException(SR.Arg_MustBeRune);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (3)
877throw new ArgumentException(SR.ArgumentOutOfRange_OffsetOut); 894throw new ArgumentException(SR.Arg_LongerThanSrcString); 2092throw new ArgumentException(SR.Arg_EmptySpan, nameof(oldValue));
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (4)
373throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 590throw new ArgumentException( 656throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType())); 928throw new ArgumentException(
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (2)
366throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType().ToString() ?? string.Empty)); 501throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, this.EncodingName, encoder.Fallback?.GetType()));
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (1)
896throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (1)
8840 => throw new ArgumentException(SR.CancellationToken_CreateLinkedToken_TokensIsEmpty),
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.cs (1)
26throw new ArgumentException(SR.Argument_InvalidFlag, nameof(mode));
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (1)
28throw new ArgumentException(SR.Argument_SemaphoreInitialMaximum);
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (1)
281throw new ArgumentException(SR.SpinLock_TryReliableEnter_ArgumentException);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (1)
327throw new ArgumentException(SR.Task_MustBeCompleted, nameof(completedTask));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (1)
329throw new ArgumentException(SR.Task_MustBeCompleted, nameof(completedTask));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (1)
199throw new ArgumentException(SR.TaskExceptionHolder_UnknownExceptionType, nameof(exceptionObject));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (5)
2350if (task == null) throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, nameof(tasks)); 2973throw new ArgumentException(SR.Task_MultiTaskContinuation_EmptyTaskList, nameof(tasks)); 2981throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, nameof(tasks)); 2992throw new ArgumentException(SR.Task_MultiTaskContinuation_EmptyTaskList, nameof(tasks)); 3000throw new ArgumentException(SR.Task_MultiTaskContinuation_NullTask, nameof(tasks));
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Portable.cs (3)
46throw new ArgumentException(SR.Argument_PreAllocatedAlreadyAllocated, nameof(preAllocated)); 68throw new ArgumentException(SR.Argument_NativeOverlappedWrongBoundHandle, nameof(overlapped)); 94throw new ArgumentException(SR.Argument_NativeOverlappedAlreadyFree, nameof(overlapped), ex);
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Unix.cs (1)
79throw new ArgumentException(SR.Argument_InvalidHandle, nameof(handle));
src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandle.cs (1)
306throw new ArgumentException(SR.Argument_EmptyWaithandleArray, nameof(waitHandles));
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (19)
89throw new ArgumentException(SR.Format(SR.Argument_InvalidTypeWithPointersNotSupported, targetType)); 107throw new ArgumentException(SR.Argument_DestinationTooShort, "destination"); 113throw new ArgumentException(SR.Argument_InvalidTimeSpanStyles, "styles"); 119throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, value, typeof(TEnum).Name), argumentName); 125throw new ArgumentException(SR.Argument_OverlapAlignmentMismatch); 143throw new ArgumentException(SR.Format(SR.ArgumentException_ValueTupleIncorrectType, obj.GetType()), "other"); 163throw new ArgumentException(SR.Format(SR.Arg_BogusIComparer, comparer)); 290throw new ArgumentException(SR.Arg_CannotBeNaN); 296throw new ArgumentException(SR.Arg_CannotBeNaN, GetArgumentName(argument)); 315return new ArgumentException(SR.Format(SR.Argument_AddingDuplicateWithKey, key)); 347throw new ArgumentException(SR.Arg_HandleNotSync, paramName); 353throw new ArgumentException(SR.Arg_HandleNotAsync, paramName); 530throw new ArgumentException(SR.Argument_IncompatibleArrayType); 536throw new ArgumentException(SR.Arg_InvalidHandle, paramName); 721return new ArgumentException(SR.Argument_InvalidOffLen); 726return new ArgumentException(GetResourceString(resource)); 736return new ArgumentException(SR.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 741return new ArgumentException(SR.Format(SR.Arg_WrongType, value, targetType), nameof(value)); 756return new ArgumentException(GetResourceString(resource), GetArgumentName(argument));
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (2)
413throw new ArgumentException(SR.Arg_MustBeTimeOnly); 865case ParseFailureKind.Argument_InvalidDateStyles: throw new ArgumentException(SR.Argument_InvalidDateStyles, "style");
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
287throw new ArgumentException(SR.Arg_MustBeTimeSpan);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (7)
184throw new ArgumentException(SR.Argument_DateTimeKindMustBeUnspecifiedOrUtc, nameof(dateStart)); 189throw new ArgumentException(SR.Argument_DateTimeKindMustBeUnspecifiedOrUtc, nameof(dateEnd)); 194throw new ArgumentException(SR.Argument_TransitionTimesAreIdentical, nameof(daylightTransitionEnd)); 199throw new ArgumentException(SR.Argument_OutOfOrderDateTimes, nameof(dateStart)); 213throw new ArgumentException(SR.Argument_TimeSpanHasSeconds, nameof(daylightDelta)); 218throw new ArgumentException(SR.Argument_DateTimeHasTimeOfDay, nameof(dateStart)); 223throw new ArgumentException(SR.Argument_DateTimeHasTimeOfDay, nameof(dateEnd));
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (8)
195throw new ArgumentException(SR.Argument_DateTimeOffsetIsNotAmbiguous, nameof(dateTimeOffset)); 210throw new ArgumentException(SR.Argument_DateTimeOffsetIsNotAmbiguous, nameof(dateTimeOffset)); 240throw new ArgumentException(SR.Argument_DateTimeIsNotAmbiguous, nameof(dateTime)); 269throw new ArgumentException(SR.Argument_DateTimeIsNotAmbiguous, nameof(dateTime)); 756throw new ArgumentException(SR.Argument_ConvertMismatch, nameof(sourceTimeZone)); 781throw new ArgumentException(SR.Argument_DateTimeIsInvalid, nameof(dateTime)); 870throw new ArgumentException(SR.Format(SR.Argument_InvalidSerializedString, source), nameof(source)); 2154throw new ArgumentException(SR.Argument_TimeSpanHasSeconds, nameof(baseUtcOffset));
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (2)
75throw new ArgumentException(SR.Argument_DateTimeKindMustBeUnspecified, nameof(timeOfDay)); 105throw new ArgumentException(SR.Argument_DateTimeHasTicks, nameof(timeOfDay));
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (3)
1286throw new ArgumentException(SR.Argument_TimeZoneInfoInvalidTZif, nameof(data)); 1312throw new ArgumentException("bad data", nameof(data)); 1320throw new ArgumentException(SR.Argument_TimeZoneInfoBadTZif, nameof(data));
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (9)
154throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 274throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 399throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 534throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 679throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 834throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 999throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other)); 1128throw new ArgumentException(SR.ArgumentException_TupleLastArgumentNotATuple); 1179throw new ArgumentException(SR.Format(SR.ArgumentException_TupleIncorrectType, GetType()), nameof(other));
src\libraries\System.Private.CoreLib\src\System\Type.cs (5)
296new ArgumentException(SR.Format(SR.Arg_MemberInfoNotFound, member.Name), nameof(member)); 479throw new ArgumentException(SR.ArgumentNull_ArrayValue, nameof(args)); 602throw new ArgumentException(SR.Arg_MustBeEnum, "enumType"); 606throw new ArgumentException(SR.Argument_InvalidEnum, "enumType"); 615throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
src\libraries\System.Private.CoreLib\src\System\Type.Enum.cs (6)
25throw new ArgumentException(SR.Arg_MustBeEnum, nameof(value)); 34throw new ArgumentException(SR.Format(SR.Arg_EnumAndObjectMustBeSameType, valueType, this)); 55throw new ArgumentException(SR.Format(SR.Arg_EnumUnderlyingTypeAndObjectMustBeSameType, valueType, underlyingType)); 71throw new ArgumentException(SR.Arg_MustBeEnum, nameof(value)); 76throw new ArgumentException(SR.Arg_MustBeEnumBaseTypeOrEnum, nameof(value)); 93throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
src\libraries\System.Private.CoreLib\src\System\TypedReference.cs (4)
22throw new ArgumentException(SR.Arg_ArrayZeroError, nameof(flds)); 32throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo); 35throw new ArgumentException(SR.Format(SR.Argument_TypedReferenceInvalidField, field.Name)); 42throw new ArgumentException(SR.Format(SR.Arg_TypeRefPrimitive, field.Name));
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
62throw new ArgumentException(SR.Arg_MustBeUInt128);
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
63throw new ArgumentException(SR.Arg_MustBeUInt16);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
69throw new ArgumentException(SR.Arg_MustBeUInt32);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
69throw new ArgumentException(SR.Arg_MustBeUInt64);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
189throw new ArgumentException(SR.Arg_MustBeUIntPtr);
src\libraries\System.Private.CoreLib\src\System\UnitySerializationHolder.cs (1)
52throw new ArgumentException(SR.Format(SR.Argument_InvalidUnity, _data ?? "UnityType"));
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (1)
1856throw new ArgumentException(SR.ArgumentException_ValueTupleLastArgumentNotAValueTuple);
src\libraries\System.Private.CoreLib\src\System\Version.cs (4)
123throw new ArgumentException(SR.Arg_MustBeVersion, nameof(version)); 222throw new ArgumentException(SR.Format(SR.ArgumentOutOfRange_Bounds_Lower_Upper, "0", failureUpperBound), nameof(fieldCount)); 313if (throwOnFailure) throw new ArgumentException(SR.Arg_VersionString, nameof(input)); 330if (throwOnFailure) throw new ArgumentException(SR.Arg_VersionString, nameof(input));
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
181: throw new ArgumentException(SR.InvalidAssemblyName, nameof(assemblyName));
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
334throw new ArgumentException(SR.Argument_InvalidTypeName, $"typeName@{errorIndex}");
src\System\Array.CoreCLR.cs (2)
61throw new ArgumentException(SR.Arg_LongerThanSrcArray, nameof(sourceArray)); 63throw new ArgumentException(SR.Arg_LongerThanDestArray, nameof(destinationArray));
src\System\Attribute.CoreCLR.cs (11)
456throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 495throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 543throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 546throw new ArgumentException(SR.Argument_InvalidParameterInfo, nameof(element)); 560throw new ArgumentException(SR.Argument_InvalidParameterInfo, nameof(element)); 582throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 599throw new ArgumentException(SR.Argument_InvalidParamInfo); 650throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 668throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 708throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass); 738throw new ArgumentException(SR.Argument_MustHaveAttributeBaseClass);
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (2)
41throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 46throw new ArgumentException(SR.ArgumentOutOfRange_IndexMustBeLessOrEqual, nameof(index));
src\System\Delegate.CoreCLR.cs (22)
51throw new ArgumentException(SR.Arg_DlgtTargMeth); 63throw new ArgumentException(SR.Arg_UnboundGenParam, nameof(target)); 65throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(target)); 223throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 225throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type)); 242throw new ArgumentException(SR.Arg_DlgtTargMeth); 258throw new ArgumentException(SR.Arg_UnboundGenParam, nameof(target)); 260throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 262throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(target)); 265throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type)); 278throw new ArgumentException(SR.Arg_DlgtTargMeth); 293throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 296throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(method)); 299throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type)); 316throw new ArgumentException(SR.Arg_DlgtTargMeth); 328throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 331throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(method)); 334throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type)); 348throw new ArgumentException(SR.Arg_DlgtTargMeth); 366throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(type)); 369throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(type)); 382throw new ArgumentException(SR.Arg_DlgtTargMeth);
src\System\GC.CoreCLR.cs (3)
212throw new ArgumentException(SR.Argument_AggressiveGCRequiresMaxGeneration, nameof(generation)); 216throw new ArgumentException(SR.Argument_AggressiveGCRequiresBlocking, nameof(blocking)); 220throw new ArgumentException(SR.Argument_AggressiveGCRequiresCompacting, nameof(compacting));
src\System\MulticastDelegate.CoreCLR.cs (2)
218throw new ArgumentException(SR.Arg_DlgtTypeMis); 543throw new ArgumentException(SR.Arg_DlgtNullInst);
src\System\Reflection\Assembly.CoreCLR.cs (1)
32throw new ArgumentException(SR.Format_StringZeroLength, nameof(partialName));
src\System\Reflection\Emit\CustomAttributeBuilder.cs (16)
68throw new ArgumentException(SR.Arg_ArrayLengthsDiffer, "namedProperties, propertyValues"); 70throw new ArgumentException(SR.Arg_ArrayLengthsDiffer, "namedFields, fieldValues"); 75throw new ArgumentException(SR.Argument_BadConstructor); 78throw new ArgumentException(SR.Argument_BadConstructorCallConv); 93throw new ArgumentException(SR.Argument_BadParameterCountsForConstructor); 98throw new ArgumentException(SR.Argument_BadTypeInCustomAttribute); 145throw new ArgumentException(SR.Argument_BadTypeInCustomAttribute); 149throw new ArgumentException(SR.Argument_NotAWritableProperty); 167throw new ArgumentException(SR.Argument_BadPropertyForConstructorBuilder); 203throw new ArgumentException(SR.Argument_BadTypeInCustomAttribute); 221throw new ArgumentException(SR.Argument_BadFieldForConstructorBuilder); 284throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 288throw new ArgumentException(SR.Format(SR.Argument_BadParameterTypeForCAB, passedType), paramName); 434throw new ArgumentException(SR.Format(SR.Argument_InvalidTypeForCA, value.GetType())); 507throw new ArgumentException(SR.Format(SR.Argument_BadParameterTypeForCAB, ot)); 519throw new ArgumentException(SR.Format(SR.Argument_BadParameterTypeForCAB, typename));
src\System\Reflection\Emit\DynamicILGenerator.cs (15)
44throw new ArgumentException(SR.Argument_MustBeRuntimeType); 69throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(meth)); 82throw new ArgumentException(SR.Argument_InvalidOpCodeOnDynamicMethod); 117throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(con)); 143throw new ArgumentException(SR.Argument_MustBeRuntimeType); 157throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo, nameof(field)); 260throw new ArgumentException(SR.Argument_NotMethodCallOpcode, nameof(opcode)); 263throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(methodInfo)); 266throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(methodInfo)); 355throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType); 368throw new ArgumentException(SR.Argument_MustBeRuntimeType); 417throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(methodInfo)); 484throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(parameterTypes))); 487throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(parameterTypes))); 1036throw new ArgumentException(SR.Format(SR.Argument_MethodDeclaringTypeGenericLcg, m, t));
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (2)
45throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)access), nameof(access)); 190throw new ArgumentException(SR.Argument_InvalidName, nameof(name));
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
307throw new ArgumentException(SR.Argument_ShouldOnlySetVisibilityFlags, nameof(name));
src\System\Reflection\Emit\RuntimeFieldBuilder.cs (3)
24throw new ArgumentException(SR.Argument_IllegalName, nameof(fieldName)); 27throw new ArgumentException(SR.Argument_BadFieldType); 147throw new ArgumentException(SR.Argument_ConstantNull);
src\System\Reflection\Emit\RuntimeILGenerator.cs (11)
190throw new ArgumentException(SR.Argument_UnclosedExceptionBlock); 281throw new ArgumentException(SR.Argument_BadLabel); 285throw new ArgumentException(SR.Argument_BadLabelContent); 313throw new ArgumentException(SR.Argument_BadLabel); 604throw new ArgumentException(SR.Argument_NotMethodCallOpcode, nameof(opcode)); 825throw new ArgumentException(SR.Argument_UnmatchedMethodForLocal, nameof(local)); 1017throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType); 1123throw new ArgumentException(SR.Argument_InvalidLabel); 1128throw new ArgumentException(SR.Argument_RedefinedLabel); 1362throw new ArgumentException(SR.Argument_TooManyFinallyClause); 1544throw new ArgumentException(SR.Argument_UnmatchingSymScope);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (2)
67throw new ArgumentException(SR.Argument_IllegalName, nameof(name)); 93throw new ArgumentException(SR.Arg_NoStaticVirtual);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (6)
85throw new ArgumentException(SR.Argument_DuplicateTypeName); 258throw new ArgumentException(SR.Argument_InvalidConstructorInfo); 269throw new ArgumentException(SR.Argument_InvalidConstructorInfo); 787throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 817throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1144throw new ArgumentException(SR.Argument_HasToBeArrayClass);
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
38throw new ArgumentException(SR.Argument_IllegalName, nameof(name));
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (21)
221throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 230throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 240throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 249throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 286throw new ArgumentException(SR.Format(SR.Argument_ConstantNotSupported, type)); 384throw new ArgumentException(SR.Argument_IllegalName, nameof(name)); 387throw new ArgumentException(SR.Argument_TypeNameTooLong, nameof(name)); 402throw new ArgumentException(SR.Argument_BadNestedTypeFlags, nameof(attr)); 475throw new ArgumentException(SR.Argument_BadSizeForData); 510throw new ArgumentException(SR.Argument_BadTypeAttrNestedVisibilityOnNonNestedType); 518throw new ArgumentException(SR.Argument_BadTypeAttrNonNestedVisibilityNestedType); 525throw new ArgumentException(SR.Argument_BadTypeAttrInvalidLayout); 531throw new ArgumentException(SR.Argument_BadTypeAttrReservedBitsSet); 997throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 1010throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 1074throw new ArgumentException(SR.ArgumentException_BadMethodImplBody); 1126throw new ArgumentException(SR.Argument_BadPInvokeMethod); 1129throw new ArgumentException(SR.Argument_BadPInvokeOnInterface); 1145throw new ArgumentException(SR.Argument_MethodRedefined); 1435throw new ArgumentException(SR.Argument_IllegalName, nameof(name)); 1692throw new ArgumentException(SR.Argument_CannotSetParentToInterface);
src\System\Reflection\Emit\SignatureHelper.cs (19)
101throw new ArgumentException(SR.Argument_UnknownUnmanagedCallConv, nameof(unmanagedCallConv)); 196throw new ArgumentException(SR.Argument_BadFieldSig); 225throw new ArgumentException(SR.NotSupported_MustBeModuleBuilder); 285throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(optionalCustomModifiers)); 288throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(optionalCustomModifiers)); 307throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(requiredCustomModifiers)); 310throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(requiredCustomModifiers)); 487throw new ArgumentException(SR.Argument_LargeInteger); 512throw new ArgumentException(SR.Argument_LargeInteger); 723throw new ArgumentException(SR.Argument_LargeInteger); 745throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(optionalCustomModifiers)); 748throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(optionalCustomModifiers)); 751throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(optionalCustomModifiers)); 768throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(requiredCustomModifiers)); 771throw new ArgumentException(SR.Argument_ArraysInvalid, nameof(requiredCustomModifiers)); 774throw new ArgumentException(SR.Argument_GenericsInvalid, nameof(requiredCustomModifiers)); 806throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(requiredCustomModifiers), nameof(arguments))); 809throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, nameof(optionalCustomModifiers), nameof(arguments))); 823throw new ArgumentException(SR.Argument_SigIsFinalized);
src\System\Reflection\FieldInfo.CoreCLR.cs (3)
11throw new ArgumentException(SR.Argument_InvalidHandle, nameof(handle)); 17throw new ArgumentException(SR.Format( 27throw new ArgumentException(SR.Argument_InvalidHandle);
src\System\Reflection\Metadata\MetadataUpdater.cs (1)
41throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly);
src\System\Reflection\MethodBase.CoreCLR.cs (3)
18throw new ArgumentException(SR.Argument_InvalidHandle); 24throw new ArgumentException(SR.Format( 34throw new ArgumentException(SR.Argument_InvalidHandle);
src\System\Reflection\RtFieldInfo.cs (2)
93throw new ArgumentException(SR.Arg_TypedReference_Null); 111throw new ArgumentException(SR.Arg_TypedReference_Null);
src\System\Reflection\RuntimeAssembly.cs (2)
344throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 354throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\System\Reflection\RuntimeConstructorInfo.CoreCLR.cs (2)
139throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 149throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\System\Reflection\RuntimeCustomAttributeData.cs (4)
179throw new ArgumentException(SR.Argument_InvalidKindOfTypeForCA, nameof(type)); 521_ => throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, (int)encodedType), nameof(encodedType)), 541_ => throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, val.Byte8), nameof(val)) 557throw new ArgumentException(null, nameof(encodedArg));
src\System\Reflection\RuntimeEventInfo.cs (2)
99throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 109throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\System\Reflection\RuntimeFieldInfo.cs (2)
70throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 80throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (5)
182throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 192throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 385throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(delegateType)); 388throw new ArgumentException(SR.Arg_MustBeDelegate, nameof(delegateType)); 393throw new ArgumentException(SR.Arg_DlgtTargMeth);
src\System\Reflection\RuntimeModule.cs (21)
38throw new ArgumentException(SR.Argument_InvalidGenericInstArray); 41throw new ArgumentException(SR.Argument_InvalidGenericInstArray); 43throw new ArgumentException(SR.Argument_InvalidGenericInstArray); 59throw new ArgumentException(SR.Format(SR.Argument_InvalidToken, tk, this), 85throw new ArgumentException(SR.Format(SR.Argument_ResolveMethod, tk, this), 93throw new ArgumentException(SR.Format(SR.Argument_ResolveMethod, tk, this), 128throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e); 156throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this), nameof(metadataToken)); 186throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this), 194throw new ArgumentException(SR.Format(SR.Argument_ResolveField, tk, this), 217throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e); 229throw new ArgumentException(SR.Format(SR.Argument_ResolveModuleType, tk), nameof(metadataToken)); 232throw new ArgumentException(SR.Format(SR.Argument_ResolveType, tk, this), nameof(metadataToken)); 249throw new ArgumentException(SR.Argument_BadImageFormatExceptionResolve, e); 259throw new ArgumentException(SR.InvalidOperation_PropertyInfoNotAvailable); 262throw new ArgumentException(SR.InvalidOperation_EventInfoNotAvailable); 294throw new ArgumentException(SR.Format(SR.Argument_ResolveMember, tk, this), 303throw new ArgumentException( 313throw new ArgumentException( 370throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 380throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\System\Reflection\RuntimeParameterInfo.cs (2)
468throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 484throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType));
src\System\Reflection\RuntimePropertyInfo.cs (4)
147throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 157throw new ArgumentException(SR.Arg_MustBeType, nameof(attributeType)); 338throw new ArgumentException(SR.Arg_GetMethNotFnd); 361throw new ArgumentException(SR.Arg_SetMethNotFnd);
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
91return throwOnError ? throw new ArgumentException(SR.Argument_AssemblyGetTypeCannotSpecifyAssembly) : null;
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (8)
74throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized, nameof(type)); 94throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized, nameof(module)); 111throw new ArgumentException(SR.InvalidOperation_HandleIsNotInitialized, nameof(method)); 362throw new ArgumentException(SR.Arg_MustBeType, nameof(type)); 437throw new ArgumentException(SR.Arg_TypeNotSupported); 442throw new ArgumentException(SR.Arg_TypeNotSupported); 450throw new ArgumentException(SR.Arg_TypeNotSupported); 483throw new ArgumentException(SR.Arg_TypeNotSupported);
src\System\Runtime\InteropServices\ComWrappers.cs (1)
134throw new ArgumentException(null, nameof(instance));
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (10)
44throw new ArgumentException(SR.Format(SR.Argument_OffsetOfFieldNotFound, t.FullName), nameof(fieldName)); 49throw new ArgumentException(SR.Argument_MustBeRuntimeFieldInfo, nameof(fieldName)); 218throw new ArgumentException(SR.Argument_MustBeRuntimeMethodInfo, nameof(m)); 251throw new ArgumentException(SR.Argument_NeedNonGenericObject, nameof(structure)); 256throw new ArgumentException(SR.Argument_MustHaveLayoutOrBeBlittable, nameof(structure)); 281throw new ArgumentException(SR.Argument_StructMustNotBeValueClass, nameof(structure)); 286throw new ArgumentException(SR.Argument_MustHaveLayoutOrBeBlittable, nameof(structure)); 310throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(structuretype)); 313throw new ArgumentException(SR.Argument_NeedNonGenericType, nameof(structuretype)); 318throw new ArgumentException(SR.Argument_MustHaveLayoutOrBeBlittable, nameof(structuretype));
src\System\RuntimeType.ActivatorCache.cs (1)
62case ArgumentException: throw new ArgumentException(friendlyMessage);
src\System\RuntimeType.CoreCLR.cs (9)
1849throw new ArgumentException(SR.Format( 1877throw new ArgumentException(SR.Format( 1899throw new ArgumentException(SR.Format( 1961throw new ArgumentException(SR.Format( 2025throw new ArgumentException( 2725throw new ArgumentException(SR.Argument_MustBeRuntimeType, nameof(interfaceType)); 2736throw new ArgumentException(SR.Argument_ArrayGetInterfaceMap); 3550throw new ArgumentException(SR.Argument_GenericArgsCount, nameof(instantiation)); 3772throw new ArgumentException(SR.Format(SR.Acc_CreateGenericEx, this));
src\System\StubHelpers.cs (5)
167throw new ArgumentException(SR.Interop_Marshal_Unmappable_Char); 692throw new ArgumentException(SR.Argument_WrongSizeArrayInNativeStruct); 949throw new ArgumentException(SR.Arg_NDirectBadObject); 1127throw new ArgumentException(SR.Arg_MarshalAsAnyRestriction); 1156throw new ArgumentException(SR.Arg_NDirectBadObject);
src\System\Threading\Monitor.CoreCLR.cs (1)
54throw new ArgumentException(SR.Argument_MustBeFalse, "lockTaken");
src\System\Threading\Mutex.CoreCLR.Unix.cs (2)
25throw new ArgumentException(SR.Argument_WaitHandleNameTooLong, nameof(name)); 54throw new ArgumentException(SR.Argument_WaitHandleNameTooLong, nameof(name));
src\System\Threading\Thread.CoreCLR.cs (1)
77throw new ArgumentException(null, SR.Argument_InvalidHandle);
System.Private.DataContractSerialization (58)
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
272throw new ArgumentException(SR.Format(SR.JsonTypeNotSupportedByDataContractJsonSerializer, traditionalDataContract.UnderlyingType), nameof(traditionalDataContract));
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
35throw new ArgumentException(nameof(xmlWriter));
System\Runtime\Serialization\Json\XmlJsonWriter.cs (13)
511throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, _attributeText)); 661throw new ArgumentException(SR.JsonXmlProcessingInstructionNotSupported, nameof(name)); 676throw new ArgumentException(SR.JsonInvalidLocalNameEmpty, nameof(localName)); 714throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), nameof(ns)); 719throw new ArgumentException(SR.Format(SR.JsonPrefixMustBeNullOrEmpty, prefix), nameof(prefix)); 742throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, ns), nameof(ns)); 748throw new ArgumentException(SR.JsonInvalidLocalNameEmpty, nameof(localName)); 804throw new ArgumentException(SR.Format(SR.JsonUnexpectedAttributeLocalName, localName), nameof(localName)); 833throw new ArgumentException(SR.JsonInvalidLocalNameEmpty, nameof(localName)); 839throw new ArgumentException(SR.Format(SR.JsonPrefixMustBeNullOrEmpty, prefix), nameof(prefix)); 846throw new ArgumentException(SR.Format(SR.JsonNamespaceMustBeEmpty, ns), nameof(ns)); 1061throw new ArgumentException(SR.Format(SR.JsonOnlyWhitespace, ws[pos].ToString(), "WriteWhitespace"), nameof(ws)); 1432throw new ArgumentException(SR.JsonNestedArraysNotSupported, nameof(value));
System\Runtime\Serialization\SchemaImporter.cs (3)
66throw new ArgumentException(SR.Format(SR.CannotImportInvalidSchemas), ex); 75throw new ArgumentException(SR.Format(SR.CannotImportNullSchema)); 98throw new ArgumentException(SR.Format(SR.CannotImportNullDataContractName));
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
199throw new ArgumentException(SR.Format(SR.NullKnownType, "knownTypes"));
System\Runtime\Serialization\XsdDataContractExporter.cs (5)
114throw new ArgumentException(SR.Format(SR.CannotExportNullAssembly, nameof(assemblies))); 146throw new ArgumentException(SR.Format(SR.CannotExportNullType, nameof(types))); 293throw new ArgumentException(SR.CannotExportNullKnownType); 317throw new ArgumentException(SR.Format(SR.CannotExportNullAssembly, nameof(assemblies))); 355throw new ArgumentException(SR.Format(SR.CannotExportNullType, nameof(types)));
System\Text\Base64Encoding.cs (4)
154throw new ArgumentException(SR.XmlArrayTooSmall, nameof(bytes)); 226throw new ArgumentException(SR.XmlArrayTooSmall, nameof(bytes)); 273throw new ArgumentException(SR.XmlArrayTooSmall, nameof(chars)); 358throw new ArgumentException(SR.XmlArrayTooSmall, nameof(chars));
System\Text\BinHexEncoding.cs (2)
39throw new ArgumentException(SR.XmlArrayTooSmall, nameof(bytes)); 78throw new ArgumentException(SR.XmlArrayTooSmall, nameof(chars));
System\Text\SurrogateChar.cs (3)
26throw new ArgumentException(SR.Format(SR.XmlInvalidSurrogate, ch.ToString("X", CultureInfo.InvariantCulture)), nameof(ch)); 37throw new ArgumentException(SR.Format(SR.XmlInvalidLowSurrogate, ((int)lowChar).ToString("X", CultureInfo.InvariantCulture)), nameof(lowChar)); 40throw new ArgumentException(SR.Format(SR.XmlInvalidHighSurrogate, ((int)highChar).ToString("X", CultureInfo.InvariantCulture)), nameof(highChar));
System\Xml\UniqueId.cs (1)
73throw new ArgumentException(SR.Format(SR.XmlArrayTooSmallInput, guidLength), nameof(guid));
System\Xml\XmlBaseWriter.cs (23)
231throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, "xml", xmlNamespace, ns), nameof(ns)); 239throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), nameof(ns)); 253throw new ArgumentException(SR.Format(SR.XmlUndefinedPrefix, prefix), nameof(prefix)); 260throw new ArgumentException(SR.XmlEmptyNamespaceRequiresNullPrefix, nameof(prefix)); 272throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", ns)); 274throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", ns)); 334throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue)); 398throw new ArgumentException(SR.Format(SR.XmlInvalidXmlSpace, _attributeValue)); 442throw new ArgumentException(SR.XmlInvalidCommentChars, nameof(text)); 499throw new ArgumentException(SR.InvalidLocalNameEmpty, nameof(localName)); 513throw new ArgumentException(SR.Format(SR.XmlUndefinedPrefix, prefix), nameof(prefix)); 563throw new ArgumentException(SR.Format(SR.XmlUndefinedPrefix, prefix), nameof(prefix)); 819throw new ArgumentException(SR.Format(SR.XmlNamespaceNotFound, namespaceUri), nameof(namespaceUri)); 847throw new ArgumentException(SR.InvalidLocalNameEmpty, nameof(localName)); 891throw new ArgumentException(SR.XmlProcessingInstructionNotSupported, nameof(name)); 967throw new ArgumentException(SR.XmlOnlyWhitespace, nameof(whitespace)); 1106throw new ArgumentException(SR.XmlMissingLowSurrogate, nameof(ch)); 1227throw new ArgumentException(SR.XmlNestedArraysNotSupported, nameof(value)); 2150throw new ArgumentException(SR.XmlReservedPrefix, nameof(prefix)); 2163throw new ArgumentException(SR.Format(SR.XmlPrefixBoundToNamespace, prefix, nameSpace.Uri, uri), nameof(prefix)); 2167throw new ArgumentException(SR.XmlEmptyNamespaceRequiresNullPrefix, nameof(prefix)); 2169throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xmlns", uri)); 2172throw new ArgumentException(SR.Format(SR.XmlSpecificBindingNamespace, "xml", uri));
System\Xml\XmlCanonicalWriter.cs (1)
98throw new ArgumentException(SR.InvalidInclusivePrefixListCollection);
System.Private.Uri (7)
System\Uri.cs (3)
467throw new ArgumentException(SR.Format(SR.InvalidNullArgument, "RelativeUri"), nameof(serializationInfo)); 1371throw new ArgumentException(SR.Format(SR.Argument_InvalidUriSubcomponent, part), nameof(part)); 1511throw new ArgumentException(null, nameof(digit));
System\UriBuilder.cs (2)
92throw new ArgumentException(SR.Argument_ExtraNotValid, nameof(extraValue)); 127throw new ArgumentException(SR.net_uri_BadScheme, nameof(value));
System\UriExt.cs (2)
25throw new ArgumentException(SR.Format(SR.net_uri_InvalidUriKind, uriKind)); 740throw new ArgumentException(SR.Format(SR.net_uri_InvalidUriKind, uriKind));
System.Private.Xml (180)
System\Xml\Core\XmlCharCheckingWriter.cs (5)
229throw new ArgumentException(SR.Format(SR.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i))); 339throw new ArgumentException(SR.Xml_EmptyName); 344throw new ArgumentException(SR.Format(len == 0 ? SR.Xml_BadStartNameChar : SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(ncname, len))); 352throw new ArgumentException(SR.Xml_EmptyName); 360throw new ArgumentException(string.Format(res, XmlException.BuildCharExceptionArgs(name, len)));
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
175throw new ArgumentException(SR.Format(SR.Xml_InvalidWhitespaceCharacter, XmlException.BuildCharExceptionArgs(ws, i)));
System\Xml\Core\XmlEncodedRawTextWriter.cs (3)
1629throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1852throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1899throw new ArgumentException(SR.Format(SR.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
System\Xml\Core\XmlReader.cs (1)
1720throw new ArgumentException(SR.XmlBinary_NoParserContext, nameof(inputContext));
System\Xml\Core\XmlTextEncoder.cs (3)
199throw new ArgumentException(SR.Xml_SurrogatePairSplit); 420throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 459throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar);
System\Xml\Core\XmlTextReaderImpl.cs (1)
8155throw new ArgumentException((_incReadDecoder is IncrementalReadCharsDecoder) ? nameof(count) : "len");
System\Xml\Core\XmlTextWriter.cs (22)
390throw new ArgumentException(SR.Xml_InvalidQuote); 422throw new ArgumentException(SR.Xml_ClosedOrError); 426throw new ArgumentException(SR.Xml_NoRoot); 500throw new ArgumentException(SR.Xml_UndefPrefix); 544throw new ArgumentException(SR.Xml_NoNamespaces); 610throw new ArgumentException(SR.Xml_XmlnsBelongsToReservedNs); 631throw new ArgumentException(SR.Xml_XmlnsBelongsToReservedNs); 644throw new ArgumentException(SR.Xml_UndefPrefix); 684throw new ArgumentException(SR.Xml_NoNamespaces); 738throw new ArgumentException(SR.Xml_InvalidCDataChars); 764throw new ArgumentException(SR.Xml_InvalidCommentChars); 788throw new ArgumentException(SR.Xml_InvalidPiChars); 793throw new ArgumentException(SR.Xml_DupXmlDecl); 849throw new ArgumentException(SR.Xml_NonWhitespace); 1068throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1084throw new ArgumentException(SR.Xml_NoNamespaces); 1153throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1463throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 1491throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 1738throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name)); 1760throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 1777throw new ArgumentException(SR.Xml_InvalidPrefix);
System\Xml\Core\XmlUtf8RawTextWriter.cs (3)
1456throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1714throw new ArgumentException(SR.Format(SR.Xml_IndentCharsNotWhitespace, propertyName)); 1761throw new ArgumentException(SR.Format(SR.Xml_InvalidCharsInIndent, new string[] { propertyName, error }));
System\Xml\Core\XmlValidatingReaderImpl.cs (2)
141throw new ArgumentException(SR.Arg_ExpectingXmlTextReader, nameof(reader)); 221throw new ArgumentException(SR.Arg_ExpectingXmlTextReader, nameof(reader));
System\Xml\Core\XmlWellFormedWriter.cs (23)
345throw new ArgumentException(SR.Xml_NoRoot); 393throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), nameof(pubid)); 400throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), nameof(sysid)); 407throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), nameof(subset)); 448throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 613throw new ArgumentException(SR.Xml_EmptyLocalName); 648throw new ArgumentException(SR.Xml_XmlnsPrefix); 671throw new ArgumentException(SR.Xml_XmlnsPrefix); 681throw new ArgumentException(SR.Xml_XmlPrefix); 778throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 782throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 825throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 900throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl); 960throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 1013throw new ArgumentException(SR.Xml_NonWhitespace); 1294throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns)); 1616throw new ArgumentException(SR.Xml_XmlPrefix); 1626throw new ArgumentException(SR.Xml_XmlnsPrefix); 1643throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix)); 1727throw new ArgumentException(SR.Format(SR.Xml_NamespaceDeclXmlXmlns, prefix)); 1735throw new ArgumentException(SR.Xml_XmlPrefix); 1740throw new ArgumentException(SR.Xml_XmlnsPrefix); 2067return new ArgumentException(SR.Format(SR.Xml_InvalidNameCharsDetail, args));
System\Xml\Core\XmlWellFormedWriterAsync.cs (16)
45throw new ArgumentException(SR.Xml_NoRoot); 94throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(pubid, i)), nameof(pubid)); 101throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(sysid, i)), nameof(sysid)); 108throw new ArgumentException(SR.Format(SR.Xml_InvalidCharacter, XmlException.BuildCharExceptionArgs(subset, i)), nameof(subset)); 221throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 453throw new ArgumentException(SR.Xml_EmptyLocalName); 506throw new ArgumentException(SR.Xml_XmlnsPrefix); 529throw new ArgumentException(SR.Xml_XmlnsPrefix); 539throw new ArgumentException(SR.Xml_XmlPrefix); 683throw new ArgumentException(SR.Xml_PrefixForEmptyNs); 687throw new ArgumentException(SR.Xml_CanNotBindToReservedNamespace); 729throw new ArgumentException(SR.Format(SR.Xml_InvalidXmlSpace, value)); 801throw new ArgumentException(_conformanceLevel == ConformanceLevel.Document ? SR.Xml_DupXmlDecl : SR.Xml_CannotWriteXmlDecl); 861throw new ArgumentException(SR.Xml_InvalidSurrogateMissingLowChar); 915throw new ArgumentException(SR.Xml_NonWhitespace); 1145throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriter.cs (1)
234throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Core\XmlWriterAsync.cs (1)
220throw new ArgumentException(SR.Format(SR.Xml_UndefNamespace, ns));
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1257throw new ArgumentException(SR.Format(SR.XPathDocument_SchemaSetNotAllowed, null));
System\Xml\Dom\XmlAttribute.cs (1)
30throw new ArgumentException(SR.Xdom_Attr_Name);
System\Xml\Dom\XmlAttributeCollection.cs (7)
121throw new ArgumentException(SR.Xdom_AttrCol_Object); 140throw new ArgumentException(SR.Xdom_NamedNode_Context); 159throw new ArgumentException(SR.Xdom_NamedNode_Context); 185throw new ArgumentException(SR.Xdom_AttrCol_Insert); 188throw new ArgumentException(SR.Xdom_NamedNode_Context); 214throw new ArgumentException(SR.Xdom_AttrCol_Insert); 217throw new ArgumentException(SR.Xdom_NamedNode_Context);
System\Xml\Dom\XmlDeclaration.cs (4)
24throw new ArgumentException(SR.Xdom_Version); 27throw new ArgumentException(SR.Format(SR.Xdom_standalone, standalone)); 65throw new ArgumentException(SR.Format(SR.Xdom_standalone, value)); 116throw new ArgumentException(SR.Xdom_Version);
System\Xml\Dom\XmlDocument.cs (4)
246throw new ArgumentException(SR.Format(SR.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 1161throw new ArgumentException(SR.Format(SR.Arg_CannotCreateNode, type)); 1256throw new ArgumentException(SR.Format(SR.Xdom_Invalid_NT_String, nodeTypeString)); 1496throw new ArgumentException(SR.Format(SR.XmlDocument_NodeNotFromDocument, nameof(nodeToValidate)));
System\Xml\Dom\XmlDocumentFragment.cs (1)
51throw new ArgumentException(SR.Xdom_Node_Null_Doc);
System\Xml\Dom\XmlElement.cs (1)
31throw new ArgumentException(SR.Xdom_Empty_LocalName);
System\Xml\Dom\XmlEntityReference.cs (1)
41throw new ArgumentException(SR.Xdom_InvalidCharacter_EntityReference);
System\Xml\Dom\XmlLoader.cs (4)
37throw new ArgumentException(SR.Xdom_Load_NoDocument); 39throw new ArgumentException(SR.Xdom_Load_NoReader); 75throw new ArgumentException(SR.Xdom_Load_NoDocument); 77throw new ArgumentException(SR.Xdom_Load_NoReader);
System\Xml\Dom\XmlNode.cs (10)
30throw new ArgumentException(SR.Xdom_Node_Null_Doc); 251throw new ArgumentException(SR.Xdom_Node_Insert_Child); 260throw new ArgumentException(SR.Xdom_Node_Insert_Path); 268throw new ArgumentException(SR.Xdom_Node_Insert_Context); 365throw new ArgumentException(SR.Xdom_Node_Insert_Child); 374throw new ArgumentException(SR.Xdom_Node_Insert_Path); 382throw new ArgumentException(SR.Xdom_Node_Insert_Context); 494throw new ArgumentException(SR.Xdom_Node_Remove_Child); 587throw new ArgumentException(SR.Xdom_Node_Insert_Child); 593throw new ArgumentException(SR.Xdom_Node_Insert_Context);
System\Xml\Dom\XmlSignificantWhiteSpace.cs (2)
15throw new ArgumentException(SR.Xdom_WS_Char); 88throw new ArgumentException(SR.Xdom_WS_Char);
System\Xml\Dom\XmlWhitespace.cs (2)
16throw new ArgumentException(SR.Xdom_WS_Char); 81throw new ArgumentException(SR.Xdom_WS_Char);
System\Xml\Schema\XmlSchemaSet.cs (1)
586throw new ArgumentException(SR.Sch_SchemaDoesNotExist, nameof(schema));
System\Xml\Schema\XmlSchemaValidator.cs (1)
382throw new ArgumentException(SR.Sch_InvalidPartialValidationType);
System\Xml\Serialization\CodeIdentifier.cs (3)
111if (!IsValid(c)) throw new ArgumentException(SR.Format(SR.XmlInternalErrorDetails, "Invalid identifier character " + ((short)c).ToString(CultureInfo.InvariantCulture)), nameof(c)); 162throw new ArgumentException(SR.Format(SR.XmlInternalErrorDetails, "Unhandled category " + uc), nameof(c)); 173throw new ArgumentException(SR.Format(SR.XmlInvalidIdentifier, ident), nameof(ident));
System\Xml\Serialization\CodeIdentifiers.cs (1)
26throw new ArgumentException(null, nameof(obj));
System\Xml\Serialization\Mappings.cs (1)
120throw new ArgumentException(SR.Format(SR.Xml_InvalidNameChars, name), nameof(name));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
75throw new ArgumentException(SR.Format(SR.XmlInternalError, "xmlMapping")); 87throw new ArgumentException(SR.Format(SR.XmlInternalError, "xmlMapping"));
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
24throw new ArgumentException(SR.Format(SR.XmlInternalError, nameof(xmlMapping))); 33throw new ArgumentException(SR.Format(SR.XmlInternalError, nameof(xmlMapping)));
System\Xml\Serialization\XmlAnyElementAttribute.cs (1)
78throw new ArgumentException(SR.XmlDisallowNegativeValues, "Order");
System\Xml\Serialization\XmlArrayAttribute.cs (1)
83throw new ArgumentException(SR.XmlDisallowNegativeValues, "Order");
System\Xml\Serialization\XmlElementAttribute.cs (1)
136throw new ArgumentException(SR.XmlDisallowNegativeValues, "Order");
System\Xml\Serialization\XmlReflectionImporter.cs (4)
290throw new ArgumentException(SR.XmlInternalError, nameof(mapping)); 481throw new ArgumentException(SR.Format(SR.XmlGetSchemaMethodName, provider.MethodName), nameof(provider.MethodName)); 604_ => throw new ArgumentException(SR.XmlInternalError, nameof(context)), 1136throw new ArgumentException(SR.XmlInternalError, nameof(context));
System\Xml\Serialization\XmlSchemaExporter.cs (3)
364throw new ArgumentException(SR.XmlInternalError, nameof(mapping)); 395throw new ArgumentException(SR.XmlInternalError, nameof(mapping)); 537throw new ArgumentException(SR.XmlInternalError, nameof(mapping));
System\Xml\Serialization\XmlSchemaImporter.cs (1)
455throw new ArgumentException(SR.XmlInternalError, nameof(desiredMappingType));
System\Xml\Serialization\XmlSerializationReader.cs (11)
972throw new ArgumentException(SR.Format(SR.XmlEmptyArrayType, CurrentTag()), nameof(value)); 985throw new ArgumentException(SR.XmlInvalidArraySyntax, nameof(value)); 993throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value)); 998throw new ArgumentException(SR.XmlMismatchedArrayBrackets, nameof(value)); 1006throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, new string(lengthStringSpan)), nameof(value)); 1020throw new ArgumentException(SR.XmlMismatchedArrayBrackets, nameof(value)); 1022throw new ArgumentException(SR.Format(SR.XmlInvalidArrayDimentions, CurrentTag()), nameof(value)); 1024throw new ArgumentException(SR.XmlInvalidArraySyntax, nameof(value)); 1074throw new ArgumentException(SR.Format(SR.XmlInvalidArrayLength, dimensions[i]), "value"); 2321throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping)); 2327throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping));
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
271throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping)); 277throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping));
System\Xml\Serialization\XmlSerializationWriter.cs (2)
2317throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping)); 2323throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
80throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping)); 86throw new ArgumentException(SR.XmlInternalError, nameof(xmlMapping));
System\Xml\Serialization\XmlSerializer.cs (1)
665throw new ArgumentException(SR.Format(SR.XmlPregenOrphanType, type.FullName, nameOrLocation), nameof(types));
System\Xml\ValidateNames.cs (1)
609throw new ArgumentException(SR.Format(SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(':', '\0')), nameof(name));
System\Xml\XmlConvert.cs (6)
722throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption))); 1233throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption))); 1534return new ArgumentException(res); 1551return new ArgumentException(string.Format(res, arg)); 1568return new ArgumentException(string.Format(res, args)); 1784throw new ArgumentException(SR.Format(SR.Sch_InvalidDateTimeOption, dateTimeOption, nameof(dateTimeOption)));
System\Xml\XmlEncoding.cs (5)
32throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, -1), (string?)null); 524throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null); 565throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null); 607throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null); 649throw new ArgumentException(SR.Format(SR.Enc_InvalidByteInEncoding, new object[1] { i }), (string?)null);
System\Xml\XmlNamespacemanager.cs (2)
133throw new ArgumentException(SR.Xml_XmlPrefix); 137throw new ArgumentException(SR.Xml_XmlnsPrefix);
System\Xml\XPath\XPathNavigator.cs (1)
2031throw new ArgumentException(SR.Xml_InvalidOperation, nameof(reader));
System\Xml\Xsl\ListBase.cs (3)
137throw new ArgumentException(SR.Arg_IncompatibleParamType, nameof(value)); 146throw new ArgumentException(SR.Arg_IncompatibleParamType, nameof(value)); 176throw new ArgumentException(SR.Arg_IncompatibleParamType, nameof(value));
System\Xml\Xslt\XslCompiledTransform.cs (2)
192throw new ArgumentException(SR.Format(SR.Xslt_IncompatibleCompiledStylesheetVersion, generatedCodeAttr.Version, s_version), nameof(compiledStylesheet)); 219throw new ArgumentException(SR.Format(SR.Xslt_NotCompiledStylesheet, compiledStylesheet.FullName), nameof(compiledStylesheet));
System.Private.Xml.Linq (26)
System\Xml\Linq\XAttribute.cs (7)
710throw new ArgumentException(SR.Format(SR.Argument_NamespaceDeclarationPrefixed, name.LocalName)); 716if (name.LocalName != "xml") throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 722throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns); 731throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 736throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns); 746throw new ArgumentException(SR.Argument_NamespaceDeclarationXml); 752throw new ArgumentException(SR.Argument_NamespaceDeclarationXmlns);
System\Xml\Linq\XContainer.cs (2)
823XObject => throw new ArgumentException(SR.Argument_XObjectValue), 827if (s == null) throw new ArgumentException(SR.Argument_ConvertToString);
System\Xml\Linq\XDocument.cs (5)
857throw new ArgumentException(SR.Argument_AddAttribute); 862throw new ArgumentException(SR.Argument_AddAttribute); 910throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.CDATA)); 912throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document)); 940throw new ArgumentException(SR.Argument_AddNonWhitespace);
System\Xml\Linq\XElement.cs (2)
2125if (node is XDocument) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.Document)); 2126if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_AddNode, XmlNodeType.DocumentType));
System\Xml\Linq\XLinq.cs (1)
110if (content is XAttribute) throw new ArgumentException(SR.Argument_AddAttribute);
System\Xml\Linq\XName.cs (1)
78if (i <= 1 || i == expandedName.Length - 1) throw new ArgumentException(SR.Format(SR.Argument_InvalidExpandedName, expandedName));
System\Xml\Linq\XNodeDocumentOrderComparer.cs (2)
55if (n1 == null && x != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(x)); 57if (n2 == null && y != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(y));
System\Xml\Linq\XNodeEqualityComparer.cs (3)
79if (n1 == null && x != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(x)); 81if (n2 == null && y != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(y)); 98if (n == null && obj != null) throw new ArgumentException(SR.Format(SR.Argument_MustBeDerivedFrom, typeof(XNode)), nameof(obj));
System\Xml\Linq\XProcessingInstruction.cs (1)
162if (string.Equals(name, "xml", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException(SR.Format(SR.Argument_InvalidPIName, name));
System\Xml\XPath\XNodeNavigator.cs (2)
927if (node is XDocumentType) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.DocumentType)); 931if (text.GetParent() is XDocument) throw new ArgumentException(SR.Format(SR.Argument_CreateNavigator, XmlNodeType.Whitespace));
System.Reflection.Context (7)
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (3)
24throw new ArgumentException("", nameof(name)); 107throw new ArgumentException(SR.Argument_GetMethNotFnd); 116throw new ArgumentException(SR.Argument_GetMethNotFnd);
System\Reflection\Context\Virtual\VirtualPropertyInfo.cs (2)
29throw new ArgumentException(SR.ArgumentNull_GetterOrSetterMustBeSpecified); 33throw new ArgumentException(SR.Argument_PropertyTypeFromDifferentContext);
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertyGetter.cs (1)
35throw new ArgumentException();
System\Reflection\Context\Virtual\VirtualPropertyInfo.PropertySetter.cs (1)
50throw new ArgumentException(SR.Format(SR.Argument_ObjectArgumentMismatch, value.GetType(), ReturnType));
System.Reflection.DispatchProxy (5)
System\Reflection\DispatchProxy.cs (1)
65throw new ArgumentException(SR.Format(SR.ProxyType_Must_Be_Derived_From_DispatchProxy, proxyType.Name), nameof(proxyType));
System\Reflection\DispatchProxyGenerator.cs (4)
181throw new ArgumentException(SR.Format(SR.InterfaceType_Must_Be_Interface, interfaceType.FullName), interfaceParameter); 187throw new ArgumentException(SR.Format(SR.BaseType_Cannot_Be_Sealed, baseType.FullName), proxyParameter); 193throw new ArgumentException(SR.Format(SR.BaseType_Cannot_Be_Abstract, baseType.FullName), proxyParameter); 199throw new ArgumentException(SR.Format(SR.BaseType_Must_Have_Default_Ctor, baseType.FullName), proxyParameter);
System.Reflection.Emit (48)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (5)
76throw new ArgumentException(SR.Argument_BadSigFormat); 137throw new ArgumentException(SR.Argument_BadSigFormat); 167throw new ArgumentException(SR.Argument_BadSigFormat); 185throw new ArgumentException(SR.Argument_BadSigFormat); 301throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\Emit\CustomAttributeWrapper.cs (4)
44throw new ArgumentException(SR.Format(SR.Argument_InvalidCustomAttributeLength, ctor.DeclaringType, binaryAttribute.Length), nameof(binaryAttribute)); 48throw new ArgumentException(SR.Format(SR.Argument_InvalidProlog, ctor.DeclaringType), nameof(binaryAttribute)); 88throw new ArgumentException(SR.Format(SR.Argument_UnknownNamedType, ctor.DeclaringType, namedType), nameof(binaryAttribute)); 174_ => throw new ArgumentException(SR.Argument_InvalidTypeCodeForTypeArgument, "binaryAttribute"),
System\Reflection\Emit\EnumBuilderImpl.cs (1)
17throw new ArgumentException(SR.Argument_ShouldOnlySetVisibilityFlags, nameof(name));
System\Reflection\Emit\FieldBuilderImpl.cs (5)
55throw new ArgumentException(SR.Argument_ConstantNull); 83throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 92throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 101throw new ArgumentException(SR.Argument_ConstantDoesntMatch); 109throw new ArgumentException(SR.Argument_ConstantDoesntMatch);
System\Reflection\Emit\ILGeneratorImpl.cs (9)
72throw new ArgumentException(SR.Argument_ShouldNotSpecifyExceptionType); 400throw new ArgumentException(SR.Argument_NotMethodCallOpcode, nameof(opcode)); 491throw new ArgumentException(SR.Argument_InvalidLabel); 501throw new ArgumentException(SR.Argument_MustBeSwitchOpCode, nameof(opcode)); 521throw new ArgumentException(SR.Argument_UnmatchedMethodForLocal, nameof(local)); 600throw new ArgumentException(SR.Argument_NotMethodCallOpcode, nameof(opcode)); 761throw new ArgumentException(SR.Argument_RedefinedLabel); 794throw new ArgumentException(SR.Argument_InvalidLabel); 814throw new ArgumentException(SR.InvalidOperation_InvalidDocument, nameof(document));
System\Reflection\Emit\MethodBuilderImpl.cs (1)
55throw new ArgumentException(SR.Argument_NoStaticVirtual);
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
1243throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1272throw new ArgumentException(SR.Argument_GlobalMembersMustBeStatic); 1306throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\Emit\PseudoCustomAttributesData.cs (8)
34throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty); 100throw new ArgumentException(SR.Argument_DllNameCannotBeEmpty); 346throw new ArgumentException(SR.Argument_InvalidArgumentForAttribute, nameof(con)); 372throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType, paramNames[i], "ByValTStr"), "binaryAttribute"); 380throw new ArgumentException(SR.Argument_SizeConstMustBeSpecified, "binaryAttribute"); 406throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType, paramNames[i], "SafeArray"), "binaryAttribute"); 422throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType, elementType, "SafeArray"), "binaryAttribute"); 459throw new ArgumentException(SR.Format(SR.Argument_InvalidParameterForUnmanagedType,
System\Reflection\Emit\TypeBuilderImpl.cs (12)
293throw new ArgumentException(SR.Argument_BadSizeForData, nameof(data.Length)); 321throw new ArgumentException(SR.ArgumentException_BadMethodImplBody); 330throw new ArgumentException(SR.Format(SR.Argument_MethodOverriden, methodInfoBody.Name, FullName), nameof(methodInfoDeclaration)); 371new ArgumentException(SR.Format(SR.Argument_InvalidMethodOverride, FullName, methodName), "methodInfoBody"); 386throw new ArgumentException(SR.Argument_BadPInvokeMethod); 391throw new ArgumentException(SR.Argument_BadPInvokeOnInterface); 403throw new ArgumentException(SR.Argument_MethodRedefined); 433throw new ArgumentException(SR.Argument_BadSizeForData, nameof(size)); 552throw new ArgumentException(SR.Format(SR.Argument_UnknownNamedType, con.DeclaringType, name), nameof(binaryAttribute)); 567throw new ArgumentException(SR.Argument_CannotSetParentToInterface); 979throw new ArgumentException(SR.Argument_MustBeInterface, nameof(interfaceType)); 984throw new ArgumentException(SR.Argument_InterfaceNotFound, nameof(interfaceType));
System.Reflection.Metadata (39)
src\libraries\Common\src\System\Reflection\AssemblyNameFormatter.cs (1)
63throw new ArgumentException();
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
124throw new ArgumentException(SR.StreamTooLarge, streamParameterName);
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
181: throw new ArgumentException(SR.InvalidAssemblyName, nameof(assemblyName));
System\Reflection\Metadata\BlobContentId.cs (2)
51throw new ArgumentException(SR.Format(SR.UnexpectedArrayLength, Size), nameof(id)); 90throw new ArgumentException(SR.Format(SR.HashTooShort, minHashSize), nameof(hashCode));
System\Reflection\Metadata\BlobWriterImpl.cs (2)
216throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, type)); 289throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, type));
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (1)
1096throw new ArgumentException(SR.InvalidSignature, nameof(attributes));
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (1)
26throw new ArgumentException(SR.BuilderMustAligned, nameof(builder));
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (7)
63throw new ArgumentException(SR.BaseReaderMustBeFullMetadataReader, nameof(baseReader)); 73throw new ArgumentException(SR.Format(SR.ExpectedListOfSize, MetadataTokens.TableCount), nameof(baseTableRowCounts)); 83throw new ArgumentException(SR.Format(SR.ExpectedListOfSize, MetadataTokens.HeapCount), nameof(baseTableRowCounts)); 89throw new ArgumentException(SR.ExpectedNonEmptyList, nameof(deltaReaders)); 96throw new ArgumentException(SR.ReadersMustBeDeltaReaders, nameof(deltaReaders)); 287throw new ArgumentException(SR.HandleBelongsToFutureGeneration, nameof(handle)); 320throw new ArgumentException(SR.HandleBelongsToFutureGeneration, nameof(handle));
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
109throw new ArgumentException(SR.Format(SR.ValueMustBeMultiple, BlobUtilities.SizeOfGuid), nameof(guidHeapStartOffset));
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (2)
78throw new ArgumentException(SR.Format(SR.ExpectedArrayOfSize, MetadataTokens.TableCount), nameof(typeSystemRowCounts)); 95throw new ArgumentException(SR.Format(SR.RowCountMustBeZero, i), nameof(typeSystemRowCounts));
System\Reflection\Metadata\IL\ILOpCodeExtensions.cs (3)
92throw new ArgumentException(SR.Format(SR.UnexpectedOpCode, opCode), nameof(opCode)); 164throw new ArgumentException(SR.Format(SR.UnexpectedOpCode, opCode), nameof(opCode)); 236throw new ArgumentException(SR.Format(SR.UnexpectedOpCode, opCode), nameof(opCode));
System\Reflection\Metadata\Internal\MetadataWriterUtilities.cs (1)
89throw new ArgumentException(SR.Format(SR.InvalidConstantValueOfType, value.GetType()), nameof(value));
System\Reflection\Metadata\MetadataReaderProvider.cs (1)
172throw new ArgumentException(SR.StreamMustSupportReadAndSeek, nameof(stream));
System\Reflection\Metadata\TypeNameParserHelpers.cs (1)
334throw new ArgumentException(SR.Argument_InvalidTypeName, $"typeName@{errorIndex}");
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (1)
118_ => throw new ArgumentException(SR.Format(SR.UnknownSectionName, name), nameof(name)),
System\Reflection\PortableExecutable\PEHeaders.cs (1)
82throw new ArgumentException(SR.StreamMustSupportReadAndSeek, nameof(peStream));
System\Reflection\PortableExecutable\PEReader.cs (2)
164throw new ArgumentException(SR.StreamMustSupportReadAndSeek, nameof(peStream)); 733throw new ArgumentException(e.Message, nameof(peImagePath), e);
System\Reflection\Throw.cs (10)
23throw new ArgumentException(message, parameterName); 29throw new ArgumentException(SR.CantGetOffsetForVirtualHeapHandle, "handle"); 35throw new ArgumentException(SR.Format(SR.UnexpectedHandleKind, kind)); 41throw new ArgumentException(SR.InvalidHandle, parameterName); 77throw new ArgumentException(SR.LabelDoesntBelongToBuilder, parameterName); 83throw new ArgumentException(SR.NotMetadataHeapHandle, "handle"); 89throw new ArgumentException(SR.NotMetadataTableOrUserStringHandle, "handle"); 95throw new ArgumentException(SR.InvalidToken, "token"); 107throw new ArgumentException(SR.ExpectedNonEmptyString, parameterName); 113throw new ArgumentException(SR.ExpectedNonEmptyArray, parameterName);
System.Reflection.MetadataLoadContext (28)
System\Reflection\DefaultBinder.cs (3)
57throw new ArgumentException(SR.Arg_MustBeType, nameof(types)); 63throw new ArgumentException(SR.Arg_EmptyArray, nameof(match)); 161throw new ArgumentException(SR.Arg_EmptyArray, nameof(match));
System\Reflection\PathAssemblyResolver.cs (2)
40throw new ArgumentException(SR.Format(SR.Arg_InvalidPath, path), nameof(assemblyPaths)); 44throw new ArgumentException(SR.Format(SR.Arg_InvalidPath, path), nameof(assemblyPaths));
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.ManifestResources.cs (2)
20throw new ArgumentException(null, nameof(resourceName)); 67throw new ArgumentException(null, nameof(name));
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
216public sealed override object CreateInstance(string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder? binder, object?[]? args, CultureInfo? culture, object?[]? activationAttributes) => throw new ArgumentException(SR.Arg_ReflectionOnlyInvoke);
System\Reflection\TypeLoading\Assemblies\RoAssembly.Modules.cs (1)
108throw new ArgumentException(SR.Format(SR.SpecifiedFileNameInvalid, moduleName)); // Name not in manifest.
System\Reflection\TypeLoading\General\HashHelpers.cs (1)
50throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Reflection\TypeLoading\General\Helpers.cs (1)
359throw new ArgumentException();
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (2)
118throw new ArgumentException(SR.Format(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument)); 124throw new ArgumentException(SR.Argument_GenericArgsCount, nameof(typeArguments));
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (3)
107throw new ArgumentException(SR.Arg_MustBeEnum); 118throw new ArgumentException(SR.Argument_InvalidEnum); 123throw new ArgumentException(SR.Argument_InvalidEnum);
System\Reflection\TypeLoading\Types\RoByRefType.cs (1)
26public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
132public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (3)
100throw new ArgumentException(SR.Argument_GenericArgsCount, nameof(typeArguments)); 116throw new ArgumentException(SR.Format(SR.MakeGenericType_NotLoadedByMetadataLoadContext, typeArgument)); 224public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
170public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 196protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoGenericParameterType.cs (2)
42public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass); 64protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoHasElementType.cs (1)
77protected internal sealed override RoType ComputeEnumUnderlyingType() => throw new ArgumentException(SR.Arg_MustBeEnum);
System\Reflection\TypeLoading\Types\RoPointerType.cs (1)
26public sealed override int GetArrayRank() => throw new ArgumentException(SR.Argument_HasToBeArrayClass);
System\Reflection\TypeLoading\Types\RoType.cs (1)
340throw new ArgumentException(SR.Arg_MustBeEnum, "enumType");
System.Resources.Extensions (11)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (4)
75throw new ArgumentException(SR.Argument_StreamNotWritable); 164throw new ArgumentException(SR.NotSupported_UnseekableStream); 606throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 616throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (3)
132throw new ArgumentException(SR.Argument_StreamNotReadable); 810throw new ArgumentException(SR.Resources_StreamNotValid); 848throw new ArgumentException(SR.Format(SR.Arg_ResourceFileUnsupportedVersion, CurrentVersion, version));
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (1)
200_defaultReader = reader as DeserializingResourceReader ?? throw new ArgumentException(SR.Format(SR.NotSupported_WrongResourceReader_Type, reader.GetType()), nameof(reader));
System\Resources\Extensions\PreserializedResourceWriter.cs (3)
205throw new ArgumentException(SR.NotSupported_UnseekableStream); 261throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 286throw new ArgumentException(nameof(ResourceDataRecord.Format));
System.Resources.Writer (4)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (4)
75throw new ArgumentException(SR.Argument_StreamNotWritable); 164throw new ArgumentException(SR.NotSupported_UnseekableStream); 606throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength); 616throw new ArgumentException(SR.ArgumentOutOfRange_StreamLength);
System.Runtime.Caching (19)
System\Runtime\Caching\Configuration\ConfigUtil.cs (5)
37throw new ArgumentException(RH.Format(SR.Value_must_be_non_negative_integer, valueName, sValue), nameof(config)); 40throw new ArgumentException(RH.Format(SR.Value_must_be_positive_integer, valueName, sValue), nameof(config)); 45throw new ArgumentException(RH.Format(SR.Value_too_big, 71throw new ArgumentException(RH.Format(SR.TimeSpan_invalid_format, valueName, sValue), nameof(config)); 91throw new ArgumentException(RH.Format(SR.Value_must_be_boolean, valueName, sValue), nameof(config));
System\Runtime\Caching\FileChangeNotificationSystem.cs (1)
161throw new ArgumentException(SR.Invalid_state, nameof(state));
System\Runtime\Caching\HostFileChangeMonitor.cs (2)
169throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(filePaths))); 186throw new ArgumentException(RH.Format(SR.Collection_contains_null_or_empty_string, nameof(filePaths)));
System\Runtime\Caching\MemoryCache.cs (11)
256throw new ArgumentException(SR.Invalid_expiration_combination, nameof(policy)); 265throw new ArgumentException(SR.Invalid_callback_combination, nameof(policy)); 354throw new ArgumentException(SR.Empty_string_invalid, nameof(name)); 358throw new ArgumentException(SR.Default_is_reserved, nameof(name)); 375throw new ArgumentException(SR.Empty_string_invalid, nameof(name)); 379throw new ArgumentException(SR.Default_is_reserved, nameof(name)); 415throw new ArgumentException(SR.Update_callback_must_be_null, nameof(policy)); 456throw new ArgumentException(RH.Format(SR.Empty_collection, nameof(keys))); 463throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys))); 738throw new ArgumentException(SR.Invalid_argument_combination); 863throw new ArgumentException(RH.Format(SR.Collection_contains_null_element, nameof(keys)));
System.Runtime.InteropServices (4)
System\Runtime\InteropServices\HandleCollector.cs (1)
35throw new ArgumentException(SR.Arg_InvalidThreshold, nameof(initialThreshold));
System\Runtime\InteropServices\Marshalling\ComVariantMarshaller.cs (3)
79throw new ArgumentException(SR.ComVariantMarshaller_ManagedTypeNotSupported, nameof(managed)); 192throw new ArgumentException(SR.ComVariantMarshaller_UnmanagedTypeNotSupported, nameof(unmanaged)); 313throw new ArgumentException("Invalid combination of unmanaged variant type and managed object type.", nameof(_managed));
System.Runtime.Numerics (6)
System\Number.BigInteger.cs (2)
43e = new ArgumentException(SR.Argument_InvalidNumberStyles, nameof(style)); 50e = new ArgumentException(SR.Argument_InvalidHexStyle, nameof(style));
System\Numerics\BigInteger.cs (2)
1199throw new ArgumentException(SR.Argument_MustBeBigInt, nameof(obj)); 3900throw new ArgumentException(SR.Format(SR.Argument_MinMaxValue, min, max));
System\Numerics\Complex.cs (2)
2187throw new ArgumentException(SR.Argument_InvalidNumberStyles, nameof(style)); 2190throw new ArgumentException(SR.Arg_HexStyleNotSupported);
System.Runtime.Serialization.Formatters (11)
src\libraries\System.Private.CoreLib\src\System\Collections\HashHelpers.cs (1)
58throw new ArgumentException(SR.Arg_HTCapacityOverflow);
System\Runtime\Serialization\FormatterServices.cs (2)
213throw new ArgumentException(SR.Argument_InvalidFieldInfo); 224throw new ArgumentException(SR.Argument_DataLengthDifferent);
System\Runtime\Serialization\ObjectManager.cs (1)
779throw new ArgumentException(SR.Serialization_NotISer);
System\Runtime\Serialization\SurrogateSelector.cs (4)
67throw new ArgumentException(SR.Serialization_SurrogateCycleInArgument, nameof(selector)); 81throw new ArgumentException(SR.Serialization_SurrogateCycle, nameof(selector)); 103throw new ArgumentException(SR.Serialization_SurrogateCycle, nameof(selector)); 127throw new ArgumentException(SR.Serialization_SurrogateCycle, nameof(selector));
System\Runtime\Serialization\ValueTypeFixupInfo.cs (3)
37throw new ArgumentException(SR.Argument_MustSupplyParent); 53throw new ArgumentException(SR.Argument_MemberAndArray); 58throw new ArgumentException(SR.Argument_MustSupplyContainer);
System.Security.Cryptography (308)
src\libraries\Common\src\System\Security\Cryptography\DSAOpenSsl.cs (4)
102throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MissingFields); 107throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedPJ); 113throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedPGY); 116throw new ArgumentException(SR.Cryptography_InvalidDsaParameters_MismatchedQX);
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (1)
121throw new ArgumentException(SR.Cryptography_ArgECDHKeySizeMismatch, nameof(otherPartyPublicKey));
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSslPublicKey.cs (1)
18throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(pkeyHandle));
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (1)
556throw new ArgumentException(SR.Argument_EmptyString, nameof(hashAlgorithm));
System\Security\Cryptography\AesCcm.cs (3)
84throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch); 87throw new ArgumentException(SR.Cryptography_InvalidNonceLength, nameof(nonce)); 90throw new ArgumentException(SR.Cryptography_InvalidTagLength, nameof(tag));
System\Security\Cryptography\AesGcm.cs (5)
61throw new ArgumentException(SR.Cryptography_InvalidTagLength, nameof(tagSizeInBytes)); 152throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch); 155throw new ArgumentException(SR.Cryptography_InvalidNonceLength, nameof(nonce)); 164throw new ArgumentException(SR.Format(SR.Cryptography_IncorrectTagLength, tagSizeInBytes), nameof(tag)); 169throw new ArgumentException(SR.Cryptography_InvalidTagLength, nameof(tag));
System\Security\Cryptography\AesImplementation.cs (2)
189throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey)); 195throw new ArgumentException(SR.Cryptography_InvalidIVSize, nameof(rgbIV));
System\Security\Cryptography\AsnEncodedDataCollection.cs (2)
71throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 75throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\Base64Transforms.cs (1)
388public static void ThrowInvalidOffLen() => throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\CapiHelper.Unix.cs (3)
18_ => throw new ArgumentException(SR.Argument_InvalidValue), 48_ => throw new ArgumentException(SR.Argument_InvalidValue), 80throw new ArgumentException(SR.Argument_InvalidValue);
System\Security\Cryptography\ChaCha20Poly1305.cs (3)
97throw new ArgumentException(SR.Cryptography_PlaintextCiphertextLengthMismatch); 100throw new ArgumentException(SR.Cryptography_InvalidNonceLength, nameof(nonce)); 103throw new ArgumentException(SR.Cryptography_InvalidTagLength, nameof(tag));
System\Security\Cryptography\CryptoConfig.cs (1)
310throw new ArgumentException(SR.Cryptography_AlgorithmTypesMustBeVisible, nameof(algorithm));
System\Security\Cryptography\CryptographicOperations.cs (4)
153throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 462throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 765throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 817throw new ArgumentException(SR.Argument_DestinationTooShort, "destination");
System\Security\Cryptography\CryptoStream.cs (3)
51throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(stream)); 59throw new ArgumentException(SR.Argument_StreamNotWritable, nameof(stream)); 65throw new ArgumentException(SR.Argument_InvalidValue, nameof(mode));
System\Security\Cryptography\CspParameters.cs (1)
43throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value)));
System\Security\Cryptography\DES.cs (1)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\DesImplementation.cs (2)
66throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey)); 77throw new ArgumentException(SR.Cryptography_InvalidIVSize, nameof(rgbIV));
System\Security\Cryptography\DSAOpenSsl.cs (2)
44throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(pkeyHandle)); 76throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(handle));
System\Security\Cryptography\ECCurve.cs (1)
81throw new ArgumentException(SR.Format(SR.Cryptography_InvalidCurveOid, value.Value));
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (2)
30throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(pkeyHandle)); 63throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(handle));
System\Security\Cryptography\ECDsa.cs (4)
374throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 407throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 671throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 716throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
System\Security\Cryptography\ECDsaOpenSsl.cs (2)
30throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(pkeyHandle)); 63throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(handle));
System\Security\Cryptography\HashAlgorithm.cs (4)
82throw new ArgumentException(SR.Argument_InvalidValue); 84throw new ArgumentException(SR.Argument_InvalidOffLen); 240throw new ArgumentException(SR.Argument_InvalidValue); 242throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\HashProvider.cs (1)
27throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\HKDF.cs (6)
54throw new ArgumentException(SR.Format(SR.Cryptography_Prk_TooSmall, hashLength), nameof(prk)); 117throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(output)); 122throw new ArgumentException(SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength), nameof(output)); 132throw new ArgumentException(SR.Format(SR.Cryptography_Prk_TooSmall, hashLength), nameof(prk)); 246throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(output)); 251throw new ArgumentException(SR.Format(SR.Cryptography_Okm_TooLarge, maxOkmLength), nameof(output));
System\Security\Cryptography\HMACMD5.cs (7)
130throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 190throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 193throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 216throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 263throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 326throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 329throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\HMACSHA1.cs (7)
133throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 191throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 194throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 216throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 261throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 322throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 325throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\HMACSHA256.cs (7)
125throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 183throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 186throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 208throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 253throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 314throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 317throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\HMACSHA3_256.cs (7)
161throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 221throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 224throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 247throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 293throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 355throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 358throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\HMACSHA3_384.cs (7)
161throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 221throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 224throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 247throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 293throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 355throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 358throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\HMACSHA3_512.cs (7)
161throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 221throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 224throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 247throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 293throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 355throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 358throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\HMACSHA384.cs (7)
142throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 200throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 203throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 225throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 270throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 331throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 334throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\HMACSHA512.cs (7)
139throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 197throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 200throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 222throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 267throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 328throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 331throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\IncrementalHash.cs (3)
94throw new ArgumentException(SR.Argument_InvalidOffLen); 155throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 227throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
System\Security\Cryptography\Kmac128.cs (1)
531throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\Kmac256.cs (1)
531throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\KmacXof128.cs (1)
531throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\KmacXof256.cs (1)
531throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\MD5.cs (7)
90throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 147throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 150throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 172throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 198throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 235throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 238throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\OidCollection.cs (2)
77throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 81throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\PemEncoding.cs (6)
43throw new ArgumentException(SR.Argument_PemEncoding_NoPemFound, nameof(pemData)); 332throw new ArgumentException(SR.Argument_PemEncoding_EncodedSizeTooLarge); 380throw new ArgumentException(SR.Argument_PemEncoding_InvalidLabel, nameof(label)); 410throw new ArgumentException(null, nameof(destination)); 481throw new ArgumentException(SR.Argument_PemEncoding_InvalidLabel, nameof(label)); 524throw new ArgumentException(SR.Argument_PemEncoding_InvalidLabel, nameof(label));
System\Security\Cryptography\PemKeyHelpers.cs (8)
118throw new ArgumentException(SR.Argument_PemImport_AmbiguousPem, nameof(input)); 132throw new ArgumentException(SR.Argument_PemImport_NoPemFound, nameof(input)); 147throw new ArgumentException(); 186throw new ArgumentException(SR.Argument_PemImport_AmbiguousPem, nameof(input)); 197throw new ArgumentException(SR.Argument_PemImport_AmbiguousPem, nameof(input)); 212throw new ArgumentException(SR.Argument_PemImport_EncryptedPem, nameof(input)); 218throw new ArgumentException(SR.Argument_PemImport_NoPemFound, nameof(input)); 233throw new ArgumentException();
System\Security\Cryptography\RandomNumberGenerator.cs (5)
106throw new ArgumentException(SR.Argument_InvalidRandomRange); 182throw new ArgumentException(SR.Arg_EmptySpan, nameof(choices)); 205throw new ArgumentException(SR.Arg_EmptySpan, nameof(choices)); 232throw new ArgumentException(SR.Arg_EmptySpan, nameof(choices)); 402throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\RC2Implementation.cs (2)
64throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey)); 70throw new ArgumentException(SR.Cryptography_InvalidIVSize, nameof(rgbIV));
System\Security\Cryptography\RSA.cs (4)
220throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 303throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 529throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 631throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
System\Security\Cryptography\RSAOpenSsl.cs (2)
44throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(handle)); 73throw new ArgumentException(SR.Cryptography_OpenInvalidHandle, nameof(pkeyHandle));
System\Security\Cryptography\SHA1.cs (7)
86throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 141throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 144throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 165throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 190throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 226throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 229throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SHA256.cs (7)
85throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 141throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 144throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 165throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 190throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 226throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 229throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SHA3_256.cs (7)
114throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 177throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 180throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 205throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 234throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 274throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 277throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SHA3_384.cs (7)
114throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 178throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 181throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 206throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 235throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 275throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 278throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SHA3_512.cs (7)
114throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 177throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 180throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 205throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 234throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 274throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 277throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SHA384.cs (7)
85throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 140throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 143throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 164throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 189throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 225throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 228throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SHA512.cs (7)
85throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 140throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 143throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 164throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 189throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 225throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 228throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\Shake128.cs (4)
359throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 387throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 423throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 465throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\Shake256.cs (4)
359throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 387throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 423throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source)); 465throw new ArgumentException(SR.Argument_StreamNotReadable, nameof(source));
System\Security\Cryptography\SymmetricAlgorithm.cs (11)
328throw new ArgumentException(SR.Cryptography_MatchBlockSize, nameof(plaintextLength)); 399throw new ArgumentException(SR.Argument_BitsMustBeWholeBytes, nameof(feedbackSizeInBits)); 407throw new ArgumentException(SR.Cryptography_MatchFeedbackSize, nameof(plaintextLength)); 515throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 633throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 777throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 930throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 1151throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 1383throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 1625throw new ArgumentException(SR.Cryptography_InvalidIVSize, nameof(iv)); 1632throw new ArgumentException(SR.Cryptography_InvalidFeedbackSize, nameof(feedbackSizeInBits));
System\Security\Cryptography\SymmetricPadding.cs (5)
50throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 65throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 82throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 99throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination)); 120throw new ArgumentException(SR.Argument_DestinationTooShort, nameof(destination));
System\Security\Cryptography\TripleDES.cs (1)
54throw new ArgumentException(SR.Cryptography_InvalidKeySize);
System\Security\Cryptography\TripleDesImplementation.cs (2)
58throw new ArgumentException(SR.Cryptography_InvalidKeySize, nameof(rgbKey)); 64throw new ArgumentException(SR.Cryptography_InvalidIVSize, nameof(rgbIV));
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (13)
499throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed); 634throw new ArgumentException(SR.Cryptography_CertReq_IssuerRequiresPrivateKey, nameof(issuerCertificate)); 636throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed); 638throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(serialNumber)); 642throw new ArgumentException( 653throw new ArgumentException( 673throw new ArgumentException( 690throw new ArgumentException(SR.Cryptography_CertReq_BasicConstraintsRequired, nameof(issuerCertificate)); 692throw new ArgumentException(SR.Cryptography_CertReq_IssuerBasicConstraintsInvalid, nameof(issuerCertificate)); 694throw new ArgumentException(SR.Cryptography_CertReq_IssuerKeyUsageInvalid, nameof(issuerCertificate)); 720throw new ArgumentException( 814throw new ArgumentException(SR.Cryptography_CertReq_DatesReversed); 816throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(serialNumber));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (8)
136throw new ArgumentException( 141throw new ArgumentException(SR.Cryptography_CRLBuilder_DatesReversed); 157throw new ArgumentException( 164throw new ArgumentException( 171throw new ArgumentException( 187throw new ArgumentException(SR.Cryptography_CertReq_RSAPaddingRequired); 200throw new ArgumentException( 325throw new ArgumentException(SR.Cryptography_CRLBuilder_DatesReversed);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (2)
67throw new ArgumentException(SR.Cryptography_X509_CDP_NullValue, nameof(uris)); 105throw new ArgumentException(SR.Cryptography_X509_CDP_MustNotBuildEmpty, nameof(uris));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
138throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(serialNumber)); 145throw new ArgumentException(
System\Security\Cryptography\X509Certificates\DSACertificateExtensions.cs (2)
44throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 54throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (2)
41throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 45throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
System\Security\Cryptography\X509Certificates\FindPal.cs (5)
178throw new ArgumentException(SR.Argument_InvalidOidValue); 222throw new ArgumentException(SR.Argument_InvalidOidValue); 227throw new ArgumentException(SR.Argument_InvalidOidValue); 229throw new ArgumentException(SR.Argument_InvalidOidValue); 239throw new ArgumentException(SR.Argument_InvalidOidValue);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
29throw new ArgumentException(SR.Arg_InvalidHandle, nameof(handle));
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (2)
41throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 49throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey));
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (1)
103throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, "flag"));
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (4)
137throw new ArgumentException(SR.Argument_X500_EmailTooLong, nameof(emailAddress)); 226throw new ArgumentException(SR.Argument_X500_InvalidCountryOrRegion, nameof(twoLetterCode)); 379throw new ArgumentException(SR.Format(SR.Argument_Asn1_InvalidStringContents, stringEncodingType), paramName); 401throw new ArgumentException(SR.Argument_Asn1_InvalidCharacterString, nameof(stringEncodingType));
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (2)
285throw new ArgumentException(SR.Cryptography_X509_AIA_NullValue); 330throw new ArgumentException(SR.Cryptography_X509_AIA_MustNotBuildEmpty);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (2)
342throw new ArgumentException(SR.Argument_InvalidSerialNumberBytes, nameof(serialNumber)); 443throw new ArgumentException(SR.Argument_InvalidSerialNumberBytes, nameof(serialNumber));
System\Security\Cryptography\X509Certificates\X509Certificate.cs (5)
93throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData)); 108throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData)); 121throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData)); 668throw new ArgumentException(SR.Argument_InvalidFlag, nameof(keyStorageFlags)); 677throw new ArgumentException(
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
387throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData)); 405throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(rawData)); 757throw new ArgumentException(SR.Cryptography_PrivateKey_WrongAlgorithm); 762throw new ArgumentException(SR.Cryptography_PrivateKey_DoesNotMatch, nameof(privateKey)); 1272throw new ArgumentException(
System\Security\Cryptography\X509Certificates\X509CertificateCollection.cs (1)
112throw new ArgumentException(SR.Arg_InvalidType, nameof(value));
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
99throw new ArgumentException(SR.Cryptography_InvalidContextHandle, nameof(certificate));
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (2)
63throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 67throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\X509ChainPolicy.cs (4)
62throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 76throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 90throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value))); 104throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(value)));
System\Security\Cryptography\X509Certificates\X509Extension.cs (1)
84throw new ArgumentException(SR.Cryptography_X509_ExtensionMismatch);
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
82throw new ArgumentException(SR.Arg_RankMultiDimNotSupported); 86throw new ArgumentException(SR.Argument_InvalidOffLen);
System\Security\Cryptography\X509Certificates\X509SignatureGenerator.cs (1)
33throw new ArgumentException(SR.Cryptography_InvalidPaddingMode);
System\Security\Cryptography\X509Certificates\X509Store.cs (3)
40throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeLocation))); 52_ => throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeName))), 66throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, nameof(storeLocation)));
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (2)
128throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(subjectKeyIdentifier)); 202throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, algorithm), nameof(algorithm));
System.Security.Cryptography.Cose (37)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (6)
264throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value)); 290throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value)); 297throw new ArgumentException(SR.CriticalHeadersMustBeArrayOfAtLeastOne, nameof(value)); 304throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value)); 311throw new ArgumentException(SR.Format(SR.CoseHeaderMapHeaderDoesNotAcceptSpecifiedValue, label.LabelName), nameof(value)); 328throw new ArgumentException(SR.Format(SR.CoseHeaderMapArgumentCoseHeaderValueIncorrect, label.LabelName), nameof(value), ex);
System\Security\Cryptography\Cose\CoseHeaderValue.cs (1)
227throw new ArgumentException(SR.Argument_DestinationTooSmall, nameof(destination));
System\Security\Cryptography\Cose\CoseHelpers.cs (1)
304_ => throw new ArgumentException(SR.Format(SR.Sign1UnsupportedKey, key.GetType()), nameof(key))
System\Security\Cryptography\Cose\CoseMessage.cs (1)
617throw new ArgumentException(SR.Argument_EncodeDestinationTooSmall, nameof(destination));
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (8)
193throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 196throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent)); 267throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 270throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent)); 426throw new ArgumentException(SR.Sign1SignHeaderDuplicateLabels, nameof(signer)); 431throw new ArgumentException(SR.Sign1SignHeaderDuplicateLabels); 436throw new ArgumentException(SR.Format(SR.CriticalHeaderMissing, labelName), nameof(signer)); 441throw new ArgumentException(SR.Format(SR.CriticalHeaderMissing, labelName), nameof(protectedHeaders));
System\Security\Cryptography\Cose\CoseSign1Message.cs (10)
170throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 173throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent)); 224throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 227throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent)); 312throw new ArgumentException(SR.Sign1SignHeaderDuplicateLabels, nameof(signer)); 317throw new ArgumentException(SR.Format(SR.CriticalHeaderMissing, labelName), nameof(signer)); 593throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 598throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent)); 694throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 699throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
System\Security\Cryptography\Cose\CoseSignature.cs (4)
302throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 307throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent)); 369throw new ArgumentException(SR.Sign1ArgumentStreamNotReadable, nameof(detachedContent)); 374throw new ArgumentException(SR.Sign1ArgumentStreamNotSeekable, nameof(detachedContent));
System\Security\Cryptography\Cose\CoseSigner.cs (6)
71throw new ArgumentException(SR.CoseSignerRSAKeyNeedsPadding, nameof(key)); 148throw new ArgumentException(SR.Sign1SignAlgMustBeProtected, "unprotectedHeaders"); 171throw new ArgumentException(exMsg, "protectedHeaders"); 185_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithmName), "hashAlgorithm") 199_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithmName), "hashAlgorithm") 210_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithmName), "hashAlgorithm")
System.Text.Encoding.CodePages (13)
System\Text\DBCSCodePageEncoding.cs (2)
541throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType())); 657throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, EncodingName, encoder.Fallback.GetType()));
System\Text\DecoderFallbackBufferHelper.cs (6)
65throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 72throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 88throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 121throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 128throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex); 138throw new ArgumentException(SR.Argument_InvalidCharSequenceNoIndex);
System\Text\EncoderFallbackBufferHelper.cs (1)
133throw new ArgumentException(SR.Format(SR.Argument_RecursiveFallback, charRecursive), "chars");
System\Text\EncodingByteBuffer.cs (1)
42throw new ArgumentException(SR.Format(SR.Argument_EncoderFallbackNotEmpty, _encoder.Encoding.EncodingName, _encoder.Fallback.GetType()));
System\Text\EncodingNLS.cs (2)
351throw new ArgumentException(SR.Format(SR.Argument_EncodingConversionOverflowBytes, EncodingName, EncoderFallback.GetType()), "bytes"); 359throw new ArgumentException(SR.Format(SR.Argument_EncodingConversionOverflowChars, EncodingName, DecoderFallback.GetType()), "chars");
System\Text\ISCIIEncoding.cs (1)
65throw new ArgumentException(SR.Format(SR.Argument_CodepageNotSupported, codePage), nameof(codePage));
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\TextEncoder.cs (1)
624throw new ArgumentException(SR.TextEncoderDoesNotImplementMaxOutputCharsPerInputChar);
System.Text.Json (26)
System\Text\Json\Document\JsonDocument.cs (1)
1092throw new ArgumentException(SR.JsonDocumentDoesNotSupportComments, paramName);
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
324throw new ArgumentException(SR.SerializationInvalidBufferSize); 420throw new ArgumentException(SR.DefaultIgnoreConditionInvalid);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.cs (2)
37throw new ArgumentException(nameof(propertyInfo.DeclaringType)); 43throw new ArgumentException(nameof(propertyInfo.PropertyName));
System\Text\Json\ThrowHelper.cs (6)
65throw new ArgumentException(SR.ArrayTooSmall, paramName); 70return new ArgumentException(message); 487throw new ArgumentException(SR.CannotWriteCommentWithEmbeddedDelimiter); 515throw new ArgumentException(SR.Format(SR.CannotEncodeInvalidUTF8, builder)); 521throw new ArgumentException(SR.Format(SR.CannotEncodeInvalidUTF16, $"0x{charAsInt:X2}")); 543return new ArgumentException(SR.CannotTranscodeInvalidUtf16, innerException);
System\Text\Json\ThrowHelper.Node.cs (2)
14throw new ArgumentException(SR.NodeValueNotAllowed, paramName); 20throw new ArgumentException(SR.Format(SR.NodeDuplicateKey, propertyName), paramName);
System\Text\Json\ThrowHelper.Serialization.cs (5)
21throw new ArgumentException(SR.Format(SR.DeserializeWrongType, type, value.GetType())); 27throw new ArgumentException(SR.JsonSerializerDoesNotSupportComments, paramName); 138throw new ArgumentException(SR.Format(SR.CannotSerializeInvalidType, typeToConvert), paramName); 142throw new ArgumentException(SR.Format(SR.CannotSerializeInvalidMember, typeToConvert, propertyName, declaringType), paramName); 898throw new ArgumentException(SR.JsonPolymorphismOptionsAssociatedWithDifferentJsonTypeInfo, paramName: parameterName);
System\Text\Json\Writer\JsonWriterHelper.cs (6)
168throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); 198throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); 221throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); 233throw new ArgumentException( 240throw new ArgumentException(SR.RequiredDigitNotFoundEndOfData, nameof(utf8FormattedNumber)); 250throw new ArgumentException(
System\Text\Json\Writer\Utf8JsonWriter.cs (2)
140throw new ArgumentException(SR.StreamNotWritable); 202throw new ArgumentException(SR.StreamNotWritable);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\CaptureCollection.cs (1)
105throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System\Text\RegularExpressions\GroupCollection.cs (1)
119throw new ArgumentException(SR.Arg_ArrayPlusOffTooSmall);
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\Roslyn\GetBestTypeByMetadataName.cs (1)
90? throw new ArgumentException("The input type must correspond to a named type symbol.")
System.Threading.RateLimiting (14)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (2)
50throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options)); 54throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options));
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (3)
56throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options)); 60throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options)); 64throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.Window)), nameof(options));
System\Threading\RateLimiting\PartitionedRateLimiter.cs (1)
63throw new ArgumentException("Must pass in at least 1 limiter.", nameof(limiters));
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (4)
60throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options)); 64throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.SegmentsPerWindow)), nameof(options)); 68throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options)); 72throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.Window)), nameof(options));
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (4)
58throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.TokenLimit)), nameof(options)); 62throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.TokensPerPeriod)), nameof(options)); 66throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanOrEqual0, nameof(options.QueueLimit)), nameof(options)); 70throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.ReplenishmentPeriod)), nameof(options));
System.Threading.Tasks.Dataflow (40)
Base\DataflowBlock.cs (11)
153if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 645if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 690if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 707if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 1182if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 1183if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept)); 1495if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 2183if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 2184if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept)); 2699if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 2704if (source == null) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
Base\DataflowMessageHeader.cs (1)
30if (id == default(long)) throw new ArgumentException(SR.Argument_InvalidMessageId, nameof(id));
Blocks\BatchBlock.cs (2)
355if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 356if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
Blocks\BatchedJoinBlock.cs (5)
59if (!dataflowBlockOptions.Greedy) throw new ArgumentException(SR.Argument_NonGreedyNotSupported, nameof(dataflowBlockOptions)); 60if (dataflowBlockOptions.BoundedCapacity != DataflowBlockOptions.Unbounded) throw new ArgumentException(SR.Argument_BoundedCapacityNotSupported, nameof(dataflowBlockOptions)); 310throw new ArgumentException(SR.Argument_NonGreedyNotSupported, nameof(dataflowBlockOptions)); 573if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 574if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
Blocks\BroadcastBlock.cs (5)
169if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 170if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept)); 1047if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 1087if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 1114if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
Blocks\BufferBlock.cs (2)
94if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 95if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
Blocks\JoinBlock.cs (2)
829if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 830if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
Blocks\WriteOnceBlock.cs (5)
350if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 351if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept)); 390if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 411if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 424if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
Internal\SourceCore.cs (3)
166if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 222if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 249if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader));
Internal\SpscTargetCore.cs (2)
136throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 142if (source == null) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
Internal\TargetCore.cs (2)
184if (!messageHeader.IsValid) throw new ArgumentException(SR.Argument_InvalidMessageHeader, nameof(messageHeader)); 185if (source == null && consumeToAccept) throw new ArgumentException(SR.Argument_CantConsumeFromANullSource, nameof(consumeToAccept));
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.cs (1)
212throw new ArgumentException(SR.Parallel_Invoke_ActionNull);
System.Transactions.Local (17)
System\Transactions\CommittableTransaction.cs (1)
166throw new ArgumentException(SR.BadAsyncResult, nameof(asyncResult));
System\Transactions\Transaction.cs (5)
485throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 533throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 936throw new ArgumentException(SR.PromoterTypeInvalid, nameof(promoterType)); 975throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 1021throw new ArgumentException(null, nameof(distributedTransactionIdentifier));
System\Transactions\TransactionInteropNonWindows.cs (3)
77throw new ArgumentException(SR.InvalidArgument, nameof(cookie)); 147throw new ArgumentException(SR.InvalidArgument, nameof(propagationToken)); 248throw new ArgumentException(SR.InvalidArgument, nameof(propagationToken));
System\Transactions\TransactionManager.cs (6)
144throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier)); 182throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation)); 191throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e); 199throw new ArgumentException(SR.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e); 233throw new ArgumentException(SR.InvalidRecoveryInformation, "recoveryInformation"); 242throw new ArgumentException(SR.BadResourceManagerId, nameof(resourceManagerIdentifier));
System\Transactions\TransactionScope.cs (2)
215throw new ArgumentException(SR.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions)); 297throw new ArgumentException(SR.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions));
System.Windows.Controls.Ribbon (7)
Microsoft\Windows\Controls\ActivatingKeyTipEventArgs.cs (2)
89throw new ArgumentException(Microsoft.Windows.Controls.SR.InvalidKeyTipOffset); 108throw new ArgumentException(Microsoft.Windows.Controls.SR.InvalidKeyTipOffset);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (2)
61throw new ArgumentException(Microsoft.Windows.Controls.SR.RibbonGroupsPanel_InvalidRegistrationParameter, "starLayoutInfoProvider"); 76throw new ArgumentException(Microsoft.Windows.Controls.SR.RibbonGroupsPanel_InvalidRegistrationParameter, "starLayoutInfoProvider");
Microsoft\Windows\Controls\Ribbon\RibbonControlLength.cs (3)
53throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterNoNaN, "value")); 58throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterNoInfinityForStarSize, "value")); 66throw new ArgumentException(Microsoft.Windows.Controls.SR.Format(Microsoft.Windows.Controls.SR.InvalidCtorParameterUnknownRibbonControlLengthUnitType, "type"));
System.Xaml (60)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (6)
334throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 608throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1081throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1120throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1405throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1480throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
353throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 366throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 371throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name));
System\Windows\Markup\StaticExtension.cs (5)
69throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 76throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 86throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, nameof(IXamlTypeResolver))); 96throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 112throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, typeNameForError is not null ? $"{typeNameForError}.{_member}" : _member));
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (1)
34throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(StaticExtension)));
System\Windows\Markup\TypeExtensionConverter.cs (1)
34throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(TypeExtension)));
System\Xaml\Context\ObjectWriterContext.cs (2)
319throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 436throw new ArgumentException(SR.Format(SR.NotAmbientType, xamlType.Name), nameof(types));
System\Xaml\Context\ServiceProviderContext.cs (6)
142throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 158throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 176throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 192throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 212throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 296throw new ArgumentException(SR.SimpleFixupsMustHaveOneName, nameof(names));
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
67throw new ArgumentException(SR.SavedContextSchemaContextNull, nameof(savedContext)); 80throw new ArgumentException(SR.SavedContextSchemaContextMismatch, nameof(schemaContext)); 884throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull); 888throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull);
System\Xaml\NameScope.cs (8)
35throw new ArgumentException(SR.NameScopeNameNotEmptyString); 40throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 58throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 73throw new ArgumentException(SR.NameScopeNameNotEmptyString); 78throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 146throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "item.Key"), nameof(item)); 150throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "item.Value"), nameof(item)); 160throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "item.Key"), nameof(item));
System\Xaml\NameScopeDictionary.cs (6)
45throw new ArgumentException(SR.NameScopeNameNotEmptyString); 49throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 74throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 85throw new ArgumentException(SR.NameScopeNameNotEmptyString); 100throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 110throw new ArgumentException(SR.NameScopeNameNotEmptyString);
System\Xaml\Parser\MeScanner.cs (1)
317throw new ArgumentException(SR.MalformedPropertyName);
System\Xaml\Schema\XamlDirective.cs (1)
47throw new ArgumentException(SR.CollectionCannotContainNulls, nameof(xamlNamespaces));
System\Xaml\Schema\XamlValueConverter.cs (1)
34throw new ArgumentException(SR.Format(SR.ArgumentRequired, $"{nameof(converterType)}, {nameof(targetType)}, {nameof(name)}"));
System\Xaml\XamlMarkupExtensionWriter.cs (1)
180throw new ArgumentException(SR.XamlMarkupExtensionWriterCannotWriteNonstringValue);
System\Xaml\XamlMember.cs (2)
807throw new ArgumentException(SR.IncorrectGetterParamNum, argumentName); 815throw new ArgumentException(SR.IncorrectSetterParamNum, argumentName);
System\Xaml\XamlSchemaContext.cs (4)
271throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "xamlTypeName.Name"), nameof(xamlTypeName)); 275throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "xamlTypeName.Namespace"), nameof(xamlTypeName)); 286throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "xamlTypeName.TypeArguments")); 308throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments"));
System\Xaml\XamlServices.cs (1)
146throw new ArgumentException(SR.StringIsNullOrEmpty, nameof(fileName));
System\Xaml\XamlType.cs (1)
1480throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments"));
System\Xaml\XamlXmlWriter.cs (6)
169throw new ArgumentException(SR.Format(SR.TypeHasInvalidXamlName, type.Name), nameof(type)); 194throw new ArgumentException(SR.Format(SR.MemberHasInvalidXamlName, property.Name), nameof(property)); 219throw new ArgumentException(SR.XamlXmlWriterCannotWriteNonstringValue, nameof(value)); 233throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull, nameof(namespaceDeclaration)); 238throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull, nameof(namespaceDeclaration)); 243throw new ArgumentException(SR.NamespaceDeclarationCannotBeXml, nameof(namespaceDeclaration));
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
Templates.Tests (3)
src\ProjectTemplates\Shared\Project.cs (1)
539throw new ArgumentException($"AssemblyMetadataAttribute with key {key} was not found.");
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
TestExclusionListTasks (19)
src\tasks\AndroidAppBuilder\ApkBuilder.cs (15)
59throw new ArgumentException($"AppDir='{AppDir}' is empty or doesn't exist"); 64throw new ArgumentException($"MainLibraryFileName='{mainLibraryFileName}' was not found in AppDir='{AppDir}'"); 69throw new ArgumentException("RuntimeIdentifier should not be empty and should contain a valid android RID"); 74throw new ArgumentException($"ProjectName='{ProjectName}' should not not contain spaces."); 88throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or empty (can be set via ANDROID_SDK_ROOT envvar)."); 93throw new ArgumentException($"Android NDK='{AndroidNdk}' was not found or empty (can be set via ANDROID_NDK_ROOT envvar)."); 103throw new ArgumentException($"Using DiagnosticPorts requires diagnostics_tracing runtime component, which was not included in 'RuntimeComponents' item group. @RuntimeComponents: '{string.Join(", ", RuntimeComponents)}'"); 126throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < MinApiLevel={MinApiLevel}. " + 132throw new ArgumentException($"BuildApiLevel={BuildApiLevel} < TargetApiLevel={TargetApiLevel}. " + 140throw new ArgumentException($"{buildToolsFolder} was not found."); 238throw new ArgumentException($"API level={BuildApiLevel} is not downloaded in Android SDK"); 261throw new ArgumentException($"{monoRuntimeLib} was not found"); 544throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 569throw new ArgumentException($"Android SDK='{AndroidSdk}' was not found or incorrect (can be set via ANDROID_SDK_ROOT envvar)."); 610throw new ArgumentException($"Android SDK ({androidSdkDir}) doesn't contain build-tools.");
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
UIAutomationClient (21)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
386throw new ArgumentException(SR.UnexpectedWindowState,"state");
MS\Internal\Automation\Misc.cs (3)
154throw new ArgumentException(SR.UnsupportedPattern); 176throw new ArgumentException(SR.Format(SR.GenericInvalidArgument, argName)); 184throw new ArgumentException(SR.GetResourceString(reason, null));
MS\Internal\Automation\ProxyManager.cs (1)
737throw new ArgumentException(SR.NonclientClassnameCannotBeUsedWithFlagsOrImagename);
System\Windows\Automation\Automation.cs (2)
187throw new ArgumentException( SR.ParamsNotApplicableToWindowClosedEvent ); 238throw new ArgumentException( SR.AtLeastOnePropertyMustBeSpecified );
System\Windows\Automation\AutomationElement.cs (4)
511return new ArgumentException(SR.UnsupportedProperty); 720throw new ArgumentException(SR.UnsupportedPattern); 1305throw new ArgumentException(SR.TreeScopeNeedAtLeastOne); 1309throw new ArgumentException(SR.TreeScopeElementChildrenDescendantsOnly);
System\Windows\Automation\CacheRequest.cs (2)
306throw new ArgumentException(SR.TreeScopeNeedAtLeastOne); 311throw new ArgumentException(SR.TreeScopeElementChildrenDescendantsOnly);
System\Windows\Automation\ItemContainerPattern.cs (2)
133throw new ArgumentException(SR.UnsupportedProperty); 144throw new ArgumentException(SR.Format(SR.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\PropertyCondition.cs (2)
130throw new ArgumentException(SR.UnsupportedProperty); 141throw new ArgumentException(SR.Format(SR.PropertyConditionIncorrectType, property.ProgrammaticName, expectedType.Name));
System\Windows\Automation\Text\TextRange.cs (3)
187throw new ArgumentException(SR.UnsupportedAttribute); 192throw new ArgumentException(SR.Format(SR.TextAttributeValueWrongType, attribute, ai.Type.Name, value.GetType().Name), "value"); 243throw new ArgumentException(SR.UnsupportedAttribute);
System\Windows\Automation\TextPattern.cs (1)
223throw new ArgumentException(SR.ScreenCoordinatesOutsideBoundingRect);
UIAutomationClientSideProviders (7)
MS\Internal\AutomationProxies\Accessible.cs (1)
1388throw new ArgumentException(SR.InvalidParameter);
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
287throw new ArgumentException(SR.Format(SR.NotAValidValue, str), "val");
MS\Internal\AutomationProxies\WindowsListView.cs (2)
832throw new ArgumentException(SR.InvalidParameter); 841throw new ArgumentException(SR.InvalidParameter);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
185throw new ArgumentException(SR.Format(SR.NotAValidValue, str), "val");
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
1269throw new ArgumentException(name);
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
218throw new ArgumentException(SR.InvalidParameter);
UIAutomationProvider (2)
System\Windows\Automation\Provider\AutomationInteropProvider.cs (2)
209throw new ArgumentException(SR.Format(SR.GenericInvalidArgument, argName)); 217throw new ArgumentException(SR.GetResourceString(reason, null));
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (1)
264throw new ArgumentException($"{osVer} is not a valid OS!", nameof(osVer));
VersioningWebSite (1)
VersionRouteAttribute.cs (1)
44throw new ArgumentException(message, "versionRange");
Wasm.Performance.ConsoleHost (2)
src\Shared\CommandLineUtils\CommandLine\CommandOption.cs (2)
44throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template)); 50throw new ArgumentException($"Invalid template pattern '{template}'", nameof(template));
WasmAppBuilder (4)
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
WindowsFormsIntegration (2)
System\Windows\Integration\PropertyMap.cs (1)
161throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, SR.WFI_PropertyDoesntExist, propertyName, SourceObject.GetType().FullName));
System\Windows\Integration\WindowsFormsHost.cs (1)
325throw new ArgumentException(SR.Host_ChildCantBeTopLevelForm);
WorkloadBuildTasks (4)
src\tasks\Common\Utils.cs (4)
176throw new ArgumentException($"{msgPrefix}Process.Start({path} {args}) returned null process"); 220throw new ArgumentException($"Cannot find {src} file to copy", nameof(src)); 272throw new ArgumentException($"Unsupported hash algorithm: {algorithm}"); 288throw new ArgumentException($"Unsupported hash encoding: {encoding}");
xunit.console (35)
CommandLine.cs (24)
64var reporter = reporters.FirstOrDefault(r => r.RunnerSwitch == unknownOption) ?? throw new ArgumentException($"unknown option: -{unknownOption}"); 67throw new ArgumentException("only one reporter is allowed"); 100throw new ArgumentException($"error: unknown command line option: {option.Value}"); 215throw new ArgumentException($"expecting assembly, got config file: {assemblyFile}"); 217throw new ArgumentException($"file not found: {assemblyFile}"); 227throw new ArgumentException($"config file not found: {configFile}"); 242throw new ArgumentException($"unknown command line option: {option.Key}"); 318throw new ArgumentException("missing argument for -appdomains"); 334throw new ArgumentException("incorrect argument value for -appdomains (must be 'ifavailable', 'required', or 'denied')"); 341throw new ArgumentException("missing argument for -maxthreads"); 356throw new ArgumentException("incorrect argument value for -maxthreads (must be 'default', 'unlimited', or a positive number)"); 365throw new ArgumentException("missing argument for -parallel"); 368throw new ArgumentException("incorrect argument value for -parallel"); 402throw new ArgumentException("missing argument for -trait"); 406throw new ArgumentException("incorrect argument format for -trait (should be \"name=value\")"); 415throw new ArgumentException("missing argument for -notrait"); 419throw new ArgumentException("incorrect argument format for -notrait (should be \"name=value\")"); 428throw new ArgumentException("missing argument for -class"); 435throw new ArgumentException("missing argument for -noclass"); 442throw new ArgumentException("missing argument for -method"); 449throw new ArgumentException("missing argument for -nomethod"); 456throw new ArgumentException("missing argument for -namespace"); 463throw new ArgumentException("missing argument for -nonamespace"); 473throw new ArgumentException($"missing filename for {option.Key}");
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Dependency.cs (2)
15throw new ArgumentException(nameof(name)); 19throw new ArgumentException(nameof(version));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\Library.cs (3)
35throw new ArgumentException(nameof(type)); 39throw new ArgumentException(nameof(name)); 43throw new ArgumentException(nameof(version));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\ResourceAssembly.cs (2)
14throw new ArgumentException(nameof(path)); 18throw new ArgumentException(nameof(locale));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\RuntimeFallbacks.cs (1)
20throw new ArgumentException(nameof(runtime));
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\TargetInfo.cs (1)
17throw new ArgumentException(nameof(framework));
common\Json.cs (1)
50throw new ArgumentException("Token value should be either True or False.", nameof(token));
ConsoleRunner.cs (1)
45throw new ArgumentException("must specify at least one assembly");
3440 references to ArgumentException
BasicTestApp (1)
Program.cs (1)
69catch (ArgumentException)
dotnet-openapi (11)
Application.cs (1)
70catch (ArgumentException ex)
Commands\AddFileCommand.cs (3)
34ArgumentException.ThrowIfNullOrEmpty(_sourceFileArg.Value); 63ArgumentException.ThrowIfNullOrEmpty(_sourceFileArg.Value); 65catch (ArgumentException ex)
Commands\AddProjectCommand.cs (1)
53ArgumentException.ThrowIfNullOrEmpty(_sourceProjectArg.Value);
Commands\AddURLCommand.cs (2)
34ArgumentException.ThrowIfNullOrEmpty(_sourceFileArg.Value); 52ArgumentException.ThrowIfNullOrEmpty(_sourceFileArg.Value);
Commands\RefreshCommand.cs (2)
29ArgumentException.ThrowIfNullOrEmpty(_sourceFileArg.Value); 58ArgumentException.ThrowIfNullOrEmpty(_sourceFileArg.Value);
Commands\RemoveCommand.cs (2)
29ArgumentException.ThrowIfNullOrEmpty(_sourceProjectArg.Value); 75ArgumentException.ThrowIfNullOrEmpty(_sourceProjectArg.Value);
dotnet-sql-cache (2)
SqlQueries.cs (2)
33ArgumentException.ThrowIfNullOrEmpty(schemaName); 34ArgumentException.ThrowIfNullOrEmpty(tableName);
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
14ArgumentException.ThrowIfNullOrEmpty(directory);
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
14ArgumentException.ThrowIfNullOrEmpty(directory);
illink (2)
InMemory.FunctionalTests (1)
HttpsConnectionMiddlewareTests.cs (1)
274Assert.Throws<ArgumentException>(() => CreateMiddleware(new HttpsConnectionAdapterOptions(), ListenOptions.DefaultHttpProtocols));
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
477ArgumentException duplicateKeyException = null; 489catch (ArgumentException ex)
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
362catch (ArgumentException e)
Microsoft.AspNetCore.Authentication.Facebook (2)
FacebookOptions.cs (2)
53ArgumentException.ThrowIfNullOrEmpty(AppId); 54ArgumentException.ThrowIfNullOrEmpty(AppSecret);
Microsoft.AspNetCore.Authentication.Negotiate (2)
LdapSettings.cs (1)
85ArgumentException.ThrowIfNullOrEmpty(Domain);
NegotiateOptions.cs (1)
48ArgumentException.ThrowIfNullOrEmpty(domain);
Microsoft.AspNetCore.Authentication.OAuth (4)
OAuthOptions.cs (4)
29ArgumentException.ThrowIfNullOrEmpty(ClientId); 30ArgumentException.ThrowIfNullOrEmpty(ClientSecret); 31ArgumentException.ThrowIfNullOrEmpty(AuthorizationEndpoint); 32ArgumentException.ThrowIfNullOrEmpty(TokenEndpoint);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (1)
1050ArgumentException.ThrowIfNullOrEmpty(nonce);
OpenIdConnectOptions.cs (1)
100ArgumentException.ThrowIfNullOrEmpty(ClientId);
Microsoft.AspNetCore.Authentication.Test (3)
JwtBearerTests.cs (1)
349[InlineData(typeof(ArgumentException))]
JwtBearerTests_Handler.cs (1)
334[InlineData(typeof(ArgumentException))]
OAuthTests.cs (1)
79await Assert.ThrowsAsync<ArgumentException>("CallbackPath", () => server.SendAsync("http://example.com/"));
Microsoft.AspNetCore.Authentication.Twitter (2)
TwitterOptions.cs (2)
107ArgumentException.ThrowIfNullOrEmpty(ConsumerKey); 108ArgumentException.ThrowIfNullOrEmpty(ConsumerSecret);
Microsoft.AspNetCore.Components (5)
Rendering\RenderTreeBuilder.cs (1)
671ArgumentException.ThrowIfNullOrEmpty(assignedName);
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (4)
730ArgumentException.ThrowIfNullOrEmpty(content); 753ArgumentException.ThrowIfNullOrEmpty(content); 990ArgumentException.ThrowIfNullOrEmpty(constraint); 1020ArgumentException.ThrowIfNullOrEmpty(parameterPolicy);
Microsoft.AspNetCore.Components.Endpoints (1)
Discovery\AssemblyComponentLibraryDescriptor.cs (1)
24ArgumentException.ThrowIfNullOrEmpty(nameof(name));
Microsoft.AspNetCore.Components.Forms.Tests (4)
FieldIdentifierTest.cs (4)
22var ex = Assert.Throws<ArgumentException>(() => new FieldIdentifier(DateTime.Now, "somefield")); 164var ex = Assert.Throws<ArgumentException>(() =>
Microsoft.AspNetCore.Components.Server (3)
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (3)
36ArgumentException.ThrowIfNullOrEmpty(storeName); 71ArgumentException.ThrowIfNullOrEmpty(purpose); 72ArgumentException.ThrowIfNullOrEmpty(key);
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\CircuitHostTest.cs (2)
482Assert.Throws<ArgumentException>(() => 583Assert.Throws<ArgumentException>(() =>
ProtectedBrowserStorageTest.cs (1)
233Assert.IsType<ArgumentException>(innerException);
Microsoft.AspNetCore.Components.Tests (24)
ComponentFactoryTest.cs (2)
38var ex = Assert.Throws<ArgumentException>(() => factory.InstantiateComponent(GetServiceProvider(), componentType, null, null));
EventCallbackTest.cs (2)
160await Assert.ThrowsAsync<ArgumentException>(() => 268await Assert.ThrowsAsync<ArgumentException>(() =>
Lifetime\ComponentApplicationStateTest.cs (1)
96Assert.Throws<ArgumentException>(() => applicationState.PersistAsJson("MyState", myState));
NavigationManagerTest.cs (4)
56var ex = Assert.Throws<ArgumentException>(() => 74var ex = Assert.Throws<ArgumentException>(() =>
RendererTest.cs (11)
1991await Assert.ThrowsAsync<ArgumentException>(() => 2701await Assert.ThrowsAsync<ArgumentException>(() => 2742await Assert.ThrowsAsync<ArgumentException>(() => 2793await Assert.ThrowsAsync<ArgumentException>(() => 2828await Assert.ThrowsAsync<ArgumentException>(() => 3534var ex = await Assert.ThrowsAsync<ArgumentException>(() => 4828var ex = Assert.Throws<ArgumentException>(() => 4854var ex = Assert.Throws<ArgumentException>(() =>
Rendering\RenderTreeBuilderTest.cs (2)
2256var ex = Assert.Throws<ArgumentException>(() =>
StackObjectPoolTest.cs (2)
112var ex = Assert.Throws<ArgumentException>(() =>
Microsoft.AspNetCore.Components.Web (1)
JSComponents\JSComponentConfigurationStore.cs (1)
59ArgumentException.ThrowIfNullOrEmpty(javaScriptInitializer);
Microsoft.AspNetCore.CookiePolicy (1)
CookiePolicyOptions.cs (1)
62ArgumentException.ThrowIfNullOrEmpty(value);
Microsoft.AspNetCore.DataProtection (2)
Error.cs (2)
18public static ArgumentException Common_ArgumentCannotBeNullOrEmpty(string parameterName) 23public static ArgumentException Common_BufferIncorrectlySized(string parameterName, int actualSize, int expectedSize)
Microsoft.AspNetCore.DataProtection.Extensions (4)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (4)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 30ArgumentException.ThrowIfNullOrEmpty(argument, paramName); 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary> 59ArgumentException.ThrowIfNullOrWhiteSpace(argument, paramName);
Microsoft.AspNetCore.DataProtection.Tests (1)
TypeForwardingActivatorTests.cs (1)
71Assert.Throws<ArgumentException>(() => activator.CreateInstance<object>(name));
Microsoft.AspNetCore.Hosting (2)
Internal\HostingEnvironmentExtensions.cs (2)
16ArgumentException.ThrowIfNullOrEmpty(contentRootPath); 67ArgumentException.ThrowIfNullOrEmpty(contentRootPath);
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostBuilderTests.cs (1)
1266Assert.Throws<ArgumentException>(() => new HostingStartupAttribute(typeof(WebHostTests)));
Microsoft.AspNetCore.Http (1)
Timeouts\RequestTimeoutOptions.cs (1)
43ArgumentException.ThrowIfNullOrEmpty(policyName);
Microsoft.AspNetCore.Http.Abstractions (2)
Internal\ParsingHelpers.cs (2)
52ArgumentException.ThrowIfNullOrEmpty(key); 90ArgumentException.ThrowIfNullOrEmpty(key);
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
MapPathMiddlewareTests.cs (1)
131Assert.Throws<ArgumentException>(() => new ApplicationBuilder(serviceProvider: null!).Map(matchPath, map => { }).Build());
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (2)
2126var exception = Assert.Throws<ArgumentException>(() => RequestDelegateFactory.Create(TestAction));
Microsoft.AspNetCore.Http.Results (4)
TypedResults.cs (4)
510ArgumentException.ThrowIfNullOrEmpty(path); 543ArgumentException.ThrowIfNullOrEmpty(path); 569ArgumentException.ThrowIfNullOrEmpty(url); 589ArgumentException.ThrowIfNullOrEmpty(localUrl);
Microsoft.AspNetCore.Http.Results.Tests (7)
ResultsTests.cs (2)
1083Assert.Throws<ArgumentException>("localUrl", () => Results.LocalRedirect(string.Empty)); 1387Assert.Throws<ArgumentException>("url", () => Results.Redirect(string.Empty));
TypedResultsTests.cs (4)
360Assert.Throws<ArgumentException>("path", () => TypedResults.PhysicalFile(string.Empty)); 372Assert.Throws<ArgumentException>("path", () => TypedResults.VirtualFile(string.Empty)); 927Assert.Throws<ArgumentException>("localUrl", () => TypedResults.LocalRedirect(string.Empty)); 1198Assert.Throws<ArgumentException>("url", () => TypedResults.Redirect(string.Empty));
ValidationProblemResultTests.cs (1)
57Assert.Throws<ArgumentException>("problemDetails", () => new ValidationProblem(
Microsoft.AspNetCore.Http.Tests (3)
ResponseCookiesTest.cs (1)
270Assert.Throws<ArgumentException>(() => cookies.Append(key, "1"));
Timeouts\RequestTimeoutOptionsTests.cs (2)
49Assert.Throws<ArgumentException>(() => options.AddPolicy("", TimeSpan.FromSeconds(47))); 52Assert.Throws<ArgumentException>(() => options.AddPolicy("", new RequestTimeoutPolicy()));
Microsoft.AspNetCore.HttpLogging (2)
W3CLoggerOptions.cs (2)
67ArgumentException.ThrowIfNullOrEmpty(value); 83ArgumentException.ThrowIfNullOrEmpty(value);
Microsoft.AspNetCore.HttpLogging.Tests (2)
W3CLoggerOptionsTests.cs (2)
29Assert.Throws<ArgumentException>(() => options.FileName = ""); 36Assert.Throws<ArgumentException>(() => options.LogDirectory = "");
Microsoft.AspNetCore.HttpOverrides (8)
ForwardedHeadersMiddleware.cs (8)
53ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.ForwardedForHeaderName); 54ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.ForwardedHostHeaderName); 55ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.ForwardedProtoHeaderName); 56ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.ForwardedPrefixHeaderName); 57ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.OriginalForHeaderName); 58ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.OriginalHostHeaderName); 59ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.OriginalProtoHeaderName); 60ArgumentException.ThrowIfNullOrWhiteSpace(options.Value.OriginalPrefixHeaderName);
Microsoft.AspNetCore.Identity.EntityFrameworkCore (4)
UserStore.cs (4)
322ArgumentException.ThrowIfNullOrWhiteSpace(normalizedRoleName); 344ArgumentException.ThrowIfNullOrWhiteSpace(normalizedRoleName); 389ArgumentException.ThrowIfNullOrWhiteSpace(normalizedRoleName); 608ArgumentException.ThrowIfNullOrEmpty(normalizedRoleName);
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (3)
UserStoreTest.cs (3)
157await Assert.ThrowsAsync<ArgumentException>("normalizedRoleName", async () => await store.AddToRoleAsync(new IdentityUser("fake"), "")); 158await Assert.ThrowsAsync<ArgumentException>("normalizedRoleName", async () => await store.RemoveFromRoleAsync(new IdentityUser("fake"), "")); 159await Assert.ThrowsAsync<ArgumentException>("normalizedRoleName", async () => await store.IsInRoleAsync(new IdentityUser("fake"), ""));
Microsoft.AspNetCore.Identity.InMemory.Test (1)
InMemoryStore.cs (1)
60ArgumentException.ThrowIfNullOrEmpty(roleName);
Microsoft.AspNetCore.Identity.Test (3)
IdentityBuilderTest.cs (2)
32Assert.Throws<ArgumentException>(() => new IdentityBuilder(typeof(int), new ServiceCollection())); 38Assert.Throws<ArgumentException>(() => new IdentityBuilder(typeof(PocoUser), typeof(int), new ServiceCollection()));
UserClaimsPrincipalFactoryTest.cs (1)
18Assert.Throws<ArgumentException>("optionsAccessor",
Microsoft.AspNetCore.InternalTesting (20)
ExceptionAssertions.cs (16)
76/// Verifies that the code throws an <see cref="ArgumentException"/>. 82public static ArgumentException ThrowsArgument(Action testCode, string paramName, string exceptionMessage) 84return ThrowsArgumentInternal<ArgumentException>(testCode, paramName, exceptionMessage); 91where TException : ArgumentException 103/// Verifies that the code throws an <see cref="ArgumentException"/>. 109public static Task<ArgumentException> ThrowsArgumentAsync(Func<Task> testCode, string paramName, string exceptionMessage) 111return ThrowsArgumentAsyncInternal<ArgumentException>(testCode, paramName, exceptionMessage); 118where TException : ArgumentException 152public static ArgumentException ThrowsArgumentNullOrEmpty(Action testCode, string paramName) 154return ThrowsArgumentInternal<ArgumentException>(testCode, paramName, "Value cannot be null or empty."); 164public static Task<ArgumentException> ThrowsArgumentNullOrEmptyAsync(Func<Task> testCode, string paramName) 166return ThrowsArgumentAsyncInternal<ArgumentException>(testCode, paramName, "Value cannot be null or empty."); 176public static ArgumentException ThrowsArgumentNullOrEmptyString(Action testCode, string paramName) 178return ThrowsArgumentInternal<ArgumentException>(testCode, paramName, "Value cannot be null or an empty string."); 188public static Task<ArgumentException> ThrowsArgumentNullOrEmptyStringAsync(Func<Task> testCode, string paramName) 190return ThrowsArgumentAsyncInternal<ArgumentException>(testCode, paramName, "Value cannot be null or an empty string.");
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (4)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 30ArgumentException.ThrowIfNullOrEmpty(argument, paramName); 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary> 59ArgumentException.ThrowIfNullOrWhiteSpace(argument, paramName);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Metadata\ModelMetadataIdentity.cs (1)
54ArgumentException.ThrowIfNullOrEmpty(name);
Microsoft.AspNetCore.Mvc.Core (19)
ApiConventionMethodAttribute.cs (1)
42ArgumentException.ThrowIfNullOrEmpty(methodName);
ApplicationParts\ProvideApplicationPartFactoryAttribute.cs (1)
30ArgumentException.ThrowIfNullOrEmpty(factoryTypeName);
ApplicationParts\RelatedAssemblyAttribute.cs (1)
23ArgumentException.ThrowIfNullOrEmpty(assemblyFileName);
AreaAttribute.cs (1)
21ArgumentException.ThrowIfNullOrEmpty(areaName);
Builder\ControllerEndpointRouteBuilderExtensions.cs (1)
135ArgumentException.ThrowIfNullOrEmpty(areaName);
Builder\MvcAreaRouteBuilderExtensions.cs (1)
121ArgumentException.ThrowIfNullOrEmpty(areaName);
ControllerBase.cs (8)
330ArgumentException.ThrowIfNullOrEmpty(url); 344ArgumentException.ThrowIfNullOrEmpty(url); 359ArgumentException.ThrowIfNullOrEmpty(url); 374ArgumentException.ThrowIfNullOrEmpty(url); 388ArgumentException.ThrowIfNullOrEmpty(localUrl); 402ArgumentException.ThrowIfNullOrEmpty(localUrl); 417ArgumentException.ThrowIfNullOrEmpty(localUrl); 432ArgumentException.ThrowIfNullOrEmpty(localUrl);
Formatters\FormatterMappings.cs (1)
95ArgumentException.ThrowIfNullOrEmpty(format);
LocalRedirectResult.cs (2)
48ArgumentException.ThrowIfNullOrEmpty(localUrl); 75ArgumentException.ThrowIfNullOrEmpty(value);
RedirectResult.cs (2)
51ArgumentException.ThrowIfNullOrEmpty(url); 77ArgumentException.ThrowIfNullOrEmpty(value);
Microsoft.AspNetCore.Mvc.Core.Test (11)
ActionResultOfTTest.cs (6)
18var ex = Assert.Throws<ArgumentException>(() => new ActionResult<FileStreamResult>(value: input)); 29var ex = Assert.Throws<ArgumentException>(() => new ActionResult<FileStreamResult>(result: actionResult)); 40var ex = Assert.Throws<ArgumentException>(() => new ActionResult<TestResult>(value: result));
Formatters\FormatterMappingsTest.cs (1)
20Assert.Throws<ArgumentException>("format", () => options.GetMediaTypeMappingForFormat(format));
Formatters\MediaTypeTest.cs (1)
131Assert.Throws<ArgumentException>(() => new MediaType("lengthof9", 5, 5));
Infrastructure\ControllerActionInvokerTest.cs (1)
969var ex = await Assert.ThrowsAsync<ArgumentException>(
Routing\ControllerLinkGeneratorExtensionsTest.cs (2)
25var exception = Assert.Throws<ArgumentException>(() =>
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataTypeAttributeAdapter.cs (1)
19ArgumentException.ThrowIfNullOrEmpty(ruleName);
Microsoft.AspNetCore.Mvc.Razor (5)
RazorFileHierarchy.cs (1)
14ArgumentException.ThrowIfNullOrEmpty(path);
RazorViewEngine.cs (4)
110ArgumentException.ThrowIfNullOrEmpty(pageName); 133ArgumentException.ThrowIfNullOrEmpty(pagePath); 158ArgumentException.ThrowIfNullOrEmpty(viewName); 173ArgumentException.ThrowIfNullOrEmpty(viewPath);
Microsoft.AspNetCore.Mvc.RazorPages (40)
ApplicationModels\PageConventionCollection.cs (6)
89ArgumentException.ThrowIfNullOrEmpty(areaName); 133ArgumentException.ThrowIfNullOrEmpty(areaName); 174ArgumentException.ThrowIfNullOrEmpty(areaName); 215ArgumentException.ThrowIfNullOrEmpty(areaName); 252ArgumentException.ThrowIfNullOrEmpty(pageName); 263ArgumentException.ThrowIfNullOrEmpty(folderPath);
DependencyInjection\MvcRazorPagesMvcBuilderExtensions.cs (1)
41ArgumentException.ThrowIfNullOrEmpty(rootDirectory);
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (1)
72ArgumentException.ThrowIfNullOrEmpty(rootDirectory);
DependencyInjection\PageConventionCollectionExtensions.cs (15)
74ArgumentException.ThrowIfNullOrEmpty(pageName); 109ArgumentException.ThrowIfNullOrEmpty(areaName); 110ArgumentException.ThrowIfNullOrEmpty(pageName); 135ArgumentException.ThrowIfNullOrEmpty(folderPath); 170ArgumentException.ThrowIfNullOrEmpty(areaName); 171ArgumentException.ThrowIfNullOrEmpty(folderPath); 197ArgumentException.ThrowIfNullOrEmpty(pageName); 259ArgumentException.ThrowIfNullOrEmpty(areaName); 260ArgumentException.ThrowIfNullOrEmpty(pageName); 286ArgumentException.ThrowIfNullOrEmpty(folderPath); 348ArgumentException.ThrowIfNullOrEmpty(areaName); 349ArgumentException.ThrowIfNullOrEmpty(folderPath); 379ArgumentException.ThrowIfNullOrEmpty(pageName); 413ArgumentException.ThrowIfNullOrEmpty(areaName); 414ArgumentException.ThrowIfNullOrEmpty(pageName);
PageBase.cs (8)
413ArgumentException.ThrowIfNullOrEmpty(localUrl); 426ArgumentException.ThrowIfNullOrEmpty(localUrl); 440ArgumentException.ThrowIfNullOrEmpty(localUrl); 454ArgumentException.ThrowIfNullOrEmpty(localUrl); 490ArgumentException.ThrowIfNullOrEmpty(url); 503ArgumentException.ThrowIfNullOrEmpty(url); 517ArgumentException.ThrowIfNullOrEmpty(url); 531ArgumentException.ThrowIfNullOrEmpty(url);
PageModel.cs (8)
720ArgumentException.ThrowIfNullOrEmpty(localUrl); 733ArgumentException.ThrowIfNullOrEmpty(localUrl); 747ArgumentException.ThrowIfNullOrEmpty(localUrl); 761ArgumentException.ThrowIfNullOrEmpty(localUrl); 819ArgumentException.ThrowIfNullOrEmpty(url); 832ArgumentException.ThrowIfNullOrEmpty(url); 846ArgumentException.ThrowIfNullOrEmpty(url); 860ArgumentException.ThrowIfNullOrEmpty(url);
RazorPagesOptions.cs (1)
33ArgumentException.ThrowIfNullOrEmpty(value);
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
ApplicationModels\PageConventionCollectionTest.cs (3)
31var ex = ExceptionAssert.ThrowsArgument( 44var ex = ExceptionAssert.ThrowsArgument( 69var ex = ExceptionAssert.ThrowsArgument(
Infrastructure\DefaultPageActivatorProviderTest.cs (1)
63Assert.Throws<ArgumentException>(() => activator.CreateActivator(descriptor));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
ValidationSummaryTagHelper.cs (1)
49/// <exception cref="ArgumentException">
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
TagHelperOutputExtensionsTest.cs (4)
1053var exceptionAdd = Assert.Throws<ArgumentException>(() => tagHelperOutput.AddClass(classValue, htmlEncoder)); 1054var exceptionRemove = Assert.Throws<ArgumentException>(() => tagHelperOutput.RemoveClass(classValue, htmlEncoder));
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
HtmlHelper.cs (1)
1364/// <exception cref="ArgumentException">
RemoteAttributeBase.cs (2)
83ArgumentException.ThrowIfNullOrEmpty(property); 104ArgumentException.ThrowIfNullOrEmpty(property);
Rendering\IHtmlHelper.cs (2)
379/// <exception cref="ArgumentException"> 393/// <exception cref="ArgumentException">
Rendering\TagBuilder.cs (2)
37ArgumentException.ThrowIfNullOrEmpty(tagName); 279ArgumentException.ThrowIfNullOrEmpty(key);
ViewEngines\CompositeViewEngine.cs (2)
31ArgumentException.ThrowIfNullOrEmpty(viewName); 80ArgumentException.ThrowIfNullOrEmpty(viewPath);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
DefaultDisplayTemplatesTest.cs (2)
366var ex = Assert.Throws<ArgumentException>(() => helper.DisplayFor(m => m.Property1));
Rendering\HtmlHelperTest.cs (4)
324var exception = Assert.Throws<ArgumentException>("viewContext", () => helperToContextualize.Contextualize(viewContext)); 345var exception = Assert.Throws<ArgumentException>("viewContext", () => helperToContextualize.Contextualize(viewContext));
Microsoft.AspNetCore.OutputCaching.Tests (2)
MemoryOutputCacheStoreTests.cs (1)
208await Assert.ThrowsAsync<ArgumentException>(async () => await store.SetAsync(key, value, new string[] { tag }, TimeSpan.FromMinutes(1), default));
OutputCacheKeyProviderTests.cs (1)
299Assert.Throws<ArgumentException>(() =>
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
150Assert.Throws<ArgumentException>(() => collection.CopyTo(kvp, 1)); // The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingOptionsTests.cs (2)
38Assert.Throws<ArgumentException>(() => options.AddPolicy<string>("myKey", context => RateLimitPartition.GetNoLimiter<string>("yourKey"))); 46Assert.Throws<ArgumentException>(() => options.AddPolicy<string, TestRateLimiterPolicy>("myKey"));
Microsoft.AspNetCore.ResponseCaching.Tests (1)
ResponseCachingFeatureTests.cs (1)
52Assert.Throws<ArgumentException>(() => new ResponseCachingFeature().VaryByQueryKeys = value);
Microsoft.AspNetCore.Rewrite (10)
ApacheModRewrite\CookieActionFactory.cs (1)
19ArgumentException.ThrowIfNullOrEmpty(flagValue);
ApacheModRewrite\FlagParser.cs (1)
57ArgumentException.ThrowIfNullOrEmpty(flagString);
IISUrlRewrite\IISRewriteMap.cs (3)
12ArgumentException.ThrowIfNullOrEmpty(name); 26ArgumentException.ThrowIfNullOrEmpty(key); 27ArgumentException.ThrowIfNullOrEmpty(value);
RedirectRule.cs (2)
19ArgumentException.ThrowIfNullOrEmpty(regex); 20ArgumentException.ThrowIfNullOrEmpty(replacement);
RewriteRule.cs (2)
19ArgumentException.ThrowIfNullOrEmpty(regex); 20ArgumentException.ThrowIfNullOrEmpty(replacement);
UrlActions\ChangeCookieAction.cs (1)
21ArgumentException.ThrowIfNullOrEmpty(name);
Microsoft.AspNetCore.Rewrite.Tests (1)
ApacheModRewrite\FlagParserTest.cs (1)
62Assert.Throws<ArgumentException>(() => FlagParser.Parse(string.Empty));
Microsoft.AspNetCore.Routing (12)
DefaultLinkGenerator.cs (1)
158ArgumentException.ThrowIfNullOrEmpty(scheme);
LinkGeneratorEndpointNameAddressExtensions.cs (2)
308ArgumentException.ThrowIfNullOrEmpty(scheme); 357ArgumentException.ThrowIfNullOrEmpty(scheme);
Patterns\RoutePatternFactory.cs (9)
730ArgumentException.ThrowIfNullOrEmpty(content); 753ArgumentException.ThrowIfNullOrEmpty(content); 771ArgumentException.ThrowIfNullOrEmpty(parameterName); 794ArgumentException.ThrowIfNullOrEmpty(parameterName); 821ArgumentException.ThrowIfNullOrEmpty(parameterName); 855ArgumentException.ThrowIfNullOrEmpty(parameterName); 891ArgumentException.ThrowIfNullOrEmpty(parameterName); 990ArgumentException.ThrowIfNullOrEmpty(constraint); 1020ArgumentException.ThrowIfNullOrEmpty(parameterPolicy);
Microsoft.AspNetCore.Routing.Tests (27)
Template\TemplateParserTests.cs (27)
503ExceptionAssert.Throws<ArgumentException>( 516ExceptionAssert.Throws<ArgumentException>( 534ExceptionAssert.Throws<ArgumentException>( 550ExceptionAssert.Throws<ArgumentException>( 560var ex = ExceptionAssert.Throws<ArgumentException>( 575ExceptionAssert.Throws<ArgumentException>( 585ExceptionAssert.Throws<ArgumentException>( 595ExceptionAssert.Throws<ArgumentException>( 604ExceptionAssert.Throws<ArgumentException>( 614ExceptionAssert.Throws<ArgumentException>( 644ExceptionAssert.Throws<ArgumentException>( 652ExceptionAssert.Throws<ArgumentException>( 662ExceptionAssert.Throws<ArgumentException>( 672ExceptionAssert.Throws<ArgumentException>( 681ExceptionAssert.Throws<ArgumentException>( 690ExceptionAssert.Throws<ArgumentException>( 700ExceptionAssert.Throws<ArgumentException>( 709ExceptionAssert.Throws<ArgumentException>( 721ExceptionAssert.Throws<ArgumentException>( 733ExceptionAssert.Throws<ArgumentException>( 743ExceptionAssert.Throws<ArgumentException>( 752ExceptionAssert.Throws<ArgumentException>( 774ExceptionAssert.Throws<ArgumentException>( 783ExceptionAssert.Throws<ArgumentException>( 792ExceptionAssert.Throws<ArgumentException>( 804ExceptionAssert.Throws<ArgumentException>(
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\ResponseBody.cs (1)
604ArgumentException.ThrowIfNullOrEmpty(fileName);
UrlPrefix.cs (1)
70ArgumentException.ThrowIfNullOrEmpty(host);
Microsoft.AspNetCore.Server.HttpSys.Tests (1)
UrlPrefixTests.cs (1)
39Assert.Throws<ArgumentException>(() => UrlPrefix.Create(url));
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.FeatureCollection.cs (2)
288ArgumentException.ThrowIfNullOrEmpty(variableName); 298ArgumentException.ThrowIfNullOrEmpty(variableName);
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
80ArgumentException.ThrowIfNullOrEmpty(pairingToken);
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Common\DeploymentParameters.cs (1)
55ArgumentException.ThrowIfNullOrEmpty(applicationPath);
Deployers\ApplicationDeployer.cs (1)
44ArgumentException.ThrowIfNullOrEmpty(DeploymentParameters.ApplicationPath);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelConfigurationLoader.cs (1)
85ArgumentException.ThrowIfNullOrEmpty(name);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
HttpRequestHeadersTests.cs (3)
299Assert.Throws<ArgumentException>(() => headers.Add("host", new[] { "localhost" })); 300Assert.Throws<ArgumentException>(() => headers.Add("custom", new[] { "value" })); 301Assert.Throws<ArgumentException>(() => headers.Add("Content-Length", new[] { "0" }));
SniOptionsSelectorTests.cs (2)
324var exception = Assert.Throws<ArgumentException>(() => new SniOptionsSelector(
Microsoft.AspNetCore.Server.Kestrel.Tests (6)
ConfigurationReaderTests.cs (2)
97var exception = Assert.Throws<ArgumentException>(() =>
KestrelConfigurationLoaderTests.cs (4)
571var ex = Assert.Throws<ArgumentException>(() => 596var ex = Assert.Throws<ArgumentException>(() =>
Microsoft.AspNetCore.Session (2)
DistributedSession.cs (1)
67ArgumentException.ThrowIfNullOrEmpty(sessionKey);
DistributedSessionStore.cs (1)
35ArgumentException.ThrowIfNullOrEmpty(sessionKey);
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (4)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 30ArgumentException.ThrowIfNullOrEmpty(argument, paramName); 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary> 59ArgumentException.ThrowIfNullOrWhiteSpace(argument, paramName);
UrlDecoderTests.cs (2)
57Assert.Throws<ArgumentException>(() => UrlDecoder.DecodeRequestLine(source.AsSpan(), source.AsSpan(0, 1))); 64Assert.Throws<ArgumentException>(() => UrlDecoder.DecodeRequestLine(source.AsSpan(), source.AsSpan(0, 1), false));
WebEncodersTests.cs (2)
21Assert.ThrowsAny<ArgumentException>(() => 107Assert.ThrowsAny<ArgumentException>(() =>
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HttpConnectionTests.cs (2)
59var exception = Assert.Throws<ArgumentException>(() => new HttpConnection(new HttpConnectionOptions(), NullLoggerFactory.Instance));
LongPollingTransportTests.cs (1)
626var exception = await Assert.ThrowsAsync<ArgumentException>(() =>
ServerSentEventsTransportTests.cs (2)
380var ex = await Assert.ThrowsAsync<ArgumentException>(() => sseTransport.StartAsync(new Uri("http://fakeuri.org"), TransferFormat.Binary).DefaultTimeout()); 406var exception = await Assert.ThrowsAsync<ArgumentException>(() =>
Microsoft.AspNetCore.SignalR.Common (2)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.AspNetCore.SignalR.Tests (3)
DefaultTransportFactoryTests.cs (2)
35var exception = Assert.Throws<ArgumentException>(
WebSocketsTransportTests.cs (1)
219var exception = await Assert.ThrowsAsync<ArgumentException>(() =>
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
ExceptionMessageExtensions.cs (1)
8public static string GetLocalizationSafeMessage(this ArgumentException argEx)
Microsoft.AspNetCore.SpaServices.Extensions (9)
AngularCli\AngularCliBuilder.cs (1)
33ArgumentException.ThrowIfNullOrEmpty(npmScript);
AngularCli\AngularCliMiddleware.cs (1)
34ArgumentException.ThrowIfNullOrEmpty(scriptName);
Npm\NodeScriptRunner.cs (3)
27ArgumentException.ThrowIfNullOrEmpty(workingDirectory); 28ArgumentException.ThrowIfNullOrEmpty(scriptName); 29ArgumentException.ThrowIfNullOrEmpty(pkgManagerCommand);
Proxying\SpaProxy.cs (1)
228catch (ArgumentException)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
34ArgumentException.ThrowIfNullOrEmpty(scriptName);
SpaOptions.cs (2)
47ArgumentException.ThrowIfNullOrEmpty(value.Value); 86ArgumentException.ThrowIfNullOrEmpty(value);
Microsoft.AspNetCore.WebUtilities.Tests (4)
HttpRequestStreamReaderTest.cs (1)
368Assert.Throws<ArgumentException>(() =>
HttpResponseStreamWriterTest.cs (1)
756Assert.Throws<ArgumentException>(() =>
WebEncodersTests.cs (2)
18Assert.ThrowsAny<ArgumentException>(() => 36Assert.ThrowsAny<ArgumentException>(() =>
Microsoft.Build (33)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
934catch (ArgumentException) 1020catch (ArgumentException)
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
693catch (ArgumentException e)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
717catch (ArgumentException e)
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
130catch (ArgumentException ex)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
770ex is ArgumentException || // can't convert to bool 1116catch (ArgumentException) 1196ex is ArgumentException || // can't convert to bool
CommunicationsUtilities.cs (1)
578catch (ArgumentException ex)
Definition\ProjectCollection.cs (1)
350catch (ArgumentException ex)
Definition\ToolsetReader.cs (2)
532catch (ArgumentException e) 635catch (ArgumentException ex)
ErrorUtilities.cs (1)
610/// <exception cref="ArgumentException">If there is insufficient capacity to copy the collection contents into <paramref name="array"/>
Evaluation\Evaluator.cs (1)
2559catch (ArgumentException ex)
Evaluation\Expander.cs (6)
2276catch (ArgumentException) 2614catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 2812catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 2847catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 2880catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 2916catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException)
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 298|| e is ArgumentException)
FileMatcher.cs (1)
2082catch (ArgumentException)
Instance\TaskFactoryWrapper.cs (1)
288catch (ArgumentException)
Instance\TaskRegistry.cs (1)
420catch (ArgumentException ex)
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
118catch (ArgumentException e) // Catching Exception, but rethrowing unless it's a well-known exception.
Logging\FileLogger.cs (1)
220catch (ArgumentException ex)
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
133catch (ArgumentException)
ResourceUtilities.cs (1)
278catch (ArgumentException e)
TaskLoggingHelper.cs (1)
200/// <exception cref="ArgumentException">Thrown when the string resource indicated by <c>resourceName</c> does not exist.</exception>
TaskLoggingHelperExtension.cs (1)
89/// <exception cref="ArgumentException">Thrown when the string resource indicated by <c>resourceName</c> does not exist.</exception>
TypeLoader.cs (2)
180catch (ArgumentException e) 345catch (ArgumentException)
Microsoft.Build.CommandLine.UnitTests (1)
NodeStatus_Transition_Tests.cs (1)
37newNodeStatus.ShouldThrow<ArgumentException>().Message.ShouldContain("Target should not contain any escape codes, if you want to colorize target use the other constructor.");
Microsoft.Build.Engine (20)
Engine\EngineCallback.cs (1)
121catch (ArgumentException e)
Engine\Expander.cs (1)
925catch (ArgumentException ex)
Engine\TaskEngine.cs (3)
475catch (ArgumentException e) 1395catch (ArgumentException) 1511catch (ArgumentException)
Engine\TaskRegistry.cs (1)
330catch (ArgumentException ex)
Engine\ToolsetReader.cs (2)
396catch (ArgumentException e) 441catch (ArgumentException ex)
LocalProvider\LocalNode.cs (1)
515catch (ArgumentException)
LocalProvider\LocalNodeProvider.cs (2)
460catch (ArgumentException) 498catch (ArgumentException)
Logging\DistributedLoggers\DistributedFileLogger.cs (1)
113catch (ArgumentException e) // Catching Exception, but rethrowing unless it's a well-known exception.
Logging\FileLogger.cs (1)
195catch (ArgumentException ex)
Shared\ExceptionHandling.cs (1)
57|| e is ArgumentException
Shared\FileMatcher.cs (1)
1203catch (ArgumentException)
Shared\LoadedType.cs (1)
120catch (ArgumentException)
Shared\ResourceUtilities.cs (1)
207catch (ArgumentException e)
Shared\SolutionParser.cs (1)
482catch (ArgumentException)
Shared\TypeLoader.cs (2)
69catch (ArgumentException) 107catch (ArgumentException e)
Microsoft.Build.Engine.OM.UnitTests (35)
Construction\ConstructionEditing_Tests.cs (3)
1192Assert.Throws<ArgumentException>(() => 1205Assert.Throws<ArgumentException>(() => 2281Assert.Throws<ArgumentException>(() =>
Construction\ProjectImportElement_Tests.cs (1)
134Assert.Throws<ArgumentException>(() =>
Construction\ProjectImportGroupElement_Tests.cs (1)
339Assert.Throws<ArgumentException>(() =>
Construction\ProjectMetadataElement_Tests.cs (1)
247Assert.Throws<ArgumentException>(() =>
Construction\ProjectOnErrorElement_Tests.cs (1)
244Assert.Throws<ArgumentException>(() =>
Construction\ProjectPropertyElement_Tests.cs (1)
215Assert.Throws<ArgumentException>(() =>
Construction\ProjectTargetElement_Tests.cs (1)
31Assert.Throws<ArgumentException>(() =>
Construction\ProjectTaskElement_Tests.cs (2)
185Assert.Throws<ArgumentException>(() => 198Assert.Throws<ArgumentException>(() =>
Definition\DefinitionEditing_Tests.cs (2)
230Assert.Throws<ArgumentException>(() => 2149Assert.Throws<ArgumentException>(() =>
Definition\Project_Tests.cs (2)
2344Should.Throw<ArgumentException>(() => 2385Should.Throw<ArgumentException>(() =>
Definition\ProjectCollection_Tests.cs (2)
1069Assert.Throws<ArgumentException>(() => 1117Assert.Throws<ArgumentException>(() =>
Definition\ProjectItem_Tests.cs (4)
233Assert.Throws<ArgumentException>(() => 246Assert.Throws<ArgumentException>(() => 1940Assert.Throws<ArgumentException>(() => 2031Assert.Throws<ArgumentException>(() =>
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 298|| e is ArgumentException)
Instance\ProjectInstance_Tests.cs (1)
167Assert.Throws<ArgumentException>(() =>
Instance\ProjectItemInstance_Tests.cs (2)
227Assert.Throws<ArgumentException>(() => 313Assert.Throws<ArgumentException>(() =>
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
197Assert.ThrowsAny<ArgumentException>(() => newTarget1.Real.RemoveChild(newTask2.Real)); 200Assert.ThrowsAny<ArgumentException>(() => newTarget1.View.RemoveChild(newTask1.View)); 296Assert.ThrowsAny<ArgumentException>(() => newTask.Real.RemoveChild(newOutputItem2.Real)); 299Assert.ThrowsAny<ArgumentException>(() => newTask.View.RemoveChild(newOutputItem2.View));
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (4)
166Assert.Throws<ArgumentException>(() => 183Assert.Throws<ArgumentException>(() => 203Assert.Throws<ArgumentException>(() => 221Assert.Throws<ArgumentException>(() =>
ResourceUtilities.cs (1)
278catch (ArgumentException e)
Microsoft.Build.Engine.UnitTests (17)
BackEnd\TargetResult_Tests.cs (1)
68Assert.Equal(typeof(ArgumentException), result.Exception.GetType());
BackEnd\TaskExecutionHost_Tests.cs (1)
1056[InlineData(typeof(ArgumentException), false)]
BackEnd\TaskHostFactory_Tests.cs (1)
57catch (ArgumentException e)
Definition\ProjectEvaluationContext_Tests.cs (1)
136Should.Throw<ArgumentException>(() => EvaluationContext.Create(policy, fileSystem));
Definition\Toolset_Tests.cs (1)
44Assert.Throws<ArgumentException>(() =>
ErrorUtilities_Tests.cs (1)
95Assert.Throws<ArgumentException>(() =>
FileUtilities_Tests.cs (6)
294Assert.Throws<ArgumentException>(() => 459Assert.Throws<ArgumentException>(() => 468Assert.Throws<ArgumentException>(() => 477Assert.Throws<ArgumentException>(() => 486Assert.Throws<ArgumentException>(() => 529Assert.Throws<ArgumentException>(() =>
Globbing\MSBuildGlob_Tests.cs (1)
75Assert.Throws<ArgumentException>(() => MSBuildGlob.Parse(invalidPathChar.ToString(), "*"));
Graph\GraphLoadedFromSolution_tests.cs (2)
44var exception = Should.Throw<ArgumentException>(
Graph\ProjectGraph_Tests.cs (1)
1089Should.Throw<ArgumentException>(() => projectGraph.GetTargetLists(new[] { " " }));
XmlUtilities_Tests.cs (1)
56catch (ArgumentException ex)
Microsoft.Build.Framework (6)
EncodingUtilities.cs (1)
70catch (ArgumentException ex)
NativeMethods.cs (1)
1191catch (ArgumentException)
ThrowHelper.cs (4)
114private static ArgumentException GetAddingDuplicateWithKeyArgumentException(object? key) 198private static ArgumentException GetArgumentException(ExceptionResource resource) 203private static ArgumentException GetWrongKeyTypeArgumentException(object? key, Type targetType) 208private static ArgumentException GetWrongValueTypeArgumentException(object? value, Type targetType)
Microsoft.Build.Framework.UnitTests (1)
ResourceUtilities.cs (1)
278catch (ArgumentException e)
Microsoft.Build.Tasks.Core (63)
AssemblyDependency\ReferenceTable.cs (2)
645catch (ArgumentException) 736catch (ArgumentException)
AssemblyDependency\ResolveAssemblyReference.cs (2)
2169catch (ArgumentException) 2651catch (ArgumentException e)
AssignCulture.cs (1)
183catch (ArgumentException e)
BootstrapperUtil\BootstrapperBuilder.cs (7)
385catch (ArgumentException ex) 1058catch (ArgumentException ex) 1493catch (ArgumentException ex) 1892catch (ArgumentException ex) 2014catch (ArgumentException) 2053catch (ArgumentException) 2249catch (ArgumentException)
BootstrapperUtil\Util.cs (1)
70catch (ArgumentException)
CombinePath.cs (1)
73catch (ArgumentException e)
ConvertToAbsolutePath.cs (1)
69catch (ArgumentException e)
Copy.cs (2)
825catch (ArgumentException e) 920case ArgumentException: // Invalid chars
ErrorUtilities.cs (1)
610/// <exception cref="ArgumentException">If there is insufficient capacity to copy the collection contents into <paramref name="array"/>
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 298|| e is ArgumentException)
Exec.cs (3)
144catch (ArgumentException) 165catch (ArgumentException) 421catch (ArgumentException ex)
FileIO\WriteLinesToFile.cs (1)
89catch (ArgumentException)
FileMatcher.cs (2)
840catch (ArgumentException) { } 2082catch (ArgumentException)
FindAppConfigFile.cs (1)
141catch (ArgumentException ex)
FindInList.cs (1)
117catch (ArgumentException ex)
FormatVersion.cs (1)
74catch (ArgumentException)
GenerateApplicationManifest.cs (1)
347catch (ArgumentException)
GenerateDeploymentManifest.cs (2)
283catch (ArgumentException) 300catch (ArgumentException)
GenerateManifestBase.cs (2)
375catch (ArgumentException) 406catch (ArgumentException)
GenerateResource.cs (3)
2069catch (ArgumentException e) 2607catch (ArgumentException ae) 2916catch (ArgumentException ex)
GetReferenceAssemblyPaths.cs (1)
189catch (ArgumentException e)
ManifestUtil\AssemblyIdentity.cs (1)
277catch (ArgumentException e) when (e.HResult == unchecked((int)0x80070057))
ManifestUtil\ConvertUtil.cs (1)
31catch (ArgumentException)
ManifestUtil\DeployManifest.cs (5)
169catch (ArgumentException) 269catch (ArgumentException) 511catch (ArgumentException) { return 1; } 529catch (ArgumentException) { return UpdateMode.Foreground; } 545catch (ArgumentException) { return UpdateUnit.Days; }
ManifestUtil\ManifestWriter.cs (1)
139catch (ArgumentException)
ManifestUtil\Util.cs (5)
330catch (ArgumentException) 361catch (ArgumentException) 498catch (ArgumentException) 533catch (ArgumentException) 562catch (ArgumentException)
Message.cs (1)
63catch (ArgumentException)
MetadataConversionUtilities.cs (1)
44catch (System.ArgumentException e)
Move.cs (1)
135catch (ArgumentException e)
MSBuild.cs (1)
641catch (ArgumentException e)
ResGenDependencies.cs (1)
253/// <exception cref="ArgumentException">May be thrown if Resx is invalid. May contain XmlException.</exception>
ResolveKeySource.cs (1)
101catch (ArgumentException ex)
ResolveManifestFiles.cs (2)
244catch (ArgumentException) 1002catch (ArgumentException)
ResourceUtilities.cs (1)
278catch (ArgumentException e)
SdkToolsPathUtility.cs (1)
83catch (ArgumentException e)
SignFile.cs (1)
62catch (ArgumentException ex) when (ex.ParamName.Equals("certThumbprint"))
TaskLoggingHelperExtension.cs (1)
89/// <exception cref="ArgumentException">Thrown when the string resource indicated by <c>resourceName</c> does not exist.</exception>
Microsoft.Build.Tasks.UnitTests (7)
CommandLineBuilderExtension_Tests.cs (2)
28Assert.Throws<ArgumentException>(() => 48catch (ArgumentException e)
ErrorUtilities_Tests.cs (1)
95Assert.Throws<ArgumentException>(() =>
FileStateTests.cs (2)
23Assert.Throws<ArgumentException>(() => 44Assert.Throws<ArgumentException>(() => { var time = state.LastWriteTime; });
FormatUrl_Tests.cs (1)
91Should.Throw<ArgumentException>(() => t.Execute());
ToolTaskExtension_Tests.cs (1)
58Assert.Throws<ArgumentException>(() =>
Microsoft.Build.Utilities.Core (12)
ErrorUtilities.cs (1)
610/// <exception cref="ArgumentException">If there is insufficient capacity to copy the collection contents into <paramref name="array"/>
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 298|| e is ArgumentException)
FileMatcher.cs (2)
840catch (ArgumentException) { } 2082catch (ArgumentException)
ResourceUtilities.cs (1)
278catch (ArgumentException e)
TaskLoggingHelper.cs (1)
200/// <exception cref="ArgumentException">Thrown when the string resource indicated by <c>resourceName</c> does not exist.</exception>
ToolLocationHelper.cs (2)
1504catch (ArgumentException) 1535catch (ArgumentException e)
ToolTask.cs (3)
1279catch (ArgumentException) 1299catch (ArgumentException) 1595catch (ArgumentException e)
Microsoft.Build.Utilities.UnitTests (64)
CommandLineBuilder_Tests.cs (2)
284Should.Throw<ArgumentException>(() => 481Should.Throw<ArgumentException>(() =>
ErrorUtilities_Tests.cs (1)
95Assert.Throws<ArgumentException>(() =>
StringExtensions_Tests.cs (1)
67[InlineData("ab", "", "x", StringComparison.CurrentCulture, typeof(ArgumentException))]
TaskItem_Tests.cs (3)
132Should.Throw<ArgumentException>(() => 152Should.Throw<ArgumentException>(() => 295Should.Throw<ArgumentException>(() =>
ToolLocationHelper_Tests.cs (57)
727Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey((TargetDotNetFrameworkVersion)99, vsVersion)); 733Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(dotNetVersion, (VisualStudioVersion)99)); 745Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version30, vsVersion)); 777Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100)); 778Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110)); 783Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version100)); 784Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version452, VisualStudioVersion.Version110)); 789Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100)); 790Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110)); 791Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120)); 795Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version100)); 796Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version110)); 797Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version461, VisualStudioVersion.Version120)); 801Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version100)); 802Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version110)); 803Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version462, VisualStudioVersion.Version120)); 807Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version100)); 808Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version110)); 809Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version47, VisualStudioVersion.Version120)); 813Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version100)); 814Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version110)); 815Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version471, VisualStudioVersion.Version120)); 819Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version100)); 820Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version110)); 821Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version472, VisualStudioVersion.Version120)); 825Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version100)); 826Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version110)); 827Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version120)); 828Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version48, VisualStudioVersion.Version140)); 834Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version100)); 835Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version110)); 836Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version120)); 837Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version140)); 838Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version150)); 839Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkRootRegistryKey(TargetDotNetFrameworkVersion.Version481, VisualStudioVersion.Version160)); 852Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue((TargetDotNetFrameworkVersion)99, vsVersion)); 858Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(dotNetVersion, (VisualStudioVersion)99)); 872Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version30, vsVersion)); 885Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100)); 886Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110)); 891Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100)); 892Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110)); 893Should.Throw<ArgumentException>(() => ToolLocationHelper.GetDotNetFrameworkSdkInstallKeyValue(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120)); 907Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk((TargetDotNetFrameworkVersion)99, vsVersion)); 913Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(dotNetVersion, (VisualStudioVersion)99)); 947Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version30, vsVersion)); 966Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version100)); 967Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version451, VisualStudioVersion.Version110)); 972Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version100)); 973Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version110)); 974Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion.Version46, VisualStudioVersion.Version120)); 1873Should.Throw<ArgumentException>(() => 1886Should.Throw<ArgumentException>(() => 2978Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPlatformExtensionSDKLocations(identifier, version)); 2979Should.Throw<ArgumentException>(() => ToolLocationHelper.GetPlatformSDKLocation(identifier, version)); 3097Should.Throw<ArgumentException>(() => { ToolLocationHelper.GatherSDKListFromDirectory(paths, targetPlatform); }); 3120Should.Throw<ArgumentException>(() => new SDKManifest(""));
Microsoft.Cci.Extensions (1)
HostEnvironment.cs (1)
743catch (ArgumentException)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
334catch (ArgumentException)
Microsoft.DotNet.Build.Tasks.Workloads (1)
WorkloadPackPackage.wix.cs (1)
111/// <exception cref="ArgumentException"></exception>
Microsoft.DotNet.Helix.Client (2)
ApiFactory.cs (2)
26/// <see cref="ArgumentException"/> triggered by <c>SendAsync</c> call. 52/// <see cref="ArgumentException"/> triggered by <c>SendAsync</c> call.
Microsoft.DotNet.Helix.JobSender.Tests (4)
Payloads\AdHocPayloadTests.cs (4)
13var exception = Assert.Throws<ArgumentException>(() => new AdhocPayload(new[] { "a/b.txt", "a/c.txt", "d/b.txt" })); 21var exception = Assert.Throws<ArgumentException>(() => new AdhocPayload(new[] { "a/B.txt", "a/c.txt", "d/b.txt" }));
Microsoft.DotNet.Helix.Sdk (1)
HelixTask.cs (1)
73catch (ArgumentException argEx) when (argEx.Message.StartsWith("Helix API does not contain an entry "))
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
361catch (ArgumentException e)
Microsoft.DotNet.VersionTools.Tests (40)
BuildManifest\ManifestModelTests.cs (40)
33[InlineData(typeof(ArgumentException), ".ps1", "FOOCERT", ".ps1", "barcert")] // Conflict 34[InlineData(typeof(ArgumentException), ".ps1", "FOOCERT", ".PS1", "barcert")] // Conflict 35[InlineData(typeof(ArgumentException), "foo.ps1", "FOOCERT", ".PS1", "barcert")] // Conflict 36[InlineData(typeof(ArgumentException), ".ps1", "")] // Can't be empty 37[InlineData(typeof(ArgumentException), "", "bar")] // Can't be empty 84[InlineData(typeof(ArgumentException), ".ps1", "FOOCERT", ".ps1", "barcert")] // Conflict 85[InlineData(typeof(ArgumentException), ".ps1", "FOOCERT", ".PS1", "barcert")] // Conflict 86[InlineData(typeof(ArgumentException), "foo.ps1", "FOOCERT", ".PS1", "barcert")] // Conflict 87[InlineData(typeof(ArgumentException), ".ps1", "")] // Can't be empty 88[InlineData(typeof(ArgumentException), "", "bar")] // Can't be empty 132[InlineData(typeof(ArgumentException), "foo/bar.bat", "foocert", null, null)] // Invalid file name 133[InlineData(typeof(ArgumentException), "foo\\bar.bat", "foocert", null, null)] // Invalid file name 134[InlineData(typeof(ArgumentException), "bar.bat", "", null, null)] // Empty cert 135[InlineData(typeof(ArgumentException), "bar.bat", null, null, null)] // Null cert 136[InlineData(typeof(ArgumentException), "bar.bat", "foocert", "net5", null)] // Invalid tfm 137[InlineData(typeof(ArgumentException), "bar.bat", "foocert", "net5.0", "zzz")] // Invalid pkt 139[InlineData(typeof(ArgumentException), "bar.bat", "foocert2", null, null, "bar.bat", "foocert", null, null)] 142[InlineData(typeof(ArgumentException), "bar.bat", "foocert2", ".NETCoreApp,Version=v1.0", "aaaaaaaaaaaaaaaa", "bar.bat", "foocert", ".NETCoreApp,Version=v1.0", "aaaaaaaaaaaaaaaa")] 208[InlineData(typeof(ArgumentException), "foo/bar.bat", "foocert", null, null)] // Invalid file name 209[InlineData(typeof(ArgumentException), "foo\\bar.bat", "foocert", null, null)] // Invalid file name 210[InlineData(typeof(ArgumentException), "bar.bat", "", null, null)] // Empty cert 211[InlineData(typeof(ArgumentException), "bar.bat", null, null, null)] // Null cert 212[InlineData(typeof(ArgumentException), "bar.bat", "foocert", "net5", null)] // Invalid tfm 213[InlineData(typeof(ArgumentException), "bar.bat", "foocert", "net5.0", "zzz")] // Invalid pkt 215[InlineData(typeof(ArgumentException), "bar.bat", "foocert2", null, null, "bar.bat", "foocert", null, null)] 218[InlineData(typeof(ArgumentException), "bar.bat", "foocert2", ".NETCoreApp,Version=v1.0", "aaaaaaaaaaaaaaaa", "bar.bat", "foocert", ".NETCoreApp,Version=v1.0", "aaaaaaaaaaaaaaaa")] 252[InlineData(typeof(ArgumentException), "foocert", "true", "foocert", "false")] 288[InlineData(typeof(ArgumentException), "", "true")] // No cert 289[InlineData(typeof(ArgumentException), "", "false")] // No cert 292[InlineData(typeof(ArgumentException), "foocert", "true", "foocert", "false")] 324[InlineData(typeof(ArgumentException), "MyStrongName", "", "Mycert")] // Invalid strong name key 325[InlineData(typeof(ArgumentException), "MyStrongName", "aaaaaaaaaaaaaaaa", "")] // Invalid cert 326[InlineData(typeof(ArgumentException), "MyStrongName", "aaaaaaaaaaaa", "Mycert")] // Invalid strong name key 328[InlineData(typeof(ArgumentException), "MyStrongName2", "aaaaaaaaaaaaaaaa", "Mycert", "MyStrongName", "aaaaaaaaaaaaaaaa", "Mycert")] // Different strong names 329[InlineData(typeof(ArgumentException), "MyStrongName", "aaaaaaaaaaaaaaaa", "Mycert", "MyStrongName", "aaaaaaaaaaaaaaaa", "Mycert2")] // Different certs 365[InlineData(typeof(ArgumentException), "MyStrongName", "", "Mycert")] // Invalid strong name key 366[InlineData(typeof(ArgumentException), "MyStrongName", "aaaaaaaaaaaaaaaa", "")] // Invalid cert 367[InlineData(typeof(ArgumentException), "MyStrongName", "aaaaaaaaaaaa", "Mycert")] // Invalid strong name key 369[InlineData(typeof(ArgumentException), "MyStrongName2", "aaaaaaaaaaaaaaaa", "Mycert", "MyStrongName", "aaaaaaaaaaaaaaaa", "Mycert")] // Different strong names 370[InlineData(typeof(ArgumentException), "MyStrongName", "aaaaaaaaaaaaaaaa", "Mycert", "MyStrongName", "aaaaaaaaaaaaaaaa", "Mycert2")] // Different certs
Microsoft.Extensions.Caching.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Caching.Memory (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Caching.SqlServer (4)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (4)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 30ArgumentException.ThrowIfNullOrEmpty(argument, paramName); 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary> 59ArgumentException.ThrowIfNullOrWhiteSpace(argument, paramName);
Microsoft.Extensions.Configuration (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.Binder (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.CommandLine (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.FileExtensions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.Ini (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.Json (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.KeyPerFile.Tests (3)
ConfigurationProviderTestBase.cs (1)
124Assert.True(caught is ArgumentException
KeyPerFileTests.cs (2)
35var e = Assert.Throws<ArgumentException>(() => new ConfigurationBuilder().AddKeyPerFile("nonexistent", false).Build());
Microsoft.Extensions.Configuration.UserSecrets (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Configuration.Xml (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\CallSiteFactory.cs (1)
442catch (ArgumentException)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.DependencyModel (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Diagnostics (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
DefaultHealthCheckServiceTest.cs (2)
47var exception = Assert.Throws<ArgumentException>(() => new DefaultHealthCheckService(scopeFactory, options, logger));
Microsoft.Extensions.FileProviders.Composite (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.FileProviders.Embedded (4)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (4)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 30ArgumentException.ThrowIfNullOrEmpty(argument, paramName); 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary> 59ArgumentException.ThrowIfNullOrWhiteSpace(argument, paramName);
Microsoft.Extensions.FileProviders.Physical (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.FileSystemGlobbing (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Hosting (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Hosting.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Hosting.Systemd (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Hosting.WindowsServices (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Http (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Localization (4)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (4)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 30ArgumentException.ThrowIfNullOrEmpty(argument, paramName); 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary> 59ArgumentException.ThrowIfNullOrWhiteSpace(argument, paramName);
Microsoft.Extensions.Logging (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Logging.AzureAppServices (2)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
Microsoft.Extensions.Logging.Configuration (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Logging.Debug (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Logging.EventLog (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Logging.EventSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Logging.TraceSource (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Options (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Options.ConfigurationExtensions (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Options.DataAnnotations (1)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
Microsoft.Extensions.Primitives (2)
StringValues.cs (1)
351/// <exception cref="ArgumentException">The number of elements in the source <see cref="StringValues"></see> is greater than the available space from <paramref name="arrayIndex">arrayIndex</paramref> to the end of the destination <paramref name="array">array</paramref>.</exception>
ThrowHelper.cs (1)
54internal static ArgumentException GetArgumentException(ExceptionResource resource)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
InitCommandTest.cs (1)
138Assert.Throws<ArgumentException>(() =>
Microsoft.JSInterop (3)
Infrastructure\DotNetDispatcher.cs (2)
353ArgumentException.ThrowIfNullOrWhiteSpace(assemblyKey.AssemblyName); 354ArgumentException.ThrowIfNullOrWhiteSpace(methodIdentifier);
JSInvokableAttribute.cs (1)
38ArgumentException.ThrowIfNullOrEmpty(identifier);
Microsoft.JSInterop.Tests (15)
DotNetObjectReferenceTest.cs (1)
79Assert.Throws<ArgumentException>(() => jsRuntime.GetObjectReference(objectId));
Infrastructure\DotNetDispatcherTest.cs (14)
42var ex = Assert.Throws<ArgumentException>(() => 64var ex = Assert.Throws<ArgumentException>(() => 238var ex = Assert.Throws<ArgumentException>( 257var ex = Assert.Throws<ArgumentException>( 498var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.Invoke(jsRuntime, new DotNetInvocationInfo(thisAssemblyName, methodIdentifier, 0, default), "[7]")); 513var ex = Assert.Throws<ArgumentException>(() => DotNetDispatcher.Invoke(jsRuntime, new DotNetInvocationInfo(null, methodIdentifier, 1, default), argsJson)); 543var ex = Assert.Throws<ArgumentException>(() =>
Microsoft.Net.Http.Headers (3)
ContentDispositionHeaderValue.cs (2)
604catch (ArgumentException) 748catch (ArgumentException)
MediaTypeHeaderValue.cs (1)
123catch (ArgumentException)
Microsoft.Net.Http.Headers.Tests (24)
CacheControlHeaderValueTest.cs (2)
46Assert.Throws<ArgumentException>(() => cacheControl.NoCacheHeaders.Add(null)); 53Assert.Throws<ArgumentException>(() => cacheControl.PrivateHeaders.Add(null));
ContentDispositionHeaderValueTest.cs (2)
14Assert.Throws<ArgumentException>(() => new ContentDispositionHeaderValue(null)); 21Assert.Throws<ArgumentException>(() => new ContentDispositionHeaderValue(string.Empty));
ContentRangeHeaderValueTest.cs (2)
79Assert.Throws<ArgumentException>(() => range.Unit = null); 80Assert.Throws<ArgumentException>(() => range.Unit = "");
CookieHeaderValueTest.cs (2)
161Assert.Throws<ArgumentException>(() => new CookieHeaderValue(name, "value")); 168Assert.Throws<ArgumentException>(() => new CookieHeaderValue("name", value));
EntityTagHeaderValueTest.cs (2)
11Assert.Throws<ArgumentException>(() => new EntityTagHeaderValue(null)); 13Assert.Throws<ArgumentException>(() => new EntityTagHeaderValue(string.Empty));
MediaTypeHeaderValueTest.cs (2)
13Assert.Throws<ArgumentException>(() => new MediaTypeHeaderValue(null)); 15Assert.Throws<ArgumentException>(() => new MediaTypeHeaderValue(string.Empty));
NameValueHeaderValueTest.cs (2)
11Assert.Throws<ArgumentException>(() => new NameValueHeaderValue(null)); 13Assert.Throws<ArgumentException>(() => new NameValueHeaderValue(string.Empty));
RangeConditionHeaderValueTest.cs (1)
26Assert.Throws<ArgumentException>(() => new RangeConditionHeaderValue((string?)null));
RangeHeaderValueTest.cs (2)
21Assert.Throws<ArgumentException>(() => range.Unit = null); 22Assert.Throws<ArgumentException>(() => range.Unit = "");
RangeItemHeaderValueTest.cs (1)
11Assert.Throws<ArgumentException>(() => new RangeItemHeaderValue(null, null));
SetCookieHeaderValueTest.cs (2)
307Assert.Throws<ArgumentException>(() => new SetCookieHeaderValue(name, "value")); 314Assert.Throws<ArgumentException>(() => new SetCookieHeaderValue("name", value));
StringWithQualityHeaderValueTest.cs (4)
15Assert.Throws<ArgumentException>(() => new StringWithQualityHeaderValue(null)); 16Assert.Throws<ArgumentException>(() => new StringWithQualityHeaderValue("")); 27Assert.Throws<ArgumentException>(() => new StringWithQualityHeaderValue(null, 0.1)); 28Assert.Throws<ArgumentException>(() => new StringWithQualityHeaderValue("", 0.1));
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\Collection.vb (1)
57Catch ex As ArgumentException
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
1916Catch ex As ArgumentException
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (1)
173Catch ex As ArgumentException
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
312ByVal ResourceID As String, ByVal ParamArray PlaceHolders() As String) As ArgumentException
Microsoft\VisualBasic\CompilerServices\Symbols.vb (1)
1488Catch ex As ArgumentException
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
46Catch ex As ArgumentException 'Invalid combination of FileMode and OpenAccess
Microsoft\VisualBasic\FileIO\FileSystem.vb (4)
221''' <exception cref="ArgumentException">path contains one or more of the invalid characters defined in InvalidPathChars.</exception> 1330Debug.Assert(Not (TypeOf ex Is ArgumentException Or TypeOf ex Is ArgumentOutOfRangeException Or 1509If TypeOf ex Is ArgumentException OrElse 1517Debug.Assert(Not (TypeOf ex Is ArgumentException OrElse
Microsoft.Web.Xdt.Extensions (2)
src\Shared\ThrowHelpers\ArgumentThrowHelper.cs (2)
14/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty.</summary> 42/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null or an <see cref="ArgumentException"/> if it is empty or whitespace.</summary>
MSBuild (7)
CommunicationsUtilities.cs (1)
578catch (ArgumentException ex)
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 298|| e is ArgumentException)
ResourceUtilities.cs (1)
278catch (ArgumentException e)
TypeLoader.cs (2)
180catch (ArgumentException e) 345catch (ArgumentException)
XMake.cs (1)
3310catch (ArgumentException ex)
MSBuildTaskHost (7)
CommunicationsUtilities.cs (1)
578catch (ArgumentException ex)
ExceptionHandling.cs (2)
167|| (e is ArgumentException && !(e is ArgumentNullException)) 298|| e is ArgumentException)
NativeMethods.cs (1)
1191catch (ArgumentException)
ResourceUtilities.cs (1)
278catch (ArgumentException e)
TypeLoader.cs (2)
254catch (ArgumentException) 307catch (ArgumentException e)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
48[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentException))]
netstandard (1)
netstandard.cs (1)
41[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentException))]
PresentationBuildTasks (4)
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
89catch (ArgumentException)
MS\Internal\Tasks\TaskHelper.cs (1)
190catch (ArgumentException)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
2660catch (ArgumentException)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
117catch (ArgumentException)
PresentationCore (49)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (1)
78catch (Exception e) when (e is ArgumentException || e is UnauthorizedAccessException || e is COMException)
MS\Internal\FontFace\CompositeFontParser.cs (1)
216catch (ArgumentException x)
MS\Internal\Ink\ExtendedProperty.cs (2)
30/// <exception cref="System.ArgumentException">Value type must be compatible with attribute Id</exception> 156/// <exception cref="System.ArgumentException">Value type must be compatible with attribute Id</exception>
MS\Internal\Ink\ExtendedPropertyCollection.cs (1)
233/// <exception cref="System.ArgumentException">Specified identifier was not found</exception>
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (1)
963catch (ArgumentException ex)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
144catch (ArgumentException ex)
MS\Internal\IO\Packaging\PreloadedPackages.cs (2)
58/// <exception cref="ArgumentException">uri must be absolute</exception> 71/// <exception cref="ArgumentException">uri must be absolute</exception>
MS\Internal\TextFormatting\CultureMapper.cs (1)
65catch (ArgumentException)
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggingProvider.cs (1)
43catch(ArgumentException)
System\IO\Packaging\PackWebRequest.cs (2)
52/// <exception cref="ArgumentException">Will throw an ArgumentException if the given URI is not of the correct scheme</exception> 68/// <exception cref="ArgumentException">Will throw an ArgumentException if the given URI is not of the correct scheme</exception>
System\Windows\clipboard.cs (1)
301catch (ArgumentException)
System\Windows\CultureInfoConverter.cs (2)
81/// <exception cref="ArgumentException"> 110/// <exception cref="ArgumentException">
System\Windows\dataobject.cs (1)
498catch (ArgumentException e)
System\Windows\Documents\DynamicDocumentPaginator.cs (5)
41/// <exception cref="ArgumentException"> 51/// <exception cref="ArgumentException"> 65/// <exception cref="ArgumentException"> 90/// <exception cref="ArgumentException"> 100/// <exception cref="ArgumentException">
System\Windows\IContentHost.cs (2)
39/// <exception cref="ArgumentException"> 69/// <exception cref="ArgumentException">
System\Windows\Ink\StrokeCollection.cs (3)
402ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokes"); 494ArgumentException ae = new ArgumentException(SR.EmptyScToReplace, "strokesToReplace"); 507ArgumentException ae = new ArgumentException(SR.InvalidRemovedStroke, "strokesToReplace");
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (1)
1144|| e is ArgumentException
System\Windows\Markup\XmlLanguage.cs (5)
115/// <exception cref="ArgumentException"> 202catch (ArgumentException e) 256catch (ArgumentException e) 297catch (ArgumentException) 715/// <exception cref="ArgumentException">tag is non-empty, but does not conform to RFC 3066.</exception>
System\Windows\Markup\XmlLanguageConverter.cs (2)
74/// <exception cref="ArgumentException"> 103/// <exception cref="ArgumentException">
System\Windows\Media\Animation\TimelineGroup.cs (1)
143/// <exception cref="ArgumentException">The child parameter is not a
System\Windows\Media\FontEmbeddingManager.cs (1)
111/// <exception cref="System.ArgumentException">
System\Windows\Media\FontFamily.cs (1)
557catch (ArgumentException)
System\Windows\Media\RequestCachePolicyConverter.cs (1)
103/// <exception cref="ArgumentException">
System\Windows\Media\Visual.cs (3)
4321/// <exception cref="ArgumentException"> 4342/// <exception cref="ArgumentException"> 4360/// <exception cref="ArgumentException">
System\Windows\Media\VisualCollection.cs (4)
327/// <exception cref="ArgumentException">If the new child has already a parent or if the slot a the specified index is not null.</exception> 381/// <exception cref="ArgumentException">If the new child has already a parent or if the slot a the specified index is not null.</exception> 459/// <exception cref="ArgumentException">If the new child has already a parent.</exception> 776/// <exception cref="ArgumentException">
System\Windows\Media3D\Visual3D.cs (3)
1618/// <exception cref="ArgumentException"> 1638/// <exception cref="ArgumentException"> 1786/// <exception cref="ArgumentException">
PresentationFramework (168)
Microsoft\Win32\CommonItemDialog.cs (1)
438catch (ArgumentException)
Microsoft\Win32\FileDialog.cs (1)
301/// <exception cref="System.ArgumentException">
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
194/// <exception cref="ArgumentException">locatorPart is of the incorrect
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (2)
111/// <exception cref="ArgumentException">node points to a Document Page View which 170/// <exception cref="ArgumentException">locatorPart is of the incorrect
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (8)
94/// <exception cref="ArgumentException">selection is of wrong type</exception> 95/// <exception cref="ArgumentException">selection start or end point can not be resolved to a page</exception> 162/// <exception cref="ArgumentException">selection is of wrong type</exception> 178/// <exception cref="ArgumentException">selection is of wrong type</exception> 193/// <exception cref="ArgumentException">selection is of the wrong type</exception> 261/// <exception cref="ArgumentException">locatorPart is of the incorrect type</exception> 262/// <exception cref="ArgumentException">startNode is not a FixedPage</exception> 263/// <exception cref="ArgumentException">startNode does not belong to the DocumentViewer</exception>
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
355/// <exception cref="ArgumentException">if no processor is registered for 407/// <exception cref="ArgumentException">offset is negative or greater than
MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (5)
79/// <exception cref="ArgumentException">selection is of wrong type</exception> 88/// <exception cref="ArgumentException">selection is of wrong type</exception> 97/// <exception cref="ArgumentException">selection is of wrong type</exception> 110/// <exception cref="ArgumentException">startNode is not a DependencyObject or 126/// <exception cref="ArgumentException">locatorPart is of the incorrect type</exception>
MS\Internal\Annotations\Anchoring\SubTreeProcessor.cs (1)
145/// <exception cref="ArgumentException">locatorPart is of the incorrect
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (3)
112/// <exception cref="ArgumentException">selection is of wrong type</exception> 156/// <exception cref="ArgumentException">selection is of wrong type</exception> 230/// <exception cref="ArgumentException">anchor is of wrong type</exception>
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (5)
91/// <exception cref="ArgumentException">selection is of wrong type</exception> 103/// <exception cref="ArgumentException">selection is of wrong type</exception> 116/// <exception cref="ArgumentException">selection is of wrong type</exception> 133/// <exception cref="ArgumentException">selection is of the wrong type</exception> 196/// <exception cref="ArgumentException">locatorPart is of the incorrect type</exception>
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (4)
81/// <exception cref="ArgumentException">selection is of wrong type</exception> 96/// <exception cref="ArgumentException">selection is of wrong type</exception> 113/// <exception cref="ArgumentException">selection is of wrong type</exception> 133/// <exception cref="ArgumentException">selection is of the wrong type</exception>
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (5)
85/// <exception cref="ArgumentException">selection is of wrong type</exception> 97/// <exception cref="ArgumentException">selection is of wrong type</exception> 117/// <exception cref="ArgumentException">selection is of wrong type</exception> 143/// <exception cref="ArgumentException">startNode is not a DependencyObject or 165/// <exception cref="ArgumentException">locatorPart is of the incorrect type</exception>
MS\Internal\Annotations\ObservableDictionary.cs (1)
64/// <exception cref="ArgumentException">a value for key is already present in the locator part</exception>
MS\Internal\Data\ViewManager.cs (1)
493/// <exception cref="ArgumentException">
MS\Internal\Documents\ContentElementCollection.cs (6)
62/// <exception cref="ArgumentException"> 95/// <exception cref="ArgumentException"> 150/// <exception cref="ArgumentException"> 233/// <exception cref="ArgumentException"> 272/// <exception cref="ArgumentException"> 680/// <exception cref="ArgumentException">
MS\Internal\Documents\FlowDocumentPaginator.cs (4)
213/// <exception cref="ArgumentException"> 268/// <exception cref="ArgumentException"> 344/// <exception cref="ArgumentException"> 409/// <exception cref="ArgumentException">
MS\Internal\Documents\TableColumnCollectionInternal.cs (4)
35/// <exception cref="ArgumentException"> 131/// <exception cref="ArgumentException"> 202/// <exception cref="ArgumentException"> 263/// <exception cref="ArgumentException">
MS\Internal\Documents\TableTextElementCollectionInternal.cs (4)
39/// <exception cref="ArgumentException"> 139/// <exception cref="ArgumentException"> 212/// <exception cref="ArgumentException"> 252/// <exception cref="ArgumentException">
MS\Internal\Ink\EraserBehavior.cs (1)
426catch (ArgumentException ex)
MS\Internal\Ink\ISFClipboardData.cs (1)
99catch ( ArgumentException )
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (2)
41/// <exception cref="System.ArgumentException"><paramref name="language"/> is not a well-formed language identifier</exception> 77(e is ArgumentException) ||
src\Microsoft.DotNet.Wpf\src\Shared\Telemetry\Managed\TraceLoggingProvider.cs (1)
43catch(ArgumentException)
System\Windows\Annotations\Annotation.cs (4)
93/// <exception cref="ArgumentException">annotationType's Name or Namespace is null or empty string</exception> 127/// <exception cref="ArgumentException">lastModificationTime is earlier than creationTime</exception> 128/// <exception cref="ArgumentException">annotationType's Name or Namespace is null or empty string</exception> 129/// <exception cref="ArgumentException">id is equal to Guid.Empty</exception>
System\Windows\Annotations\AnnotationHelper.cs (10)
55/// <exception cref="ArgumentException">service is not enabled or highlightBrush is not a SolidColorBrush</exception> 85/// <exception cref="ArgumentException">service is not enabled</exception> 101/// <exception cref="ArgumentException">service is not enabled</exception> 118/// <exception cref="ArgumentException">service is not enabled</exception> 141/// <exception cref="ArgumentException">service is not enabled</exception> 164/// <exception cref="ArgumentException">service is not enabled</exception> 186/// <exception cref="ArgumentException">service is not enabled</exception> 499/// <exception cref="ArgumentException">service is not enabled</exception> 891/// <exception cref="ArgumentException">service is not enabled</exception> 1092/// <exception cref="ArgumentException">service is not enabled</exception>
System\Windows\Annotations\AnnotationResource.cs (1)
79/// <exception cref="ArgumentException">id is equal to Guid.Empty</exception>
System\Windows\Annotations\AnnotationService.cs (4)
142/// <exception cref="ArgumentException">element is not a FrameworkElement or FrameworkContentElement</exception> 356/// <exception cref="ArgumentException">element is not a FrameworkElement or FrameworkContentElement</exception> 396/// <exception cref="ArgumentException">element is not a FrameworkElement or FrameworkContentElement</exception> 877/// <exception cref="ArgumentException">element is not a FrameworkElement or FrameworkContentElement</exception>
System\Windows\Annotations\LocatorPart.cs (1)
47/// <exception cref="ArgumentException">partType.Namespace or partType.Name is null or empty string</exception>
System\Windows\Annotations\Storage\AnnotationStore.cs (1)
68/// <exception cref="ArgumentException">newAnnotation already exists in this store, as determined by its Id</exception>
System\Windows\Annotations\Storage\XmlStreamStore.cs (4)
99/// <exception cref="ArgumentException">duplicate namespace in knownNamespaces dictionary</exception> 100/// <exception cref="ArgumentException">null key in knownNamespaces dictionary</exception> 125/// <exception cref="ArgumentException">newAnnotation already exists in this store, as determined by its Id</exception> 552/// <exception cref="ArgumentException">queryExpression is empty string</exception>
System\Windows\Controls\DataGridLength.cs (3)
30/// <exception cref="ArgumentException"> 50/// <exception cref="ArgumentException"> 72/// <exception cref="ArgumentException">
System\Windows\Controls\DataGridLengthConverter.cs (2)
68/// <exception cref="ArgumentException"> 123/// <exception cref="ArgumentException">
System\Windows\Controls\DateTimeHelper.cs (3)
24catch (System.ArgumentException) 36catch (System.ArgumentException) 48catch (System.ArgumentException)
System\Windows\Controls\InkCanvas.cs (1)
2753catch ( ArgumentException )
System\Windows\Controls\VirtualizationCacheLength.cs (1)
56/// <exception cref="ArgumentException">
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (2)
94/// <exception cref="ArgumentException"> 128/// <exception cref="ArgumentException">
System\Windows\CornerRadiusConverter.cs (2)
96/// <exception cref="ArgumentException"> 125/// <exception cref="ArgumentException">
System\Windows\Data\CompositeCollection.cs (1)
113/// <exception cref="ArgumentException">
System\Windows\Data\ObjectDataProvider.cs (2)
462catch (ArgumentException ae) 544catch (ArgumentException ae)
System\Windows\Documents\FixedDocument.cs (2)
132/// <exception cref="ArgumentException">value is not of type PageContent.</exception> 405/// <exception cref="ArgumentException">ContentPosition does not exist within this element?s tree.</exception>
System\Windows\Documents\FixedPage.cs (2)
181/// <exception cref="ArgumentException">value is not of type UIElement.</exception> 205/// <exception cref="ArgumentException">text contains non-whitespace text.</exception>
System\Windows\Documents\PageContent.cs (1)
175/// <exception cref="ArgumentException">value is not of type FixedPage.</exception>
System\Windows\Documents\RtfToXamlReader.cs (1)
4893catch (System.ArgumentException)
System\Windows\Documents\TableCellCollection.cs (6)
54/// <exception cref="ArgumentException"> 73/// <exception cref="ArgumentException"> 114/// <exception cref="ArgumentException"> 193/// <exception cref="ArgumentException"> 237/// <exception cref="ArgumentException"> 495/// <exception cref="ArgumentException">
System\Windows\Documents\TableColumnCollection.cs (5)
54/// <exception cref="ArgumentException"> 73/// <exception cref="ArgumentException"> 114/// <exception cref="ArgumentException"> 193/// <exception cref="ArgumentException"> 237/// <exception cref="ArgumentException">
System\Windows\Documents\TableRowCollection.cs (6)
54/// <exception cref="ArgumentException"> 73/// <exception cref="ArgumentException"> 114/// <exception cref="ArgumentException"> 193/// <exception cref="ArgumentException"> 237/// <exception cref="ArgumentException"> 495/// <exception cref="ArgumentException">
System\Windows\Documents\TableRowGroupCollection.cs (6)
54/// <exception cref="ArgumentException"> 73/// <exception cref="ArgumentException"> 114/// <exception cref="ArgumentException"> 193/// <exception cref="ArgumentException"> 237/// <exception cref="ArgumentException"> 494/// <exception cref="ArgumentException">
System\windows\Documents\TextEditorCopyPaste.cs (1)
208catch (ArgumentException)
System\Windows\Documents\TextElement.cs (2)
82/// <exception cref="System.ArgumentException"> 799/// <exception cref="System.ArgumentException">
System\Windows\Documents\TextPointer.cs (6)
455/// <exception cref="System.ArgumentException"> 616/// <exception cref="System.ArgumentException"> 763/// <exception cref="ArgumentException"> 1378/// <exception cref="ArgumentException"> 1846/// <exception cref="System.ArgumentException"> 2138/// <exception cref="ArgumentException">
System\Windows\Documents\TextRange.cs (4)
44/// <exception cref="System.ArgumentException"> 627/// <exception cref="System.ArgumentException"> 666/// <exception cref="System.ArgumentException"> 694/// <exception cref="System.ArgumentException">
System\Windows\Documents\WinRTSpellerInterop.cs (3)
70catch (Exception ex) when (ex is ArgumentException || ex is NotSupportedException || ex is PlatformNotSupportedException) 329if (throwOnError && ex is ArgumentException) 487catch (Exception e) when ((e is ArgumentException) || !fileCopied)
System\Windows\Documents\WpfPayload.cs (1)
295/// <exception cref="ArgumentException">
System\Windows\Documents\XamlToRtfWriter.cs (1)
3301catch (System.ArgumentException)
System\Windows\FigureLength.cs (2)
69/// <exception cref="ArgumentException"> 92/// <exception cref="ArgumentException">
System\Windows\FigureLengthConverter.cs (2)
104/// <exception cref="ArgumentException"> 140/// <exception cref="ArgumentException">
System\Windows\GridLength.cs (2)
63/// <exception cref="ArgumentException"> 85/// <exception cref="ArgumentException">
System\Windows\GridLengthConverter.cs (2)
106/// <exception cref="ArgumentException"> 159/// <exception cref="ArgumentException">
System\Windows\LengthConverter.cs (2)
102/// <exception cref="ArgumentException"> 131/// <exception cref="ArgumentException">
System\Windows\LogicalTreeHelper.cs (1)
69ArgumentException.ThrowIfNullOrEmpty(elementName);
System\Windows\Markup\XamlTypeMapper.cs (1)
2660catch (ArgumentException)
System\Windows\PropertyPathConverter.cs (2)
93/// <exception cref="ArgumentException"> 124/// <exception cref="ArgumentException">
System\Windows\ThicknessConverter.cs (2)
96/// <exception cref="ArgumentException"> 123/// <exception cref="ArgumentException">
PresentationUI (4)
MS\Internal\Documents\Application\DocumentProperties.cs (1)
312catch (ArgumentException)
MS\Internal\Documents\Application\RestrictedTransactionalPackage.cs (1)
46/// <exception cref="System.ArgumentException" />
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (1)
266else if ((exception is ArgumentException) ||
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
100/// <exception cref="System.ArgumentException" />
ReachFramework (20)
Packaging\XpsFixedPageReaderWriter.cs (4)
225/// <exception cref="ArgumentException">resourceName is an empty string.</exception> 318/// <exception cref="ArgumentException">imageType is an empty string.</exception> 1193/// <exception cref="ArgumentException">imageType is an empty string.</exception> 1217/// <exception cref="ArgumentException">imageType is an empty string.</exception>
PrintConfig\FallbackPTProvider.cs (4)
96/// <exception cref="ArgumentException"> 253/// <exception cref="ArgumentException"> 297/// <exception cref="ArgumentException"> 323/// <exception cref="ArgumentException">
PrintConfig\PTConverter.cs (4)
126/// <exception cref="ArgumentException"> 152/// <exception cref="ArgumentException"> 184/// <exception cref="ArgumentException"> 215/// <exception cref="ArgumentException">
PrintConfig\PTManager.cs (4)
259/// <exception cref="ArgumentException"> 287/// <exception cref="ArgumentException"> 329/// <exception cref="ArgumentException"> 363/// <exception cref="ArgumentException">
PrintConfig\PTProvider.cs (4)
210/// <exception cref="ArgumentException"> 278/// <exception cref="ArgumentException"> 386/// <exception cref="ArgumentException"> 450/// <exception cref="ArgumentException">
System.Collections.Concurrent (34)
System\Collections\Concurrent\BlockingCollection.cs (20)
174/// <exception cref="System.ArgumentException">The supplied <paramref name="collection"/> contains more values 744/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 786/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 825/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 851/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 879/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 911/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 940/// <exception cref="System.ArgumentException">If the collections argument is a 0-length array or contains a 1126/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 1155/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 1183/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 1211/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 1242/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 1276/// <exception cref="System.ArgumentException">The <paramref name="collections"/> argument is 1308/// <exception cref="System.ArgumentException">If the collections argument is a 0-length array or contains a 1342/// <exception cref="System.ArgumentException">If the collections argument is a 0-length array or contains a 1533/// <exception cref="System.ArgumentException">The <paramref name="index"/> argument is equal to or greater 1551/// <exception cref="System.ArgumentException">The <paramref name="index"/> argument is equal to or greater 1576catch (ArgumentException) 1650/// <exception cref="System.ArgumentException">If the collections argument is a 0-length array or contains a
System\Collections\Concurrent\ConcurrentBag.cs (2)
272/// <exception cref="ArgumentException"><paramref name="index"/> is equal to or greater than the 346/// <exception cref="ArgumentException">
System\Collections\Concurrent\ConcurrentDictionary.cs (8)
92/// <exception cref="ArgumentException"><paramref name="collection"/> contains one or more duplicate keys.</exception> 135/// <exception cref="ArgumentException"><paramref name="collection"/> contains one or more duplicate keys.</exception> 701/// <exception cref="ArgumentException"> 1520/// <exception cref="ArgumentException"> 1578/// <exception cref="ArgumentException">An element with the same key already exists in the 1646/// <exception cref="ArgumentException"> 1763/// <exception cref="ArgumentException"> 1838/// <exception cref="ArgumentException"><paramref name="index"/> is equal to or greater than
System\Collections\Concurrent\ConcurrentStack.cs (4)
215/// <exception cref="ArgumentException"> 250/// <exception cref="ArgumentException"><paramref name="index"/> is equal to or greater than the 324/// <exception cref="ArgumentException"><paramref name="startIndex"/> + <paramref name="count"/> is 524/// <exception cref="ArgumentException"><paramref name="startIndex"/> + <paramref name="count"/> is
System.Collections.Immutable (21)
System\Collections\Immutable\IImmutableDictionary.cs (2)
27/// <exception cref="ArgumentException">Thrown when the given key already exists in the dictionary but has a different value.</exception> 38/// <exception cref="ArgumentException">Thrown when one of the given keys already exists in the dictionary but has a different value.</exception>
System\Collections\Immutable\IImmutableList.cs (1)
177/// <exception cref="ArgumentException">Thrown when the old value does not exist in the list.</exception>
System\Collections\Immutable\IImmutableListQueries.cs (1)
322/// <exception cref="ArgumentException">
System\Collections\Immutable\ImmutableArray.cs (2)
522/// <exception cref="ArgumentException"> 561/// <exception cref="ArgumentException">
System\Collections\Immutable\ImmutableArray_1.cs (2)
572/// <exception cref="ArgumentException">Thrown when the old value does not exist in the list.</exception> 588/// <exception cref="ArgumentException">Thrown when the old value does not exist in the list.</exception>
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
521/// <exception cref="ArgumentException">An element with the same key already exists in the <see cref="IDictionary{TKey, TValue}"/>.</exception>
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
562/// <exception cref="ArgumentException">
System\Collections\Immutable\ImmutableList.cs (1)
99/// <exception cref="ArgumentException">Thrown when the old value does not exist in the list.</exception>
System\Collections\Immutable\ImmutableList_1.Builder.cs (3)
827/// <exception cref="ArgumentException">Thrown when the old value does not exist in the list.</exception> 842/// <exception cref="ArgumentException">Thrown when the old value does not exist in the list.</exception> 1001/// <exception cref="ArgumentException">
System\Collections\Immutable\ImmutableList_1.cs (2)
114/// <exception cref="ArgumentException"> 891/// <exception cref="ArgumentException">Thrown when the old value does not exist in the list.</exception>
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
663/// <exception cref="ArgumentException">
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
482/// <exception cref="ArgumentException">
Validation\Requires.cs (3)
11/// Common runtime checks that throw <see cref="ArgumentException"/> upon failure. 110/// Throws an <see cref="ArgumentException"/> if a condition does not evaluate to true. 122/// Throws an <see cref="ArgumentException"/> if a condition does not evaluate to true.
System.ComponentModel.Annotations (17)
System\ComponentModel\DataAnnotations\EnumDataTypeAttribute.cs (1)
80catch (ArgumentException)
System\ComponentModel\DataAnnotations\RegularExpressionAttribute.cs (3)
55/// <exception cref="ArgumentException"> is thrown if the <see cref="Pattern" /> is not a valid regular expression.</exception> 86/// <exception cref="ArgumentException"> is thrown if the <see cref="Pattern" /> is not a valid regular expression.</exception> 98/// <exception cref="ArgumentException"> is thrown if the current <see cref="Pattern" /> cannot be parsed</exception>
System\ComponentModel\DataAnnotations\Schema\ColumnAttribute.cs (2)
31ArgumentException.ThrowIfNullOrWhiteSpace(name); 63ArgumentException.ThrowIfNullOrWhiteSpace(value);
System\ComponentModel\DataAnnotations\Schema\ForeignKeyAttribute.cs (1)
26ArgumentException.ThrowIfNullOrWhiteSpace(name);
System\ComponentModel\DataAnnotations\Schema\InversePropertyAttribute.cs (1)
20ArgumentException.ThrowIfNullOrWhiteSpace(property);
System\ComponentModel\DataAnnotations\Schema\TableAttribute.cs (2)
23ArgumentException.ThrowIfNullOrWhiteSpace(name); 41ArgumentException.ThrowIfNullOrWhiteSpace(value);
System\ComponentModel\DataAnnotations\Validator.cs (7)
44/// <exception cref="ArgumentException"> 90/// <exception cref="ArgumentException"> 128/// <exception cref="ArgumentException"> 244/// <exception cref="ArgumentException"> 270/// <exception cref="ArgumentException"> 375/// <exception cref="ArgumentException"> is thrown if <paramref name="value" /> is the wrong type for this property.</exception> 398/// <exception cref="ArgumentException">
System.ComponentModel.Composition (48)
System\ComponentModel\Composition\CompositionException.cs (1)
83/// <exception cref="ArgumentException">
System\ComponentModel\Composition\ExceptionBuilder.cs (5)
19public static ArgumentException CreateContainsNullElement(string parameterName) 49public static ArgumentException CreateExportDefinitionNotOnThisComposablePart(string parameterName) 64public static ArgumentException CreateImportDefinitionNotOnThisComposablePart(string parameterName) 88public static ArgumentException CreateReflectionModelInvalidPartDefinition(string parameterName, Type partDefinitionType) 105public static ArgumentException ExportFactory_TooManyGenericParameters(string typeName)
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (2)
43/// <exception cref="ArgumentException"> 60/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Hosting\AggregateExportProvider.cs (1)
24/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (9)
44/// <exception cref="ArgumentException"> 100/// <exception cref="ArgumentException"> 157/// <exception cref="ArgumentException"> 221/// <exception cref="ArgumentException"> 273/// <exception cref="ArgumentException"> 309/// <exception cref="ArgumentException"> 343/// <exception cref="ArgumentException"> 369/// <exception cref="ArgumentException"> 555catch (ArgumentException)
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (8)
50/// <exception cref="ArgumentException"> 71/// <exception cref="ArgumentException"> 90/// <exception cref="ArgumentException"> 112/// <exception cref="ArgumentException"> 134/// <exception cref="ArgumentException"> 442/// <exception cref="ArgumentException"> 463/// <exception cref="ArgumentException"> 484/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (8)
54/// <exception cref="ArgumentException"> 92/// <exception cref="ArgumentException"> 130/// <exception cref="ArgumentException"> 172/// <exception cref="ArgumentException"> 211/// <exception cref="ArgumentException"> 254/// <exception cref="ArgumentException"> 302/// <exception cref="ArgumentException"> 355/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (5)
45/// <exception cref="ArgumentException"> 67/// <exception cref="ArgumentException"> 98/// <exception cref="ArgumentException"> 127/// <exception cref="ArgumentException"> 159/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Primitives\ComposablePart.cs (2)
143/// <exception cref="ArgumentException"> 177/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Primitives\ContractBasedImportDefinition.cs (2)
89/// <exception cref="ArgumentException"> 151/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Primitives\Export.cs (2)
55/// <exception cref="ArgumentException"> 88/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Primitives\ExportDefinition.cs (1)
51/// <exception cref="ArgumentException">
System\ComponentModel\Composition\Primitives\ExportedDelegate.cs (1)
38catch (ArgumentException)
System\ComponentModel\Composition\Primitives\ImportDefinition.cs (1)
77/// <exception cref="ArgumentException">
System.ComponentModel.TypeConverter (2)
System\ComponentModel\EnumConverter.cs (1)
287catch (ArgumentException)
System\ComponentModel\MaskedTextProvider.cs (1)
221ArgumentException.ThrowIfNullOrEmpty(mask);
System.Data.Common (44)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (18)
44internal static ArgumentException Argument(string error) 46ArgumentException e = new ArgumentException(error); 51internal static ArgumentException Argument(string error, Exception? inner) 53ArgumentException e = new ArgumentException(error, inner); 58internal static ArgumentException Argument(string error, string? parameter) 60ArgumentException e = new ArgumentException(error, parameter); 203internal static ArgumentException InvalidMultipartName(string property, string value) 205ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartName, property, value)); 210internal static ArgumentException InvalidMultipartNameIncorrectUsageOfQuotes(string property, string value) 212ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameQuoteUsage, property, value)); 217internal static ArgumentException InvalidMultipartNameToManyParts(string property, string value, int limit) 219ArgumentException e = new ArgumentException(SR.Format(SR.ADP_InvalidMultipartNameToManyParts, property, value, limit)); 282internal static ArgumentException ConnectionStringSyntax(int index) 286internal static ArgumentException KeywordNotSupported(string keyword) 290internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception? innerException) 310internal static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection) 396internal static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection) 400internal static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
508catch (ArgumentException f) 598catch (ArgumentException e)
System\Data\Common\AdapterUtil.Common.cs (4)
266internal static ArgumentException InvalidKeyname(string? parameterName) 270internal static ArgumentException InvalidValue(string parameterName) 511internal static ArgumentException UnwantedStatementType(StatementType statementType) 637internal static ArgumentException UpdateMismatchRowTable(int i)
System\Data\Common\DbConnection.cs (2)
170/// <exception cref="ArgumentException"> 189/// <exception cref="ArgumentException">
System\Data\Common\DbConnectionStringBuilder.cs (1)
181catch (ArgumentException)
System\Data\Common\ObjectStorage.cs (2)
60catch (ArgumentException e) 117catch (ArgumentException e)
System\Data\DataColumn.cs (2)
1926/// <exception cref="ArgumentException">if value is 0</exception> 2007/// <exception cref="ArgumentException">if value is 0</exception>
System\Data\DataColumnCollection.cs (1)
832catch (ArgumentException)
System\Data\DataRowView.cs (4)
68/// <exception cref="ArgumentException"><see cref="DataColumnCollection.get_Item(string)"/> when <paramref name="property"/> is ambiguous.</exception> 69/// <exception cref="ArgumentException">Unmatched <paramref name="property"/> when getting a value.</exception> 145/// <exception cref="ArgumentException">null or mismatch between <paramref name="relation"/> and <see cref="System.Data.DataView.get_Table"/>.</exception> 176/// <exception cref="ArgumentException">Unmatched <paramref name="relationName"/>.</exception>
System\Data\DataSetUtil.cs (1)
18internal static ArgumentException Argument(string message)
System\Data\Filter\BinaryNode.cs (1)
258catch (System.ArgumentException e)
System\Data\Filter\ConstNode.cs (5)
146catch (System.ArgumentException e) 166catch (System.ArgumentException e) 224catch (System.ArgumentException e) 245catch (System.ArgumentException e) 266catch (System.ArgumentException e)
System\Data\SQLTypes\SQLString.cs (1)
907catch (ArgumentException)
System.Diagnostics.Process (2)
System\Diagnostics\Process.Unix.cs (1)
712catch (ArgumentException) { } // ignore any errors in data that may come from the exe path
System\Diagnostics\ProcessManager.cs (1)
13ArgumentException.ThrowIfNullOrEmpty(machineName);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\DelimitedListTraceListener.cs (1)
67ArgumentException.ThrowIfNullOrEmpty(value, nameof(Delimiter));
System.Diagnostics.TraceSource (2)
System\Diagnostics\SwitchAttribute.cs (1)
29ArgumentException.ThrowIfNullOrEmpty(value);
System\Diagnostics\TraceSource.cs (1)
30ArgumentException.ThrowIfNullOrEmpty(name);
System.Formats.Asn1 (91)
System\Formats\Asn1\Asn1Tag.cs (1)
359/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.BitString.cs (6)
54/// <exception cref="ArgumentException"> 144/// <exception cref="ArgumentException"> 266/// <exception cref="ArgumentException"> 709/// <exception cref="ArgumentException"> 773/// <exception cref="ArgumentException"> 829/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.Boolean.cs (2)
38/// <exception cref="ArgumentException"> 106/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.Enumerated.cs (6)
42/// <exception cref="ArgumentException"> 102/// <exception cref="ArgumentException"> 172/// <exception cref="ArgumentException"> 288/// <exception cref="ArgumentException"> 336/// <exception cref="ArgumentException"> 387/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (2)
42/// <exception cref="ArgumentException"> 425/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.Integer.cs (12)
43/// <exception cref="ArgumentException"> 93/// <exception cref="ArgumentException"> 171/// <exception cref="ArgumentException"> 237/// <exception cref="ArgumentException"> 304/// <exception cref="ArgumentException"> 363/// <exception cref="ArgumentException"> 541/// <exception cref="ArgumentException"> 578/// <exception cref="ArgumentException"> 617/// <exception cref="ArgumentException"> 656/// <exception cref="ArgumentException"> 696/// <exception cref="ArgumentException"> 735/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.NamedBitList.cs (6)
49/// <exception cref="ArgumentException"> 159/// <exception cref="ArgumentException"> 307/// <exception cref="ArgumentException"> 428/// <exception cref="ArgumentException"> 520/// <exception cref="ArgumentException"> 569/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.Null.cs (2)
35/// <exception cref="ArgumentException"> 84/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.OctetString.cs (6)
49/// <exception cref="ArgumentException"> 149/// <exception cref="ArgumentException"> 260/// <exception cref="ArgumentException"> 564/// <exception cref="ArgumentException"> 614/// <exception cref="ArgumentException"> 653/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.Oid.cs (2)
44/// <exception cref="ArgumentException"> 312/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.Sequence.cs (2)
49/// <exception cref="ArgumentException"> 127/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.SetOf.cs (3)
55/// <exception cref="ArgumentException"> 161/// <exception cref="ArgumentException"> 204/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.Text.cs (8)
53/// <exception cref="ArgumentException"> 132/// <exception cref="ArgumentException"> 234/// <exception cref="ArgumentException"> 306/// <exception cref="ArgumentException"> 578/// <exception cref="ArgumentException"> 637/// <exception cref="ArgumentException"> 705/// <exception cref="ArgumentException"> 765/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnDecoder.UtcTime.cs (3)
49/// <exception cref="ArgumentException"> 265/// <exception cref="ArgumentException"> 308/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.BitString.cs (1)
18/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.Boolean.cs (1)
15/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.cs (2)
419catch (ArgumentException e) 434/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.Enumerated.cs (2)
17/// <exception cref="ArgumentException"> 52/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.GeneralizedTime.cs (1)
22/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.Integer.cs (7)
17/// <exception cref="ArgumentException"> 35/// <exception cref="ArgumentException"> 54/// <exception cref="ArgumentException"> 72/// <exception cref="ArgumentException"> 78/// <exception cref="ArgumentException"> 97/// <exception cref="ArgumentException"> 103/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.NamedBitList.cs (3)
18/// <exception cref="ArgumentException"> 53/// <exception cref="ArgumentException"> 79/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.Null.cs (1)
14/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.OctetString.cs (2)
47/// <exception cref="ArgumentException"> 67/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.Oid.cs (2)
18/// <exception cref="ArgumentException"> 47/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.Sequence.cs (2)
17/// <exception cref="ArgumentException"> 37/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.SetOf.cs (2)
21/// <exception cref="ArgumentException"> 45/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.Text.cs (2)
33/// <exception cref="ArgumentException"> 69/// <exception cref="ArgumentException">
System\Formats\Asn1\AsnWriter.UtcTime.cs (2)
18/// <exception cref="ArgumentException"> 44/// <exception cref="ArgumentException">
System.Formats.Cbor (5)
System\Formats\Cbor\Writer\CborWriter.cs (2)
128/// <exception cref="ArgumentException"><para><paramref name="encodedValue" /> is not a well-formed CBOR encoding.</para> 187/// <exception cref="ArgumentException">The destination buffer is not large enough to hold the encoded value.</exception>
System\Formats\Cbor\Writer\CborWriter.String.cs (2)
103/// <exception cref="ArgumentException">The supplied string is not a valid UTF-8 encoding, which is not permitted under the current conformance mode.</exception> 121/// <exception cref="ArgumentException">The supplied string is not a valid UTF-8 encoding, which is not permitted under the current conformance mode.</exception>
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
68/// <exception cref="ArgumentException">The <paramref name="seconds" /> parameter cannot be infinite or NaN.</exception>
System.Formats.Tar (47)
System\Formats\Tar\GnuTarEntry.cs (2)
30/// <exception cref="ArgumentException"><para><paramref name="entryName"/> is empty.</para> 43/// <exception cref="ArgumentException"><para><paramref name="other"/> is a <see cref="PaxGlobalExtendedAttributesTarEntry"/> and cannot be converted.</para>
System\Formats\Tar\PaxTarEntry.cs (3)
49/// <exception cref="ArgumentException"><para><paramref name="entryName"/> is empty.</para> 88/// <exception cref="ArgumentException"><para><paramref name="entryName"/> is empty.</para> 106/// <exception cref="ArgumentException"><para><paramref name="other"/> is a <see cref="PaxGlobalExtendedAttributesTarEntry"/> and cannot be converted.</para>
System\Formats\Tar\TarEntry.cs (9)
36ArgumentException.ThrowIfNullOrEmpty(entryName); 117/// <exception cref="ArgumentException">The specified value is empty.</exception> 127ArgumentException.ThrowIfNullOrEmpty(value); 159ArgumentException.ThrowIfNullOrEmpty(value); 184/// <exception cref="ArgumentException"><paramref name="destinationFileName"/> is empty.</exception> 196ArgumentException.ThrowIfNullOrEmpty(destinationFileName); 214/// <exception cref="ArgumentException"><paramref name="destinationFileName"/> is empty.</exception> 230ArgumentException.ThrowIfNullOrEmpty(destinationFileName); 245/// <exception cref="ArgumentException">Cannot set an unreadable stream.</exception>
System\Formats\Tar\TarFile.cs (20)
26/// <exception cref="ArgumentException"><para><paramref name="sourceDirectoryName"/> is empty.</para> 33ArgumentException.ThrowIfNullOrEmpty(sourceDirectoryName); 61/// <exception cref="ArgumentException"><para><paramref name="sourceDirectoryName"/> is empty.</para> 72ArgumentException.ThrowIfNullOrEmpty(sourceDirectoryName); 98/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName"/> or <paramref name="destinationFileName"/> is empty.</exception> 103ArgumentException.ThrowIfNullOrEmpty(sourceDirectoryName); 104ArgumentException.ThrowIfNullOrEmpty(destinationFileName); 130/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName"/> or <paramref name="destinationFileName"/> is empty.</exception> 139ArgumentException.ThrowIfNullOrEmpty(sourceDirectoryName); 140ArgumentException.ThrowIfNullOrEmpty(destinationFileName); 165/// <exception cref="ArgumentException"><para>Extracting tar entry would have resulted in a file outside the specified destination directory.</para> 174ArgumentException.ThrowIfNullOrEmpty(destinationDirectoryName); 206/// <exception cref="ArgumentException"><para>Extracting tar entry would have resulted in a file outside the specified destination directory.</para> 219ArgumentException.ThrowIfNullOrEmpty(destinationDirectoryName); 250/// <exception cref="ArgumentException"><para>Extracting tar entry would have resulted in a file outside the specified destination directory.</para> 256ArgumentException.ThrowIfNullOrEmpty(sourceFileName); 257ArgumentException.ThrowIfNullOrEmpty(destinationDirectoryName); 293/// <exception cref="ArgumentException"><para>Extracting tar entry would have resulted in a file outside the specified destination directory.</para> 303ArgumentException.ThrowIfNullOrEmpty(sourceFileName); 304ArgumentException.ThrowIfNullOrEmpty(destinationDirectoryName);
System\Formats\Tar\TarReader.cs (1)
31/// <exception cref="ArgumentException"><paramref name="archiveStream"/> does not support reading.</exception>
System\Formats\Tar\TarWriter.cs (8)
29/// <exception cref="ArgumentException"><paramref name="archiveStream"/> does not support writing.</exception> 41/// <exception cref="ArgumentException"><paramref name="archiveStream"/> is unwritable.</exception> 57/// <exception cref="ArgumentException"><paramref name="archiveStream"/> is unwritable.</exception> 134/// <exception cref="ArgumentException"><paramref name="fileName"/> or <paramref name="entryName"/> is <see langword="null"/> or empty.</exception> 150/// <exception cref="ArgumentException"><paramref name="fileName"/> or <paramref name="entryName"/> is <see langword="null"/> or empty.</exception> 216/// <exception cref="ArgumentException">The entry type is <see cref="TarEntryType.HardLink"/> or <see cref="TarEntryType.SymbolicLink"/> and the <see cref="TarEntry.LinkName"/> is <see langword="null"/> or empty.</exception> 260/// <exception cref="ArgumentException">The entry type is <see cref="TarEntryType.HardLink"/> or <see cref="TarEntryType.SymbolicLink"/> and the <see cref="TarEntry.LinkName"/> is <see langword="null"/> or empty.</exception> 371ArgumentException.ThrowIfNullOrEmpty(fileName);
System\Formats\Tar\UstarTarEntry.cs (2)
29/// <exception cref="ArgumentException"><para><paramref name="entryName"/> is empty.</para> 41/// <exception cref="ArgumentException"><para><paramref name="other"/> is a <see cref="PaxGlobalExtendedAttributesTarEntry"/> and cannot be converted.</para>
System\Formats\Tar\V7TarEntry.cs (2)
24/// <exception cref="ArgumentException"><para><paramref name="entryName"/> is empty.</para> 35/// <exception cref="ArgumentException"><para><paramref name="other"/> is a <see cref="PaxGlobalExtendedAttributesTarEntry"/> and cannot be converted.</para>
System.IO.Compression (11)
System\IO\Compression\ZipArchive.cs (10)
41/// <exception cref="ArgumentException">The stream is already closed or does not support reading.</exception> 50/// <exception cref="ArgumentException">The stream is already closed. -or- mode is incompatible with the capabilities of the stream.</exception> 61/// <exception cref="ArgumentException">The stream is already closed. -or- mode is incompatible with the capabilities of the stream.</exception> 73/// <exception cref="ArgumentException">The stream is already closed. -or- mode is incompatible with the capabilities of the stream.</exception> 117/// otherwise an <see cref="ArgumentException"/> is thrown.</para> 119/// <exception cref="ArgumentException">If a Unicode encoding other than UTF-8 is specified for the <code>entryNameEncoding</code>.</exception> 267/// <exception cref="ArgumentException">entryName is a zero-length string.</exception> 281/// <exception cref="ArgumentException">entryName is a zero-length string.</exception> 335/// <exception cref="ArgumentException">entryName is a zero-length string.</exception> 394ArgumentException.ThrowIfNullOrEmpty(entryName);
System\IO\Compression\ZipHelper.cs (1)
81catch (ArgumentException)
System.IO.Compression.Brotli (4)
System\IO\Compression\dec\BrotliStream.Decompress.cs (3)
28/// <exception cref="System.ArgumentException">The <paramref name="buffer" /> length minus the index starting point is less than <paramref name="count" />.</exception> 94/// <exception cref="System.ArgumentException">One or more of the arguments is invalid.</exception> 105/// <exception cref="System.ArgumentException"><paramref name="asyncResult" /> did not originate from a <see cref="System.IO.Compression.BrotliStream.BeginRead(byte[],int,int,System.AsyncCallback,object)" /> method on the current stream.</exception>
System\IO\Compression\enc\BrotliStream.Compress.cs (1)
92/// <exception cref="System.ArgumentException">One or more of the arguments is invalid.</exception>
System.IO.Compression.ZipFile (27)
System\IO\Compression\ZipFile.Create.cs (11)
15/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace, or contains one 37/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace, 74/// <exception cref="ArgumentException">archiveFileName is a zero-length string, contains only whitespace, 142/// otherwise an <see cref="ArgumentException"/> is thrown.</para> 213/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length 255/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length 301/// <exception cref="ArgumentException"><code>sourceDirectoryName</code> or <code>destinationArchiveFileName</code> is a zero-length 346/// otherwise an <see cref="ArgumentException"/> is thrown.</para> 363/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 389/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 417/// <exception cref="ArgumentException"><paramref name="sourceDirectoryName" /> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFile.Extract.cs (10)
20/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace, 52/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace, 85/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace, 124/// otherwise an <see cref="ArgumentException"/> is thrown.</para> 139/// <exception cref="ArgumentException">sourceArchive or destinationDirectoryName is a zero-length string, contains only whitespace, 179/// otherwise an <see cref="ArgumentException"/> is thrown.</para> 200/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 229/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.</exception> 264/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character. 302/// <exception cref="ArgumentException"><paramref name="destinationDirectoryName" />> is <see cref="string.Empty" />, contains only white space, or contains at least one invalid character.
System\IO\Compression\ZipFileExtensions.ZipArchive.Create.cs (2)
26/// <exception cref="ArgumentException">sourceFileName is a zero-length string, contains only whitespace, or contains one or more 57/// <exception cref="ArgumentException">sourceFileName is a zero-length string, contains only whitespace, or contains one or more
System\IO\Compression\ZipFileExtensions.ZipArchive.Extract.cs (2)
19/// <exception cref="ArgumentException">destinationDirectoryName is a zero-length string, contains only whitespace, 49/// <exception cref="ArgumentException">destinationDirectoryName is a zero-length string, contains only whitespace,
System\IO\Compression\ZipFileExtensions.ZipArchiveEntry.Extract.cs (2)
15/// <exception cref="ArgumentException">destinationFileName is a zero-length string, contains only whitespace, or contains one or more 43/// <exception cref="ArgumentException">destinationFileName is a zero-length string, contains only whitespace,
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
808catch (ArgumentException)
System.IO.Hashing (4)
System\IO\Hashing\NonCryptographicHashAlgorithm.cs (2)
223/// <exception cref="ArgumentException"> 285/// <exception cref="ArgumentException">
System\IO\Hashing\XxHash128.cs (1)
82/// <exception cref="ArgumentException"><paramref name="destination"/> is shorter than <see cref="HashLengthInBytes"/> (16 bytes).</exception>
System\IO\Hashing\XxHash3.cs (1)
82/// <exception cref="ArgumentException"><paramref name="destination"/> is shorter than <see cref="HashLengthInBytes"/> (8 bytes).</exception>
System.IO.IsolatedStorage (11)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (11)
237ArgumentException.ThrowIfNullOrEmpty(path); 253ArgumentException.ThrowIfNullOrEmpty(path); 269ArgumentException.ThrowIfNullOrEmpty(path); 285ArgumentException.ThrowIfNullOrEmpty(sourceFileName); 286ArgumentException.ThrowIfNullOrEmpty(destinationFileName); 293ArgumentException.ThrowIfNullOrEmpty(sourceFileName); 294ArgumentException.ThrowIfNullOrEmpty(destinationFileName); 321ArgumentException.ThrowIfNullOrEmpty(sourceFileName); 322ArgumentException.ThrowIfNullOrEmpty(destinationFileName); 349ArgumentException.ThrowIfNullOrEmpty(sourceDirectoryName); 350ArgumentException.ThrowIfNullOrEmpty(destinationDirectoryName);
System.IO.MemoryMappedFiles (4)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (3)
63ArgumentException.ThrowIfNullOrEmpty(mapName); 189/// <exception cref="ArgumentException"> 348ArgumentException.ThrowIfNullOrEmpty(mapName);
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
81catch (ArgumentException exc)
System.IO.Pipes (2)
System\IO\Pipes\NamedPipeClientStream.cs (1)
60ArgumentException.ThrowIfNullOrEmpty(pipeName);
System\IO\Pipes\NamedPipeServerStream.cs (1)
95ArgumentException.ThrowIfNullOrEmpty(pipeName);
System.Linq (10)
System\Linq\Max.cs (3)
317/// <exception cref="ArgumentException">No object in <paramref name="source" /> implements the <see cref="System.IComparable" /> or <see cref="System.IComparable{T}" /> interface.</exception> 415/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="System.IComparable{TKey}" /> interface.</exception> 429/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="IComparable{TKey}" /> interface.</exception>
System\Linq\Min.cs (3)
295/// <exception cref="ArgumentException">No object in <paramref name="source" /> implements the <see cref="System.IComparable" /> or <see cref="System.IComparable{T}" /> interface.</exception> 393/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="System.IComparable{TKey}" /> interface.</exception> 407/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="IComparable{TKey}" /> interface.</exception>
System\Linq\ToCollection.cs (4)
85/// <exception cref="ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception> 98/// <exception cref="ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception> 120/// <exception cref="ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception> 133/// <exception cref="ArgumentException"><paramref name="source"/> contains one or more duplicate keys.</exception>
System.Linq.Expressions (165)
System\Dynamic\Utils\ContractUtils.cs (7)
34/// The parameter name to use in the <see cref="ArgumentException.ParamName"/> property when an exception is thrown. 36/// <exception cref="ArgumentException"> 56/// The parameter name to use in the <see cref="ArgumentException.ParamName"/> property when an exception is thrown. 60/// If an exception is thrown, this value is used in <see cref="ArgumentException.ParamName"/> if it's greater than or equal to 0. 82/// The parameter name to use in the <see cref="ArgumentException.ParamName"/> property when an exception is thrown. 84/// <exception cref="ArgumentException"> 103/// The parameter name to use in the <see cref="ArgumentException.ParamName"/> property when an exception is thrown.
System\Linq\Expressions\Error.cs (133)
17internal static ArgumentException ReducibleMustOverrideReduce() 24internal static ArgumentException ArgCntMustBeGreaterThanNameCnt() 45internal static ArgumentException SameKeyExistsInExpando(object? key) 73internal static ArgumentException MustReduceToDifferent() 115internal static ArgumentException ReducedNotCompatible() 122internal static ArgumentException SetterHasNoParams(string? paramName) 129internal static ArgumentException PropertyCannotHaveRefType(string? paramName) 136internal static ArgumentException IndexesOfSetGetMustMatch(string? paramName) 150internal static ArgumentException FirstArgumentMustBeCallSite() 157internal static ArgumentException AccessorsCannotHaveVarArgs(string? paramName) 164private static ArgumentException AccessorsCannotHaveByRefArgs(string? paramName) 171internal static ArgumentException AccessorsCannotHaveByRefArgs(string? paramName, int index) 178internal static ArgumentException TypeMustBeDerivedFromSystemDelegate() 192internal static ArgumentException BoundsCannotBeLessThanOne(string? paramName) 199internal static ArgumentException TypeMustNotBeByRef(string? paramName) 207internal static ArgumentException TypeMustNotBePointer(string? paramName) 215internal static ArgumentException SetterMustBeVoid(string? paramName) 223internal static ArgumentException PropertyTypeMustMatchGetter(string? paramName) 231internal static ArgumentException PropertyTypeMustMatchSetter(string? paramName) 238internal static ArgumentException BothAccessorsMustBeStatic(string? paramName) 245internal static ArgumentException OnlyStaticFieldsHaveNullInstance(string? paramName) 252internal static ArgumentException OnlyStaticPropertiesHaveNullInstance(string? paramName) 259internal static ArgumentException OnlyStaticMethodsHaveNullInstance() 266internal static ArgumentException PropertyTypeCannotBeVoid(string? paramName) 273internal static ArgumentException InvalidUnboxType(string? paramName) 280internal static ArgumentException ExpressionMustBeWriteable(string? paramName) 287internal static ArgumentException ArgumentMustNotHaveValueType(string? paramName) 294internal static ArgumentException MustBeReducible() 301internal static ArgumentException AllTestValuesMustHaveSameType(string? paramName) 308internal static ArgumentException AllCaseBodiesMustHaveSameType(string? paramName) 315internal static ArgumentException DefaultBodyMustBeSupplied(string? paramName) 322internal static ArgumentException LabelMustBeVoidOrHaveExpression(string? paramName) 329internal static ArgumentException LabelTypeMustBeVoid(string? paramName) 336internal static ArgumentException QuotedExpressionMustBeLambda(string? paramName) 343internal static ArgumentException VariableMustNotBeByRef(object? p0, object? p1, string? paramName) 350internal static ArgumentException VariableMustNotBeByRef(object? p0, object? p1, string? paramName, int index) 357private static ArgumentException DuplicateVariable(object? p0, string? paramName) 364internal static ArgumentException DuplicateVariable(object? p0, string? paramName, int index) 371internal static ArgumentException StartEndMustBeOrdered() 378internal static ArgumentException FaultCannotHaveCatchOrFinally(string? paramName) 385internal static ArgumentException TryMustHaveCatchFinallyOrFault() 392internal static ArgumentException BodyOfCatchMustHaveSameTypeAsBodyOfTry() 406internal static ArgumentException UserDefinedOperatorMustBeStatic(object? p0, string? paramName) 413internal static ArgumentException UserDefinedOperatorMustNotBeVoid(object? p0, string? paramName) 469internal static ArgumentException ArgumentTypeCannotBeVoid() 476internal static ArgumentException ArgumentMustBeArray(string? paramName) 483internal static ArgumentException ArgumentMustBeBoolean(string? paramName) 490internal static ArgumentException EqualityMustReturnBoolean(object? p0, string? paramName) 497internal static ArgumentException ArgumentMustBeFieldInfoOrPropertyInfo(string? paramName) 504private static ArgumentException ArgumentMustBeFieldInfoOrPropertyInfoOrMethod(string? paramName) 511internal static ArgumentException ArgumentMustBeFieldInfoOrPropertyInfoOrMethod(string? paramName, int index) 519private static ArgumentException ArgumentMustBeInstanceMember(string? paramName) 526internal static ArgumentException ArgumentMustBeInstanceMember(string? paramName, int index) 533private static ArgumentException ArgumentMustBeInteger(string? paramName) 540internal static ArgumentException ArgumentMustBeInteger(string? paramName, int index) 547internal static ArgumentException ArgumentMustBeArrayIndexType(string? paramName) 554internal static ArgumentException ArgumentMustBeArrayIndexType(string? paramName, int index) 561internal static ArgumentException ArgumentMustBeSingleDimensionalArrayType(string? paramName) 568internal static ArgumentException ArgumentTypesMustMatch() 575internal static ArgumentException ArgumentTypesMustMatch(string? paramName) 596internal static ArgumentException IncorrectTypeForTypeAs(object? p0, string? paramName) 618private static ArgumentException ArgumentTypeDoesNotMatchMember(object? p0, object? p1, string? paramName) 625internal static ArgumentException ArgumentTypeDoesNotMatchMember(object? p0, object? p1, string? paramName, int index) 632private static ArgumentException ArgumentMemberNotDeclOnType(object? p0, object? p1, string? paramName) 639internal static ArgumentException ArgumentMemberNotDeclOnType(object? p0, object? p1, string? paramName, int index) 647internal static ArgumentException ExpressionTypeDoesNotMatchReturn(object? p0, object? p1) 654internal static ArgumentException ExpressionTypeDoesNotMatchAssignment(object? p0, object? p1) 661internal static ArgumentException ExpressionTypeDoesNotMatchLabel(object? p0, object? p1) 668internal static ArgumentException ExpressionTypeNotInvocable(object? p0, string? paramName) 675internal static ArgumentException FieldNotDefinedForType(object? p0, object? p1) 682internal static ArgumentException InstanceFieldNotDefinedForType(object? p0, object? p1) 689internal static ArgumentException FieldInfoNotDefinedForType(object? p0, object? p1, object? p2) 696internal static ArgumentException IncorrectNumberOfIndexes() 703internal static ArgumentException IncorrectNumberOfLambdaDeclarationParameters() 711internal static ArgumentException IncorrectNumberOfMembersForGivenConstructor() 718internal static ArgumentException IncorrectNumberOfArgumentsForMembers() 725internal static ArgumentException LambdaTypeMustBeDerivedFromSystemDelegate(string? paramName) 732internal static ArgumentException MemberNotFieldOrProperty(object? p0, string? paramName) 739internal static ArgumentException MethodContainsGenericParameters(object? p0, string? paramName) 746internal static ArgumentException MethodIsGeneric(object? p0, string? paramName) 753private static ArgumentException MethodNotPropertyAccessor(object? p0, object? p1, string? paramName) 760internal static ArgumentException MethodNotPropertyAccessor(object? p0, object? p1, string? paramName, int index) 767internal static ArgumentException PropertyDoesNotHaveGetter(object? p0, string? paramName) 774internal static ArgumentException PropertyDoesNotHaveGetter(object? p0, string? paramName, int index) 781internal static ArgumentException PropertyDoesNotHaveSetter(object? p0, string? paramName) 788internal static ArgumentException PropertyDoesNotHaveAccessor(object? p0, string? paramName) 795internal static ArgumentException NotAMemberOfType(object? p0, object? p1, string? paramName) 802internal static ArgumentException NotAMemberOfType(object? p0, object? p1, string? paramName, int index) 810internal static ArgumentException NotAMemberOfAnyType(object? p0, string? paramName) 818internal static ArgumentException ParameterExpressionNotValidAsDelegate(object? p0, object? p1) 825internal static ArgumentException PropertyNotDefinedForType(object? p0, object? p1, string? paramName) 832internal static ArgumentException InstancePropertyNotDefinedForType(object? p0, object? p1, string? paramName) 839internal static ArgumentException InstancePropertyWithoutParameterNotDefinedForType(object? p0, object? p1) 846internal static ArgumentException InstancePropertyWithSpecifiedParametersNotDefinedForType(object? p0, object? p1, object? p2, string? paramName) 853internal static ArgumentException InstanceAndMethodTypeMismatch(object? p0, object? p1, object? p2) 861internal static ArgumentException TypeMissingDefaultConstructor(object? p0, string? paramName) 869internal static ArgumentException ElementInitializerMethodNotAdd(string? paramName) 876internal static ArgumentException ElementInitializerMethodNoRefOutParam(object? p0, object? p1, string? paramName) 883internal static ArgumentException ElementInitializerMethodWithZeroArgs(string? paramName) 890internal static ArgumentException ElementInitializerMethodStatic(string? paramName) 897internal static ArgumentException TypeNotIEnumerable(object? p0, string? paramName) 905internal static ArgumentException UnhandledBinary(object? p0, string? paramName) 912internal static ArgumentException UnhandledBinding() 919internal static ArgumentException UnhandledBindingType(object? p0) 927internal static ArgumentException UnhandledUnary(object? p0, string? paramName) 934internal static ArgumentException UnknownBindingType(int index) 941internal static ArgumentException UserDefinedOpMustHaveConsistentTypes(object? p0, object? p1) 948internal static ArgumentException UserDefinedOpMustHaveValidReturnType(object? p0, object? p1) 955internal static ArgumentException LogicalOperatorMustHaveBooleanOperators(object? p0, object? p1) 990internal static ArgumentException IncorrectNumberOfTypeArgsForFunc(string? paramName) 997internal static ArgumentException IncorrectNumberOfTypeArgsForAction(string? paramName) 1004internal static ArgumentException ArgumentCannotBeOfTypeVoid(string? paramName) 1170internal static ArgumentException TestValueTypeDoesNotMatchComparisonMethodParameter(object? p0, object? p1) 1177internal static ArgumentException SwitchValueTypeDoesNotMatchComparisonMethodParameter(object? p0, object? p1) 1211internal static ArgumentException NonStaticConstructorRequired(string? paramName) 1243private static ArgumentException TypeContainsGenericParameters(object? p0, string? paramName) 1251internal static ArgumentException TypeContainsGenericParameters(object? p0, string? paramName, int index) 1259internal static ArgumentException TypeIsGeneric(object? p0, string? paramName) 1267internal static ArgumentException TypeIsGeneric(object? p0, string? paramName, int index) 1275internal static ArgumentException IncorrectNumberOfConstructorArguments() 1283internal static ArgumentException ExpressionTypeDoesNotMatchMethodParameter(object? p0, object? p1, object? p2, string? paramName) 1291internal static ArgumentException ExpressionTypeDoesNotMatchMethodParameter(object? p0, object? p1, object? p2, string? paramName, int index) 1299internal static ArgumentException ExpressionTypeDoesNotMatchParameter(object? p0, object? p1, string? paramName) 1307internal static ArgumentException ExpressionTypeDoesNotMatchParameter(object? p0, object? p1, string? paramName, int index) 1323internal static ArgumentException IncorrectNumberOfMethodCallArguments(object? p0, string? paramName) 1331internal static ArgumentException ExpressionTypeDoesNotMatchConstructorParameter(object? p0, object? p1, string? paramName) 1340internal static ArgumentException ExpressionTypeDoesNotMatchConstructorParameter(object? p0, object? p1, string? paramName, int index) 1348internal static ArgumentException ExpressionMustBeReadable(string? paramName) 1356internal static ArgumentException ExpressionMustBeReadable(string? paramName, int index) 1361internal static ArgumentException InvalidArgumentValue(string? paramName) 1366internal static ArgumentException NonEmptyCollectionRequired(string? paramName) 1371internal static ArgumentException InvalidNullValue(Type? type, string? paramName) 1376internal static ArgumentException InvalidTypeException(object? value, Type? type, string? paramName)
System\Linq\Expressions\InvocationExpression.cs (8)
414/// <exception cref="ArgumentException"> 450/// <exception cref="ArgumentException"> 491/// <exception cref="ArgumentException"> 535/// <exception cref="ArgumentException"> 584/// <exception cref="ArgumentException"> 637/// <exception cref="ArgumentException"> 680/// <exception cref="ArgumentException"> 707/// <exception cref="ArgumentException">
System\Linq\Expressions\MemberInitExpression.cs (2)
144/// <exception cref="ArgumentException">The <see cref="MemberBinding.Member"/> property of an element of <paramref name="bindings"/> does not represent a member of the type that <paramref name="newExpression"/>.Type represents.</exception> 156/// <exception cref="ArgumentException">The <see cref="MemberBinding.Member"/> property of an element of <paramref name="bindings"/> does not represent a member of the type that <paramref name="newExpression"/>.Type represents.</exception>
System\Linq\Expressions\MemberListBinding.cs (4)
65/// <exception cref="ArgumentException"> 78/// <exception cref="ArgumentException"> 97/// <exception cref="ArgumentException"> 111/// <exception cref="ArgumentException">
System\Linq\Expressions\MethodCallExpression.cs (2)
1187/// <exception cref="ArgumentException"> 1407/// <exception cref="ArgumentException">
System\Linq\Expressions\UnaryExpression.cs (9)
301/// <exception cref="ArgumentException">Thrown when <paramref name="unaryType"/> does not correspond to a unary expression.</exception> 316/// <exception cref="ArgumentException">Thrown when <paramref name="unaryType"/> does not correspond to a unary expression.</exception> 469/// <exception cref="ArgumentException">Thrown when <paramref name="method"/> is not null and the method it represents returns void, is not static (Shared in Visual Basic), or does not take exactly one argument.</exception> 504/// <exception cref="ArgumentException">Thrown when <paramref name="method"/> is not null and the method it represents returns void, is not static (Shared in Visual Basic), or does not take exactly one argument.</exception> 536/// <exception cref="ArgumentException"> 571/// <exception cref="ArgumentException"> 741/// <exception cref="ArgumentException"> 781/// <exception cref="ArgumentException"> 810/// <exception cref="ArgumentException">
System.Linq.Parallel (2)
System\Linq\ParallelEnumerable.cs (2)
343/// <exception cref="System.ArgumentException"> 376/// <exception cref="System.ArgumentException">
System.Linq.Queryable (5)
System\Linq\Queryable.cs (5)
1652/// <exception cref="ArgumentException">No object in <paramref name="source" /> implements the <see cref="System.IComparable" /> or <see cref="System.IComparable{T}" /> interface.</exception> 1686/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="IComparable{TKey}" /> interface.</exception> 1709/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="IComparable{TKey}" /> interface.</exception> 1776/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="IComparable{TKey}" /> interface.</exception> 1799/// <exception cref="ArgumentException">No key extracted from <paramref name="source" /> implements the <see cref="IComparable" /> or <see cref="IComparable{TKey}" /> interface.</exception>
System.Memory (6)
src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (4)
43/// <exception cref="ArgumentException"> 117/// <exception cref="ArgumentException"> 141/// <exception cref="ArgumentException"> 172/// <exception cref="ArgumentException">
System\Text\EncodingExtensions.cs (2)
97/// <exception cref="ArgumentException">Thrown if <paramref name="bytes"/> is not large enough to contain the encoded form of <paramref name="chars"/>.</exception> 288/// <exception cref="ArgumentException">Thrown if <paramref name="chars"/> is not large enough to contain the encoded form of <paramref name="bytes"/>.</exception>
System.Net.Http (20)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (3)
276ArgumentException.ThrowIfNullOrWhiteSpace(dispositionType, parameterName); 492catch (ArgumentException) 558catch (ArgumentException)
System\Net\Http\Headers\EntityTagHeaderValue.cs (1)
38ArgumentException.ThrowIfNullOrWhiteSpace(tag);
System\Net\Http\Headers\HeaderUtilities.cs (3)
145ArgumentException.ThrowIfNullOrWhiteSpace(value, parameterName); 155ArgumentException.ThrowIfNullOrWhiteSpace(value, parameterName); 167ArgumentException.ThrowIfNullOrWhiteSpace(value, parameterName);
System\Net\Http\Headers\HttpHeaders.cs (1)
1029ArgumentException.ThrowIfNullOrWhiteSpace(name);
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
278ArgumentException.ThrowIfNullOrWhiteSpace(mediaType, parameterName);
System\Net\Http\Headers\UriHeaderParser.cs (1)
81catch (ArgumentException) { } // Not actually Utf-8
System\Net\Http\Headers\ViaHeaderValue.cs (1)
278ArgumentException.ThrowIfNullOrWhiteSpace(receivedBy);
System\Net\Http\Headers\WarningHeaderValue.cs (1)
285ArgumentException.ThrowIfNullOrWhiteSpace(agent);
System\Net\Http\HttpContent.cs (1)
199catch (ArgumentException e)
System\Net\Http\HttpMethod.cs (1)
31ArgumentException.ThrowIfNullOrWhiteSpace(method);
System\Net\Http\MultipartContent.cs (2)
46ArgumentException.ThrowIfNullOrWhiteSpace(subtype); 68ArgumentException.ThrowIfNullOrWhiteSpace(boundary);
System\Net\Http\MultipartFormDataContent.cs (3)
38ArgumentException.ThrowIfNullOrWhiteSpace(name); 46ArgumentException.ThrowIfNullOrWhiteSpace(name); 47ArgumentException.ThrowIfNullOrWhiteSpace(fileName);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (1)
324catch (ArgumentException)
System.Net.Http.Json (2)
src\libraries\Common\src\System\ThrowHelper.cs (1)
36/// Throws either an <see cref="System.ArgumentNullException"/> or an <see cref="System.ArgumentException"/>
System\Net\Http\Json\JsonHelpers.cs (1)
48catch (ArgumentException e)
System.Net.HttpListener (5)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
66ArgumentException.ThrowIfNullOrWhiteSpace(subProtocol);
System\Net\HttpListenerRequest.cs (2)
83catch (ArgumentException) 99catch (ArgumentException)
System\Net\Managed\HttpRequestStream.Managed.cs (1)
196catch (IOException e) when (e.InnerException is ArgumentException || e.InnerException is InvalidOperationException)
System\Net\Managed\HttpResponseStream.Managed.cs (1)
287if (ex.InnerException is ArgumentException || ex.InnerException is InvalidOperationException)
System.Net.Mail (23)
System\Net\Mail\Attachment.cs (2)
71ArgumentException.ThrowIfNullOrEmpty(fileName); 79ArgumentException.ThrowIfNullOrEmpty(fileName);
System\Net\Mail\MailAddress.cs (2)
124ArgumentException.ThrowIfNullOrEmpty(address); 214catch (ArgumentException argEx)
System\Net\Mail\MailAddressCollection.cs (1)
21ArgumentException.ThrowIfNullOrEmpty(addresses);
System\Net\Mail\MailAddressParser.cs (1)
443catch (ArgumentException e)
System\Net\Mail\MailMessage.cs (2)
44ArgumentException.ThrowIfNullOrEmpty(from); 45ArgumentException.ThrowIfNullOrEmpty(to);
System\Net\Mail\MailPriority.cs (3)
47ArgumentException.ThrowIfNullOrEmpty(from); 48ArgumentException.ThrowIfNullOrEmpty(to); 142catch (ArgumentException) { };
System\Net\Mail\SmtpClient.cs (2)
132catch (ArgumentException) { } 167ArgumentException.ThrowIfNullOrEmpty(value);
System\Net\Mime\ContentDisposition.cs (1)
80ArgumentException.ThrowIfNullOrEmpty(value);
System\Net\Mime\ContentType.cs (2)
48ArgumentException.ThrowIfNullOrEmpty(contentType); 95ArgumentException.ThrowIfNullOrEmpty(value);
System\Net\Mime\HeaderCollection.cs (7)
25ArgumentException.ThrowIfNullOrEmpty(name); 35ArgumentException.ThrowIfNullOrEmpty(name); 44ArgumentException.ThrowIfNullOrEmpty(name); 72ArgumentException.ThrowIfNullOrEmpty(name); 73ArgumentException.ThrowIfNullOrEmpty(value); 93ArgumentException.ThrowIfNullOrEmpty(name); 94ArgumentException.ThrowIfNullOrEmpty(value);
System.Net.Ping (6)
System\Net\NetworkInformation\Ping.cs (6)
283/// <exception cref="ArgumentException">The <paramref name="buffer"/>'s size is greater than 65,500 bytes.</exception> 313/// <exception cref="ArgumentException">The <paramref name="buffer"/>'s size is greater than 65,500 bytes.</exception> 347/// <exception cref="ArgumentException">The <paramref name="buffer"/>'s size is greater than 65,500 bytes.</exception> 392/// <exception cref="ArgumentException">The <paramref name="buffer"/>'s size is greater than 65,500 bytes.</exception> 443/// <exception cref="ArgumentException">The <paramref name="buffer"/>'s size is greater than 65,500 bytes.</exception> 475/// <exception cref="ArgumentException">The <paramref name="buffer"/>'s size is greater than 65,500 bytes.</exception>
System.Net.Primitives (4)
System\Net\CredentialCache.cs (2)
50ArgumentException.ThrowIfNullOrEmpty(host); 147ArgumentException.ThrowIfNullOrEmpty(host);
System\Net\DnsEndPoint.cs (1)
19ArgumentException.ThrowIfNullOrEmpty(host);
System\Net\IPNetwork.cs (1)
45/// <exception cref="ArgumentException">The specified <paramref name="baseAddress"/> has non-zero bits after the network prefix.</exception>
System.Net.Quic (2)
src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
33catch (ArgumentException) when (IsSafeDnsString(targetHost))
System\Net\Quic\QuicListener.cs (1)
167/// Propagates exceptions from <see cref="QuicListenerOptions.ConnectionOptionsCallback"/>, including validation errors from misconfigured <see cref="QuicServerConnectionOptions"/>, e.g. <see cref="ArgumentException"/>.
System.Net.Requests (6)
System\Net\FileWebRequest.cs (1)
85ArgumentException.ThrowIfNullOrEmpty(value);
System\Net\FtpControlStream.cs (1)
922catch (ArgumentException)
System\Net\FtpWebRequest.cs (3)
264ArgumentException.ThrowIfNullOrEmpty(value); 274catch (ArgumentException) 301ArgumentException.ThrowIfNullOrEmpty(value);
System\Net\HttpWebRequest.cs (1)
931ArgumentException.ThrowIfNullOrEmpty(value);
System.Net.Security (5)
src\libraries\Common\src\System\Net\Security\TargetHostNameHelper.cs (1)
33catch (ArgumentException) when (IsSafeDnsString(targetHost))
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
231catch (ArgumentException e) 245catch (ArgumentException e)
System\Net\Security\TlsFrameHelper.cs (1)
781catch (ArgumentException)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
135ArgumentException.ThrowIfNullOrEmpty(serviceName);
System.Net.Sockets (3)
System\Net\Sockets\Socket.cs (2)
106/// <exception cref="ArgumentException"><paramref name="handle"/> is invalid.</exception> 1633/// <exception cref="ArgumentException">The <see cref="AddressFamily"/> of the <see cref="EndPoint"/> used in
System\Net\Sockets\SocketPal.Unix.cs (1)
1989exc is ArgumentException ? SocketError.InvalidArgument :
System.Net.WebClient (1)
System\Net\WebClient.cs (1)
1122catch (ArgumentException)
System.Net.WebHeaderCollection (1)
System\Net\WebHeaderCollection.cs (1)
331ArgumentException.ThrowIfNullOrEmpty(name);
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
66ArgumentException.ThrowIfNullOrWhiteSpace(subProtocol);
System.Net.WebSockets.Client (1)
src\libraries\Common\src\System\Net\WebSockets\WebSocketValidate.cs (1)
66ArgumentException.ThrowIfNullOrWhiteSpace(subProtocol);
System.Numerics.Tensors (457)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (2)
269/// <exception cref="ArgumentException"> 525/// <exception cref="ArgumentException">
System\Numerics\Tensors\netcore\Tensor.cs (1)
484/// <exception cref="ArgumentException">
System\Numerics\Tensors\netcore\TensorExtensions.cs (3)
129/// <exception cref="ArgumentException">Thrown when the shapes are not broadcast compatible.</exception> 145/// <exception cref="ArgumentException">Thrown when the shapes are not broadcast compatible.</exception> 189/// <exception cref="ArgumentException">Thrown when the shapes are not broadcast compatible.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Abs.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Acos.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Acosh.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.AcosPi.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Add.cs (6)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 34/// <exception cref="ArgumentException">Destination is too short.</exception> 35/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.AddMultiply.cs (13)
15/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" /> and the length of <paramref name="multiplier" />.</exception> 16/// <exception cref="ArgumentException">Destination is too short.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 18/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 19/// <exception cref="ArgumentException"><paramref name="multiplier"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 37/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 38/// <exception cref="ArgumentException">Destination is too short.</exception> 39/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 40/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 58/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="multiplier" />.</exception> 59/// <exception cref="ArgumentException">Destination is too short.</exception> 60/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 61/// <exception cref="ArgumentException"><paramref name="multiplier"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Asin.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Asinh.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.AsinPi.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Atan.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2.cs (8)
14/// <exception cref="ArgumentException">Length of <paramref name="y" /> must be same as length of <paramref name="x" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 35/// <exception cref="ArgumentException">Destination is too short.</exception> 36/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 54/// <exception cref="ArgumentException">Destination is too short.</exception> 55/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Atan2Pi.cs (8)
14/// <exception cref="ArgumentException">Length of <paramref name="y" /> must be same as length of <paramref name="x" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 35/// <exception cref="ArgumentException">Destination is too short.</exception> 36/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 54/// <exception cref="ArgumentException">Destination is too short.</exception> 55/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Atanh.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.AtanPi.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.BitwiseAnd.cs (6)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 31/// <exception cref="ArgumentException">Destination is too short.</exception> 32/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.BitwiseOr.cs (6)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 31/// <exception cref="ArgumentException">Destination is too short.</exception> 32/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertChecked.cs (1)
16/// <exception cref="ArgumentException">Destination is too short.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertSaturating.cs (1)
16/// <exception cref="ArgumentException">Destination is too short.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertTruncating.cs (1)
16/// <exception cref="ArgumentException">Destination is too short.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.CopySign.cs (6)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="sign" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="sign"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 31/// <exception cref="ArgumentException">Destination is too short.</exception> 32/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.CosineSimilarity.cs (2)
15/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 16/// <exception cref="ArgumentException"><paramref name="x" /> and <paramref name="y" /> must not be empty.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Distance.cs (2)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException"><paramref name="x" /> and <paramref name="y" /> must not be empty.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Divide.cs (8)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 35/// <exception cref="ArgumentException">Destination is too short.</exception> 36/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 54/// <exception cref="ArgumentException">Destination is too short.</exception> 55/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Dot.cs (1)
12/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp10M1.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Exp2M1.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.ExpM1.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.FusedMultiplyAdd.cs (13)
18/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" /> and length of <paramref name="addend" />.</exception> 19/// <exception cref="ArgumentException">Destination is too short.</exception> 20/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 21/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 22/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 46/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 47/// <exception cref="ArgumentException">Destination is too short.</exception> 48/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 49/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 74/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="addend" />.</exception> 75/// <exception cref="ArgumentException">Destination is too short.</exception> 76/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 77/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Half.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 32/// <exception cref="ArgumentException">Destination is too short.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Hypot.cs (4)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Ieee754Remainder.cs (9)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 31/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 32/// <exception cref="ArgumentException">Destination is too short.</exception> 33/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 47/// <exception cref="ArgumentException">Destination is too short.</exception> 48/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.ILogB.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (2)
19/// <exception cref="ArgumentException">Destination is too short.</exception> 20/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Lerp.cs (13)
15/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" /> and length of <paramref name="amount" />.</exception> 16/// <exception cref="ArgumentException">Destination is too short.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 18/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 19/// <exception cref="ArgumentException"><paramref name="amount"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 37/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 38/// <exception cref="ArgumentException">Destination is too short.</exception> 39/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 40/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 58/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="amount" />.</exception> 59/// <exception cref="ArgumentException">Destination is too short.</exception> 60/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 61/// <exception cref="ArgumentException"><paramref name="amount"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (8)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 39/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 40/// <exception cref="ArgumentException">Destination is too short.</exception> 41/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 42/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 60/// <exception cref="ArgumentException">Destination is too short.</exception> 61/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Log10.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Log10P1.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Log2P1.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.LogP1.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Max.cs (7)
16/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 35/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 36/// <exception cref="ArgumentException">Destination is too short.</exception> 37/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 38/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 60/// <exception cref="ArgumentException">Destination is too short.</exception> 61/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxMagnitude.cs (8)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 34/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 35/// <exception cref="ArgumentException">Destination is too short.</exception> 36/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 37/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 53/// <exception cref="ArgumentException">Destination is too short.</exception> 54/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 69/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.MaxNumber.cs (7)
17/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 35/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 36/// <exception cref="ArgumentException">Destination is too short.</exception> 37/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 38/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 60/// <exception cref="ArgumentException">Destination is too short.</exception> 61/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Min.cs (6)
16/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 17/// <exception cref="ArgumentException">Destination is too short.</exception> 18/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 19/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 41/// <exception cref="ArgumentException">Destination is too short.</exception> 42/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.MinMagnitude.cs (7)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 34/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 35/// <exception cref="ArgumentException">Destination is too short.</exception> 36/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 37/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 58/// <exception cref="ArgumentException">Destination is too short.</exception> 59/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.MinNumber.cs (7)
17/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 35/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 36/// <exception cref="ArgumentException">Destination is too short.</exception> 37/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 38/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 60/// <exception cref="ArgumentException">Destination is too short.</exception> 61/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Multiply.cs (6)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 34/// <exception cref="ArgumentException">Destination is too short.</exception> 35/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAdd.cs (13)
15/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" /> and length of <paramref name="addend" />.</exception> 16/// <exception cref="ArgumentException">Destination is too short.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 18/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 19/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 37/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 38/// <exception cref="ArgumentException">Destination is too short.</exception> 39/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 40/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 59/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="addend" />.</exception> 60/// <exception cref="ArgumentException">Destination is too short.</exception> 61/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 62/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (13)
19/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" /> and length of <paramref name="addend" />.</exception> 20/// <exception cref="ArgumentException">Destination is too short.</exception> 21/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 22/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 23/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 45/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 46/// <exception cref="ArgumentException">Destination is too short.</exception> 47/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 48/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 71/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="addend" />.</exception> 72/// <exception cref="ArgumentException">Destination is too short.</exception> 73/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 74/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Negate.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.OnesComplement.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (2)
19/// <exception cref="ArgumentException">Destination is too short.</exception> 20/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Pow.cs (8)
15/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 16/// <exception cref="ArgumentException">Destination is too short.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 18/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 32/// <exception cref="ArgumentException">Destination is too short.</exception> 33/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 47/// <exception cref="ArgumentException">Destination is too short.</exception> 48/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Product.cs (5)
11/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 36/// <exception cref="ArgumentException">Length of both input spans must be greater than zero.</exception> 37/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="y"/> must have the same length.</exception> 68/// <exception cref="ArgumentException">Length of both input spans must be greater than zero.</exception> 69/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="y"/> must have the same length.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.RadiansToDegrees.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (8)
15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 30/// <exception cref="ArgumentException">Destination is too short.</exception> 31/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 45/// <exception cref="ArgumentException">Destination is too short.</exception> 46/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 60/// <exception cref="ArgumentException">Destination is too short.</exception> 61/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.RootN.cs (2)
15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Rotate.cs (4)
16/// <exception cref="ArgumentException">Destination is too short.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 31/// <exception cref="ArgumentException">Destination is too short.</exception> 32/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (9)
17/// <exception cref="ArgumentException">Destination is too short.</exception> 18/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 32/// <exception cref="ArgumentException">Destination is too short.</exception> 33/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 73/// <exception cref="ArgumentException">Destination is too short.</exception> 74/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 88/// <exception cref="ArgumentException">Destination is too short.</exception> 89/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 91/// <exception cref="ArgumentException"><paramref name="mode"/> is invalid.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.ScaleB.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.ShiftLeft.cs (6)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 29/// <exception cref="ArgumentException">Destination is too short.</exception> 30/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 44/// <exception cref="ArgumentException">Destination is too short.</exception> 45/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Sigmoid.cs (3)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x" /> must not be empty.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Sin.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.SinCos.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="sinDestination"/> or <paramref name="cosDestination" /> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.SinCosPi.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="sinPiDestination"/> or <paramref name="cosPiDestination" /> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.SoftMax.cs (3)
11/// <exception cref="ArgumentException">Destination is too short.</exception> 12/// <exception cref="ArgumentException"><paramref name="x" /> must not be empty.</exception> 13/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Sqrt.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Subtract.cs (8)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 34/// <exception cref="ArgumentException">Destination is too short.</exception> 35/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 52/// <exception cref="ArgumentException">Destination is too short.</exception> 53/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (2)
14/// <exception cref="ArgumentException">Destination is too short.</exception> 15/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.TanPi.cs (2)
13/// <exception cref="ArgumentException">Destination is too short.</exception> 14/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (2)
18/// <exception cref="ArgumentException">Destination is too short.</exception> 19/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (2)
16/// <exception cref="ArgumentException">Destination is too short.</exception> 17/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Xor.cs (6)
14/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 17/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 31/// <exception cref="ArgumentException">Destination is too short.</exception> 32/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\Numerics\Tensors\netcore\TensorSpan.cs (2)
273/// <exception cref="ArgumentException"> 570/// <exception cref="ArgumentException">
System\Numerics\Tensors\TensorPrimitives.Single.cs (102)
15/// <exception cref="ArgumentException">Destination is too short.</exception> 16/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 36/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 37/// <exception cref="ArgumentException">Destination is too short.</exception> 38/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 39/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 55/// <exception cref="ArgumentException">Destination is too short.</exception> 56/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 73/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" /> and the length of <paramref name="multiplier" />.</exception> 74/// <exception cref="ArgumentException">Destination is too short.</exception> 75/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 76/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 77/// <exception cref="ArgumentException"><paramref name="multiplier"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 94/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 95/// <exception cref="ArgumentException">Destination is too short.</exception> 96/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 97/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 114/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="multiplier" />.</exception> 115/// <exception cref="ArgumentException">Destination is too short.</exception> 116/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 117/// <exception cref="ArgumentException"><paramref name="multiplier"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 132/// <exception cref="ArgumentException">Destination is too short.</exception> 133/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 157/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 158/// <exception cref="ArgumentException"><paramref name="x" /> and <paramref name="y" /> must not be empty.</exception> 179/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 180/// <exception cref="ArgumentException"><paramref name="x" /> and <paramref name="y" /> must not be empty.</exception> 213/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 214/// <exception cref="ArgumentException">Destination is too short.</exception> 215/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 216/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 232/// <exception cref="ArgumentException">Destination is too short.</exception> 233/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 249/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 274/// <exception cref="ArgumentException">Destination is too short.</exception> 275/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 361/// <exception cref="ArgumentException">Destination is too short.</exception> 362/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 384/// <exception cref="ArgumentException">Destination is too short.</exception> 385/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 407/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 425/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 426/// <exception cref="ArgumentException">Destination is too short.</exception> 427/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 428/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 448/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 467/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 468/// <exception cref="ArgumentException">Destination is too short.</exception> 469/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 470/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 484/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 502/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 503/// <exception cref="ArgumentException">Destination is too short.</exception> 504/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 505/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 525/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 544/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 545/// <exception cref="ArgumentException">Destination is too short.</exception> 546/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 547/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 567/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 568/// <exception cref="ArgumentException">Destination is too short.</exception> 569/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 570/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 586/// <exception cref="ArgumentException">Destination is too short.</exception> 587/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 605/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" /> and length of <paramref name="addend" />.</exception> 606/// <exception cref="ArgumentException">Destination is too short.</exception> 607/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 608/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 609/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 626/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 627/// <exception cref="ArgumentException">Destination is too short.</exception> 628/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 629/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 647/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="addend" />.</exception> 648/// <exception cref="ArgumentException">Destination is too short.</exception> 649/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 650/// <exception cref="ArgumentException"><paramref name="addend"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 665/// <exception cref="ArgumentException">Destination is too short.</exception> 666/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 701/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be greater than zero.</exception> 725/// <exception cref="ArgumentException">Length of both input spans must be greater than zero.</exception> 726/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="y"/> must have the same length.</exception> 756/// <exception cref="ArgumentException">Length of both input spans must be greater than zero.</exception> 757/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="y"/> must have the same length.</exception> 786/// <exception cref="ArgumentException">Destination is too short.</exception> 787/// <exception cref="ArgumentException"><paramref name="x" /> must not be empty.</exception> 788/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 811/// <exception cref="ArgumentException">Destination is too short.</exception> 812/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 835/// <exception cref="ArgumentException">Destination is too short.</exception> 836/// <exception cref="ArgumentException"><paramref name="x" /> must not be empty.</exception> 837/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 871/// <exception cref="ArgumentException">Length of <paramref name="x" /> must be same as length of <paramref name="y" />.</exception> 872/// <exception cref="ArgumentException">Destination is too short.</exception> 873/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 874/// <exception cref="ArgumentException"><paramref name="y"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 890/// <exception cref="ArgumentException">Destination is too short.</exception> 891/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception> 963/// <exception cref="ArgumentException">Destination is too short.</exception> 964/// <exception cref="ArgumentException"><paramref name="x"/> and <paramref name="destination"/> reference overlapping memory locations and do not begin at the same location.</exception>
System\ThrowHelper.cs (1)
71private static ArgumentException GetArgumentException(string message)
System.Private.CoreLib (459)
src\libraries\Common\src\System\Threading\Tasks\TaskToAsyncResult.cs (4)
49/// <exception cref="ArgumentException"><paramref name="asyncResult"/> was not produced by a call to <see cref="Begin"/>.</exception> 59/// <exception cref="ArgumentException"><paramref name="asyncResult"/> was not produced by a call to <see cref="Begin"/>.</exception> 68/// <exception cref="ArgumentException"><paramref name="asyncResult"/> was not produced by a call to <see cref="Begin"/>.</exception> 93/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (6)
71/// <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is 85/// <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is 100/// <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is 115/// <exception cref="ArgumentException">An element of <paramref name="innerExceptions"/> is 147/// <exception cref="ArgumentException">An element of <paramref name="innerExceptionInfos"/> is 165/// <exception cref="ArgumentException">An element of <paramref name="innerExceptionInfos"/> is
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
103ArgumentException.ThrowIfNullOrEmpty(switchName); 130ArgumentException.ThrowIfNullOrEmpty(switchName);
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
98ArgumentException.ThrowIfNullOrEmpty(assemblyName);
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
15ArgumentException.ThrowIfNullOrEmpty(name);
src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (2)
103/// <exception cref="ArgumentException"><paramref name="argument"/> is empty.</exception> 116/// <exception cref="ArgumentException"><paramref name="argument"/> is empty or consists only of white-space characters.</exception>
src\libraries\System.Private.CoreLib\src\System\Array.cs (3)
201/// <exception cref="ArgumentException"><para><paramref name="arrayType"/> is not an array type.</para> 236/// <exception cref="ArgumentException"><para>The lengths array is empty.</para> 284/// <exception cref="ArgumentException"><para>The <paramref name="lengths"/> and <paramref name="lowerBounds"/> arrays do not contain the same number of elements.</para>
src\libraries\System.Private.CoreLib\src\System\BitConverter.cs (13)
392/// <exception cref="ArgumentException"><paramref name="startIndex"/> equals the length of <paramref name="value"/> minus 1.</exception> 417/// <exception cref="ArgumentException"><paramref name="startIndex"/> equals the length of <paramref name="value"/> minus 1.</exception> 452/// <exception cref="ArgumentException"> 490/// <exception cref="ArgumentException"> 528/// <exception cref="ArgumentException"> 566/// <exception cref="ArgumentException"><paramref name="startIndex"/> equals the length of <paramref name="value"/> minus 1.</exception> 593/// <exception cref="ArgumentException"> 623/// <exception cref="ArgumentException"> 653/// <exception cref="ArgumentException"> 693/// <exception cref="ArgumentException"><paramref name="startIndex"/> equals the length of <paramref name="value"/> minus 1.</exception> 718/// <exception cref="ArgumentException"> 746/// <exception cref="ArgumentException"> 784/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
199/// <exception cref="ArgumentException">The <paramref name="destination"/>'s length is smaller than that of the <paramref name="source"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (2)
123/// <exception cref="ArgumentException"> 433/// <exception cref="ArgumentException"><paramref name="index"/> is equal to or greater than the
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\IProducerConsumerCollection.cs (2)
34/// <exception cref="ArgumentException"><paramref name="index"/> is equal to or greater than the 49/// <exception cref="ArgumentException">The <paramref name="item"/> was invalid for this collection.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
153/// <exception cref="ArgumentException">The number of elements in the source <see cref="List{T}"/> is greater than the number of elements that the destination span can contain.</exception>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
707/// <exception cref="ArgumentException"><paramref name="start" /> and <paramref name="length" /> do not denote a valid range of elements in the <see cref="List{T}" />.</exception>
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (4)
292/// <exception cref="ArgumentException"> 470/// <exception cref="ArgumentException"> 655/// <exception cref="ArgumentException"> 788/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (3)
212/// <exception cref="ArgumentException"> 280/// <exception cref="ArgumentException"> 665catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
290/// <exception cref="ArgumentException">The length of <paramref name="bits"/> is not 4, or the representation of the decimal value in <paramref name="bits"/> is not valid.</exception> 590/// <exception cref="ArgumentException">The destination span was not long enough to store the binary representation.</exception>
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipe.cs (1)
48ArgumentException.ThrowIfNullOrEmpty(providerName);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (34)
85/// <exception cref="ArgumentException"> 249/// <exception cref="ArgumentException"><paramref name="enumType"/> is not an <see cref="Enum"/>.</exception> 282/// <exception cref="ArgumentException"><paramref name="enumType"/> is not an <see cref="Enum"/>.</exception> 304/// <exception cref="ArgumentException"><paramref name="enumType"/> is not an <see cref="Enum"/>.</exception> 333/// <exception cref="ArgumentException"><paramref name="enumType" /> is not an enumeration type.</exception> 399/// <exception cref="ArgumentException"><paramref name="flag"/> is a different type than the current instance.</exception> 516/// <exception cref="ArgumentException"> 546/// <exception cref="ArgumentException"><paramref name="enumType"/> is not an <see cref="Enum"/>.</exception> 547/// <exception cref="ArgumentException"><paramref name="value"/> is either an empty string or only contains white space.</exception> 548/// <exception cref="ArgumentException"><paramref name="value"/> is a name, but not one of the named constants defined for the enumeration.</exception> 558/// <exception cref="ArgumentException"><paramref name="enumType"/> is not an <see cref="Enum"/>.</exception> 559/// <exception cref="ArgumentException"><paramref name="value"/> is either an empty string or only contains white space.</exception> 560/// <exception cref="ArgumentException"><paramref name="value"/> is a name, but not one of the named constants defined for the enumeration.</exception> 574/// <exception cref="ArgumentException"><paramref name="enumType"/> is not an <see cref="Enum"/>.</exception> 575/// <exception cref="ArgumentException"><paramref name="value"/> is either an empty string or only contains white space.</exception> 576/// <exception cref="ArgumentException"><paramref name="value"/> is a name, but not one of the named constants defined for the enumeration.</exception> 599/// <exception cref="ArgumentException"><paramref name="enumType"/> is not an <see cref="Enum"/>.</exception> 600/// <exception cref="ArgumentException"><paramref name="value"/> is either an empty string or only contains white space.</exception> 601/// <exception cref="ArgumentException"><paramref name="value"/> is a name, but not one of the named constants defined for the enumeration.</exception> 615/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an <see cref="Enum"/> type</exception> 616/// <exception cref="ArgumentException"><paramref name="value"/> does not contain enumeration information</exception> 624/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an <see cref="Enum"/> type</exception> 625/// <exception cref="ArgumentException"><paramref name="value"/> does not contain enumeration information</exception> 638/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an <see cref="Enum"/> type</exception> 639/// <exception cref="ArgumentException"><paramref name="value"/> does not contain enumeration information</exception> 660/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an <see cref="Enum"/> type</exception> 661/// <exception cref="ArgumentException"><paramref name="value"/> does not contain enumeration information</exception> 834/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an enumeration type</exception> 843/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an enumeration type</exception> 856/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an enumeration type</exception> 877/// <exception cref="ArgumentException"><typeparamref name="TEnum"/> is not an enumeration type</exception> 1621/// <exception cref="ArgumentException">The <paramref name="enumType"/> parameter is not an <see cref="Enum"/> type.</exception> 1622/// <exception cref="ArgumentException">The <paramref name="value"/> is from an enumeration that differs in type from <paramref name="enumType"/>.</exception> 1623/// <exception cref="ArgumentException">The type of <paramref name="value"/> is not an underlying type of <paramref name="enumType"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Environment.cs (2)
108ArgumentException.ThrowIfNullOrEmpty(value); 239ArgumentException.ThrowIfNullOrEmpty(variable);
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (1)
118catch (ArgumentException) { }
src\libraries\System.Private.CoreLib\src\System\Globalization\Calendar.cs (1)
629catch (ArgumentException)
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (13)
410/// <exception cref="ArgumentException"> 527/// <exception cref="ArgumentException"> 594/// <exception cref="ArgumentException"> 674/// <exception cref="ArgumentException"> 741/// <exception cref="ArgumentException"> 950/// <exception cref="ArgumentException"> 1015/// <exception cref="ArgumentException"> 1041/// <exception cref="ArgumentException"> 1328/// <exception cref="ArgumentException"> 1391/// <exception cref="ArgumentException"> 1417/// <exception cref="ArgumentException"> 1466/// <exception cref="ArgumentException"> 1500/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Utf8.cs (1)
22/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (5)
264catch (ArgumentException) 287catch (ArgumentException) 302catch (ArgumentException) 1037catch (ArgumentException) 1114catch (ArgumentException)
src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewCalendar.cs (1)
573catch (ArgumentException)
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.cs (1)
93catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\Globalization\KoreanCalendar.cs (1)
49catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (3)
261ArgumentException.ThrowIfNullOrEmpty(value); 565ArgumentException.ThrowIfNullOrEmpty(value); 682ArgumentException.ThrowIfNullOrEmpty(value);
src\libraries\System.Private.CoreLib\src\System\Globalization\TaiwanCalendar.cs (1)
50catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
429/// <exception cref="ArgumentException">Thrown when <paramref name="obj"/> is not of type <see cref="Half"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\IComparable.cs (1)
38/// <exception cref="ArgumentException"><paramref name="obj" /> is not the same type as this instance.</exception>
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
236catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (8)
18ArgumentException.ThrowIfNullOrEmpty(path); 30ArgumentException.ThrowIfNullOrEmpty(path); 61/// <exception cref="ArgumentException"><paramref name="prefix" /> contains a directory separator.</exception> 93catch (ArgumentException) { } 263ArgumentException.ThrowIfNullOrEmpty(path); 270ArgumentException.ThrowIfNullOrEmpty(sourceDirName); 271ArgumentException.ThrowIfNullOrEmpty(destDirName); 300/// <exception cref="ArgumentException"><paramref name="path"/> or <paramref name="pathToTarget"/> is empty.
src\libraries\System.Private.CoreLib\src\System\IO\Directory.Unix.cs (1)
13ArgumentException.ThrowIfNullOrEmpty(path);
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryInfo.cs (1)
207ArgumentException.ThrowIfNullOrEmpty(destDirName);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerableFactory.cs (1)
19/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (13)
53ArgumentException.ThrowIfNullOrEmpty(sourceFileName); 54ArgumentException.ThrowIfNullOrEmpty(destFileName); 114catch (ArgumentException) { } 685ArgumentException.ThrowIfNullOrEmpty(path); 698/// <exception cref="System.ArgumentException"> 706ArgumentException.ThrowIfNullOrEmpty(path); 722/// <exception cref="System.ArgumentException"> 733ArgumentException.ThrowIfNullOrEmpty(path); 879ArgumentException.ThrowIfNullOrEmpty(sourceFileName); 880ArgumentException.ThrowIfNullOrEmpty(destFileName); 1065ArgumentException.ThrowIfNullOrEmpty(path); 1185/// <exception cref="ArgumentException"><paramref name="path"/> or <paramref name="pathToTarget"/> is empty. 1220ArgumentException.ThrowIfNullOrEmpty(path);
src\libraries\System.Private.CoreLib\src\System\IO\FileInfo.cs (2)
93ArgumentException.ThrowIfNullOrEmpty(destFileName); 155ArgumentException.ThrowIfNullOrEmpty(destFileName);
src\libraries\System.Private.CoreLib\src\System\IO\FileStream.cs (1)
184ArgumentException.ThrowIfNullOrEmpty(path);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.cs (1)
24ArgumentException.ThrowIfNullOrEmpty(path, argName);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystemInfo.cs (1)
153/// <exception cref="ArgumentException"><paramref name="pathToTarget"/> is empty.
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
105catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException)
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
28ArgumentException.ThrowIfNullOrEmpty(path);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (2)
57(e is ArgumentException && !(e is ArgumentNullException)); 61ArgumentException.ThrowIfNullOrEmpty(path);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (2)
217ArgumentException.ThrowIfNullOrEmpty(path); 230ArgumentException.ThrowIfNullOrEmpty(path);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
174ArgumentException.ThrowIfNullOrEmpty(path); 187ArgumentException.ThrowIfNullOrEmpty(path);
src\libraries\System.Private.CoreLib\src\System\Memory.cs (2)
360/// <exception cref="ArgumentException"> 380/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (8)
2860/// <exception cref="ArgumentException"> 2876/// <exception cref="ArgumentException"> 3259/// <exception cref="ArgumentException"> 3298/// <exception cref="ArgumentException"> 3320/// <exception cref="ArgumentException"> 3349/// <exception cref="ArgumentException"> 3438/// <exception cref="ArgumentException">The <paramref name="destination"/> span was shorter than the <paramref name="source"/> span.</exception> 3439/// <exception cref="ArgumentException">The <paramref name="source"/> and <paramref name="destination"/> were overlapping but not referring to the same starting location.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\INumber.cs (1)
24/// <exception cref="ArgumentException"><paramref name="min" /> is greater than <paramref name="max" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (6)
277/// <exception cref="ArgumentException"><paramref name="style" /> is not a supported <see cref="NumberStyles" /> value.</exception> 288/// <exception cref="ArgumentException"><paramref name="style" /> is not a supported <see cref="NumberStyles" /> value.</exception> 298/// <exception cref="ArgumentException"><paramref name="style" /> is not a supported <see cref="NumberStyles" /> value.</exception> 416/// <exception cref="ArgumentException"><paramref name="style" /> is not a supported <see cref="NumberStyles" /> value.</exception> 425/// <exception cref="ArgumentException"><paramref name="style" /> is not a supported <see cref="NumberStyles" /> value.</exception> 434/// <exception cref="ArgumentException"><paramref name="style" /> is not a supported <see cref="NumberStyles" /> value.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (3)
580/// <exception cref="ArgumentException">The number of elements in the current instance is greater than in the array.</exception> 600/// <exception cref="ArgumentException">The number of elements in the current instance is greater than in the array.</exception> 625/// <exception cref="ArgumentException">If number of elements in source vector is greater than those available in destination span.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (3)
589/// <exception cref="ArgumentException">The number of elements in the current instance is greater than in the array.</exception> 609/// <exception cref="ArgumentException">The number of elements in the current instance is greater than in the array.</exception> 634/// <exception cref="ArgumentException">If number of elements in source vector is greater than those available in destination span.</exception>
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (3)
688/// <exception cref="ArgumentException">The number of elements in the current instance is greater than in the array.</exception> 708/// <exception cref="ArgumentException">The number of elements in the current instance is greater than in the array.</exception> 733/// <exception cref="ArgumentException">If number of elements in source vector is greater than those available in destination span.</exception>
src\libraries\System.Private.CoreLib\src\System\Random.cs (3)
188/// <exception cref="ArgumentException"><paramref name="choices" /> is empty.</exception> 245/// <exception cref="ArgumentException"><paramref name="choices" /> is empty.</exception> 267/// <exception cref="ArgumentException"><paramref name="choices" /> is empty.</exception>
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (2)
282/// <exception cref="ArgumentException"> 302/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (2)
96/// <exception cref="ArgumentException"> 292/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
32ArgumentException.ThrowIfNullOrEmpty(assemblyName);
src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInvoker.cs (3)
46/// <exception cref="ArgumentException"> 101/// <exception cref="ArgumentException"> 199/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (2)
22ArgumentException.ThrowIfNullOrEmpty(name); 31ArgumentException.ThrowIfNullOrEmpty(name);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (2)
213/// <exception cref="ArgumentException"><paramref name="document"/> is not valid.</exception> 258/// <exception cref="ArgumentException"><paramref name="document"/> is not valid.</exception>
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ModuleBuilder.cs (6)
24ArgumentException.ThrowIfNullOrEmpty(name); 53ArgumentException.ThrowIfNullOrEmpty(url); 81ArgumentException.ThrowIfNullOrEmpty(name); 129ArgumentException.ThrowIfNullOrEmpty(name); 145ArgumentException.ThrowIfNullOrEmpty(name); 162ArgumentException.ThrowIfNullOrEmpty(methodName);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilder.cs (9)
64ArgumentException.ThrowIfNullOrEmpty(name); 77ArgumentException.ThrowIfNullOrEmpty(fieldName); 123ArgumentException.ThrowIfNullOrEmpty(name); 165ArgumentException.ThrowIfNullOrEmpty(name); 184ArgumentException.ThrowIfNullOrEmpty(name); 211ArgumentException.ThrowIfNullOrEmpty(name); 212ArgumentException.ThrowIfNullOrEmpty(dllName); 213ArgumentException.ThrowIfNullOrEmpty(entryName); 246ArgumentException.ThrowIfNullOrEmpty(name);
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInvoker.cs (3)
48/// <exception cref="ArgumentException"> 129/// <exception cref="ArgumentException"> 236/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
147catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (1)
115/// <exception cref="ArgumentException"><paramref name="fldHandle"/> does not refer to a field which is an Rva, is misaligned, or T is of an invalid type.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TypeForwardedFromAttribute.cs (1)
11ArgumentException.ThrowIfNullOrEmpty(assemblyFullName);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
114/// the call to <see cref="GetOrCreateComInterfaceForObject(object, CreateComInterfaceFlags)"/> will throw a <see cref="ArgumentException"/>.
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ComVariant.cs (4)
255/// <exception cref="ArgumentException">When <typeparamref name="T"/> does not directly correspond to a <see cref="VarEnum"/> variant type.</exception> 377/// <exception cref="ArgumentException">When the provided <paramref name="vt"/> corresponds to a variant type that is not supported in VARIANTs or is <see cref="VarEnum.VT_DECIMAL"/></exception> 441/// <exception cref="ArgumentException">When <typeparamref name="T"/> does not match the <see cref="VarType"/> of the <see cref="ComVariant"/>.</exception> 569/// <exception cref="ArgumentException"><typeparamref name="T"/> is <see cref="decimal"/> or larger than the storage space in an <see cref="ComVariant"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (6)
25/// <exception cref="ArgumentException"> 48/// <exception cref="ArgumentException"> 112/// <exception cref="ArgumentException"> 167/// <exception cref="ArgumentException"> 252/// <exception cref="ArgumentException">The string is longer than <see cref="int.MaxValue"/>.</exception> 262/// <exception cref="ArgumentException">The string is longer than <see cref="int.MaxValue"/>.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (3)
81/// <exception cref="ArgumentException">If assembly is not a RuntimeAssembly</exception> 118/// <exception cref="ArgumentException">If assembly is not a RuntimeAssembly</exception> 200/// <exception cref="ArgumentException">If a resolver is already set for this assembly</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.Unix.cs (2)
16/// <exception cref="ArgumentException"><paramref name="alignment" /> is not a power of two.</exception> 76/// <exception cref="ArgumentException"><paramref name="alignment" /> is not a power of two.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (6)
631/// <exception cref="ArgumentException"> 661/// <exception cref="ArgumentException"> 679/// <exception cref="ArgumentException"> 727/// <exception cref="ArgumentException"> 744/// <exception cref="ArgumentException"> 778/// <exception cref="ArgumentException"><paramref name="obj" /> is not a <see cref="NFloat" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\OSPlatform.cs (1)
22ArgumentException.ThrowIfNullOrEmpty(osPlatform);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (3)
132/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Count" />.</exception> 141/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Count" />.</exception> 150/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Count" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\SimdVectorExtensions.cs (3)
15/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="ISimdVector{TVector, T}.Count" />.</exception> 30/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="ISimdVector{TVector, T}.Count" />.</exception> 45/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="ISimdVector{TVector, T}.Count" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (3)
653/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector128{T}.Count" />.</exception> 674/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector128{T}.Count" />.</exception> 700/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector128{T}.Count" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (3)
562/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector256{T}.Count" />.</exception> 583/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector256{T}.Count" />.</exception> 609/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector256{T}.Count" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (3)
491/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector512{T}.Count" />.</exception> 511/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector512{T}.Count" />.</exception> 536/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector512{T}.Count" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (3)
533/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector64{T}.Count" />.</exception> 554/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector64{T}.Count" />.</exception> 580/// <exception cref="ArgumentException">The length of <paramref name="destination" /> is less than <see cref="Vector64{T}.Count" />.</exception>
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (2)
440ArgumentException.ThrowIfNullOrEmpty(unmanagedDllPath); 649ArgumentException.ThrowIfNullOrEmpty(requestedSimpleName, "AssemblyName.Name");
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (2)
97ArgumentException.ThrowIfNullOrEmpty(identifier); 111ArgumentException.ThrowIfNullOrEmpty(frameworkName);
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (1)
149/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Span.cs (2)
101/// <exception cref="ArgumentException"> 310/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\String.cs (1)
430/// <exception cref="ArgumentException">The destination span is shorter than the source string.</exception>
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
1206ArgumentException.ThrowIfNullOrEmpty(oldValue); 1327ArgumentException.ThrowIfNullOrEmpty(oldValue);
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (12)
166/// <exception cref="ArgumentException"> 220/// <exception cref="ArgumentException"> 251/// <exception cref="ArgumentException"> 306/// <exception cref="ArgumentException"> 484/// <exception cref="ArgumentException"> 517/// <exception cref="ArgumentException"> 761/// <exception cref="ArgumentException"> 814/// <exception cref="ArgumentException"> 845/// <exception cref="ArgumentException"> 906/// <exception cref="ArgumentException"> 1080/// <exception cref="ArgumentException"> 1113/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (2)
732/// <exception cref="ArgumentException"> 750/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
2064ArgumentException.ThrowIfNullOrEmpty(oldValue);
src\libraries\System.Private.CoreLib\src\System\Threading\SpinLock.cs (4)
145/// <exception cref="ArgumentException"> 173/// <exception cref="ArgumentException"> 215/// <exception cref="ArgumentException"> 253/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Future.cs (8)
104/// <exception cref="ArgumentException"> 122/// <exception cref="ArgumentException"> 145/// <exception cref="ArgumentException"> 169/// <exception cref="ArgumentException"> 192/// <exception cref="ArgumentException"> 210/// <exception cref="ArgumentException"> 234/// <exception cref="ArgumentException"> 261/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (32)
1344/// <exception cref="ArgumentException">The exception that is thrown when the 1346/// <exception cref="ArgumentException">The exception that is thrown when the 1369/// <exception cref="ArgumentException">The exception that is thrown when the 1371/// <exception cref="ArgumentException">The exception that is thrown when the 1398/// <exception cref="ArgumentException">The exception that is thrown when the 1400/// <exception cref="ArgumentException">The exception that is thrown when the 1439/// <exception cref="ArgumentException">The exception that is thrown when the 1441/// <exception cref="ArgumentException">The exception that is thrown when the 1475/// <exception cref="ArgumentException">The exception that is thrown when the 1477/// <exception cref="ArgumentException">The exception that is thrown when the 1501/// <exception cref="ArgumentException">The exception that is thrown when the 1503/// <exception cref="ArgumentException">The exception that is thrown when the 1532/// <exception cref="ArgumentException">The exception that is thrown when the 1534/// <exception cref="ArgumentException">The exception that is thrown when the 1575/// <exception cref="ArgumentException">The exception that is thrown when the 1577/// <exception cref="ArgumentException">The exception that is thrown when the 1714/// <exception cref="ArgumentException">The exception that is thrown when the 1716/// <exception cref="ArgumentException">The exception that is thrown when the 1739/// <exception cref="ArgumentException">The exception that is thrown when the 1741/// <exception cref="ArgumentException">The exception that is thrown when the 1768/// <exception cref="ArgumentException">The exception that is thrown when the 1770/// <exception cref="ArgumentException">The exception that is thrown when the 1809/// <exception cref="ArgumentException">The exception that is thrown when the 1811/// <exception cref="ArgumentException">The exception that is thrown when the 1845/// <exception cref="ArgumentException">The exception that is thrown when the 1847/// <exception cref="ArgumentException">The exception that is thrown when the 1871/// <exception cref="ArgumentException">The exception that is thrown when the 1873/// <exception cref="ArgumentException">The exception that is thrown when the 1902/// <exception cref="ArgumentException">The exception that is thrown when the 1904/// <exception cref="ArgumentException">The exception that is thrown when the 1945/// <exception cref="ArgumentException">The exception that is thrown when the 1947/// <exception cref="ArgumentException">The exception that is thrown when the
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (25)
4730/// <exception cref="ArgumentException"> 4775/// <exception cref="ArgumentException"> 4810/// <exception cref="ArgumentException"> 4852/// <exception cref="ArgumentException"> 4882/// <exception cref="ArgumentException">The <paramref name="tasks"/> argument contains a null element.</exception> 5130/// <exception cref="ArgumentException"> 5158/// <exception cref="ArgumentException"> 5193/// <exception cref="ArgumentException"> 5222/// <exception cref="ArgumentException"> 5255/// <exception cref="ArgumentException"> 5880/// <exception cref="ArgumentException"> 5941/// <exception cref="ArgumentException"> 5975/// <exception cref="ArgumentException">The <paramref name="tasks"/> array contained a null task.</exception> 6181/// <exception cref="ArgumentException"> 6263/// <exception cref="ArgumentException"> 6300/// <exception cref="ArgumentException"> 6452/// <exception cref="ArgumentException"> 6471/// <exception cref="ArgumentException"> 6486/// <exception cref="ArgumentException"> 6644/// <exception cref="ArgumentException"> 6659/// <exception cref="ArgumentException"> 6736/// <exception cref="ArgumentException"> 6755/// <exception cref="ArgumentException"> 6787/// <exception cref="ArgumentException"> 6803/// <exception cref="ArgumentException"><paramref name="tasks"/> contains a null.</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (5)
98/// <exception cref="ArgumentException">There are one or more null elements in <paramref name="exceptions"/>.</exception> 153/// <exception cref="ArgumentException">There are one or more null elements in <paramref name="exceptions"/>.</exception> 154/// <exception cref="ArgumentException">The <paramref name="exceptions"/> collection is empty.</exception> 294/// <exception cref="ArgumentException"><paramref name="completedTask"/> is not completed.</exception> 317/// <exception cref="ArgumentException"><paramref name="completedTask"/> is not completed.</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (5)
98/// <exception cref="ArgumentException">There are one or more null elements in <paramref name="exceptions"/>.</exception> 153/// <exception cref="ArgumentException">There are one or more null elements in <paramref name="exceptions"/>.</exception> 154/// <exception cref="ArgumentException">The <paramref name="exceptions"/> collection is empty.</exception> 296/// <exception cref="ArgumentException"><paramref name="completedTask"/> is not completed.</exception> 319/// <exception cref="ArgumentException"><paramref name="completedTask"/> is not completed.</exception>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (64)
1694/// <exception cref="ArgumentException">The exception that is thrown when the 1696/// <exception cref="ArgumentException">The exception that is thrown when the 1719/// <exception cref="ArgumentException">The exception that is thrown when the 1721/// <exception cref="ArgumentException">The exception that is thrown when the 1748/// <exception cref="ArgumentException">The exception that is thrown when the 1750/// <exception cref="ArgumentException">The exception that is thrown when the 1789/// <exception cref="ArgumentException">The exception that is thrown when the 1791/// <exception cref="ArgumentException">The exception that is thrown when the 1825/// <exception cref="ArgumentException">The exception that is thrown when the 1827/// <exception cref="ArgumentException">The exception that is thrown when the 1852/// <exception cref="ArgumentException">The exception that is thrown when the 1854/// <exception cref="ArgumentException">The exception that is thrown when the 1883/// <exception cref="ArgumentException">The exception that is thrown when the 1885/// <exception cref="ArgumentException">The exception that is thrown when the 1926/// <exception cref="ArgumentException">The exception that is thrown when the 1928/// <exception cref="ArgumentException">The exception that is thrown when the 1965/// <exception cref="ArgumentException">The exception that is thrown when the 1967/// <exception cref="ArgumentException">The exception that is thrown when the 1995/// <exception cref="ArgumentException">The exception that is thrown when the 1997/// <exception cref="ArgumentException">The exception that is thrown when the 2028/// <exception cref="ArgumentException">The exception that is thrown when the 2030/// <exception cref="ArgumentException">The exception that is thrown when the 2073/// <exception cref="ArgumentException">The exception that is thrown when the 2075/// <exception cref="ArgumentException">The exception that is thrown when the 2114/// <exception cref="ArgumentException">The exception that is thrown when the 2116/// <exception cref="ArgumentException">The exception that is thrown when the 2144/// <exception cref="ArgumentException">The exception that is thrown when the 2146/// <exception cref="ArgumentException">The exception that is thrown when the 2179/// <exception cref="ArgumentException">The exception that is thrown when the 2181/// <exception cref="ArgumentException">The exception that is thrown when the 2226/// <exception cref="ArgumentException">The exception that is thrown when the 2228/// <exception cref="ArgumentException">The exception that is thrown when the 2412/// <exception cref="ArgumentException">The exception that is thrown when the 2414/// <exception cref="ArgumentException">The exception that is thrown when the 2437/// <exception cref="ArgumentException">The exception that is thrown when the 2439/// <exception cref="ArgumentException">The exception that is thrown when the 2466/// <exception cref="ArgumentException">The exception that is thrown when the 2468/// <exception cref="ArgumentException">The exception that is thrown when the 2507/// <exception cref="ArgumentException">The exception that is thrown when the 2509/// <exception cref="ArgumentException">The exception that is thrown when the 2547/// <exception cref="ArgumentException">The exception that is thrown when the 2549/// <exception cref="ArgumentException">The exception that is thrown when the 2576/// <exception cref="ArgumentException">The exception that is thrown when the 2578/// <exception cref="ArgumentException">The exception that is thrown when the 2609/// <exception cref="ArgumentException">The exception that is thrown when the 2611/// <exception cref="ArgumentException">The exception that is thrown when the 2654/// <exception cref="ArgumentException">The exception that is thrown when the 2656/// <exception cref="ArgumentException">The exception that is thrown when the 2694/// <exception cref="ArgumentException">The exception that is thrown when the 2696/// <exception cref="ArgumentException">The exception that is thrown when the 2724/// <exception cref="ArgumentException">The exception that is thrown when the 2726/// <exception cref="ArgumentException">The exception that is thrown when the 2759/// <exception cref="ArgumentException">The exception that is thrown when the 2761/// <exception cref="ArgumentException">The exception that is thrown when the 2806/// <exception cref="ArgumentException">The exception that is thrown when the 2808/// <exception cref="ArgumentException">The exception that is thrown when the 2843/// <exception cref="ArgumentException">The exception that is thrown when the 2845/// <exception cref="ArgumentException">The exception that is thrown when the 2869/// <exception cref="ArgumentException">The exception that is thrown when the 2871/// <exception cref="ArgumentException">The exception that is thrown when the 2900/// <exception cref="ArgumentException">The exception that is thrown when the 2902/// <exception cref="ArgumentException">The exception that is thrown when the 2943/// <exception cref="ArgumentException">The exception that is thrown when the 2945/// <exception cref="ArgumentException">The exception that is thrown when the
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolBoundHandle.Unix.cs (2)
50/// <exception cref="ArgumentException"> 197/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (5)
313private static ArgumentException GetAddingDuplicateWithKeyArgumentException(object? key) 724private static ArgumentException GetArgumentException(ExceptionResource resource) 734private static ArgumentException GetWrongKeyTypeArgumentException(object? key, Type targetType) 739private static ArgumentException GetWrongValueTypeArgumentException(object? value, Type targetType) 754private static ArgumentException GetArgumentException(ExceptionResource resource, ExceptionArgument argument)
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (1)
542/// <exception cref="ArgumentException">
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (1)
257catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (2)
1134catch (ArgumentException e) 2145ArgumentException.ThrowIfNullOrEmpty(id);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (4)
112catch (ArgumentException ex) 483catch (ArgumentException e) 551catch (ArgumentException e) 565catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (1)
123catch (ArgumentException e)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
315catch (ArgumentException) { } 322catch (ArgumentException) { }
src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
275/// <exception cref="ArgumentException"><paramref name="member"/> does not match a member on the current <see cref="Type"/>.</exception> 295private protected static ArgumentException CreateGetMemberWithSameMetadataDefinitionAsNotFoundException(MemberInfo member) =>
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
177/// <exception cref="ArgumentException">Provided assembly name was invalid.</exception>
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
348/// <exception cref="ArgumentException">Provided type name was invalid.</exception>
src\System\Reflection\Emit\RuntimeILGenerator.cs (1)
1196ArgumentException.ThrowIfNullOrEmpty(usingNamespace);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
64ArgumentException.ThrowIfNullOrEmpty(name);
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
36ArgumentException.ThrowIfNullOrEmpty(name);
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (1)
472ArgumentException.ThrowIfNullOrEmpty(name);
src\System\Reflection\Metadata\MetadataUpdater.cs (1)
32/// <exception cref="ArgumentException">The assembly argument is not a runtime assembly.</exception>
src\System\Reflection\RuntimeAssembly.cs (1)
250ArgumentException.ThrowIfNullOrEmpty(name);
src\System\Reflection\RuntimeModule.cs (1)
404ArgumentException.ThrowIfNullOrEmpty(className);
src\System\Reflection\TypeNameResolver.CoreCLR.cs (1)
110ArgumentException.ThrowIfNullOrEmpty(typeName);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
427/// <exception cref="ArgumentException">The specified type cannot have a boxed instance of itself created.</exception> 471/// <exception cref="ArgumentException">The passed-in type is not a valid type to get the size of.</exception>
src\System\RuntimeType.ActivatorCache.cs (1)
62case ArgumentException: throw new ArgumentException(friendlyMessage);
src\System\Threading\Mutex.CoreCLR.Unix.cs (1)
38ArgumentException.ThrowIfNullOrEmpty(name);
src\System\Threading\Thread.CoreCLR.cs (1)
347/// <exception cref="ArgumentException">if timeout &lt; -1 (Timeout.Infinite)</exception>
System.Private.DataContractSerialization (40)
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (1)
56catch (ArgumentException exception)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (4)
176catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 198catch (ArgumentException exception) 273catch (ArgumentException exception) 306catch (ArgumentException exception)
System\Runtime\Serialization\Json\XmlJsonReader.cs (3)
691catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 709catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 948catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException)
System\Runtime\Serialization\XmlReaderDelegator.cs (5)
486catch (ArgumentException exception) 687catch (ArgumentException exception) 708catch (ArgumentException exception) 732catch (ArgumentException exception) 749catch (ArgumentException exception)
System\Xml\XmlBaseWriter.cs (2)
540ArgumentException.ThrowIfNullOrEmpty(localName); 830ArgumentException.ThrowIfNullOrEmpty(localName);
System\Xml\XmlBufferReader.cs (2)
429catch (ArgumentException exception) 451catch (ArgumentException exception)
System\Xml\XmlConverter.cs (13)
43catch (ArgumentException exception) 72catch (ArgumentException exception) 100catch (ArgumentException exception) 128catch (ArgumentException exception) 156catch (ArgumentException exception) 184catch (ArgumentException exception) 209catch (ArgumentException exception) 221catch (ArgumentException exception) 245catch (ArgumentException exception) 266catch (ArgumentException exception) 295catch (ArgumentException exception) 316catch (ArgumentException exception) 934catch (ArgumentException)
System\Xml\XmlDictionaryReader.cs (10)
836catch (ArgumentException exception) 867catch (ArgumentException exception) 898catch (ArgumentException exception) 1661catch (ArgumentException exception) 1682catch (ArgumentException exception) 1702catch (ArgumentException exception) 1722catch (ArgumentException exception) 1742catch (ArgumentException exception) 1762catch (ArgumentException exception) 1782catch (ArgumentException exception)
System.Private.Uri (6)
System\DomainNameHelper.cs (3)
204catch (ArgumentException) 242catch (ArgumentException) 259catch (ArgumentException)
System\Uri.cs (3)
4015catch (ArgumentException) 4060catch (ArgumentException) 4094catch (ArgumentException)
System.Private.Xml (59)
System\Xml\Core\XmlCharCheckingWriter.cs (3)
112ArgumentException.ThrowIfNullOrEmpty(localName); 129ArgumentException.ThrowIfNullOrEmpty(localName); 293ArgumentException.ThrowIfNullOrEmpty(name);
System\Xml\Core\XmlCharCheckingWriterAsync.cs (3)
62ArgumentException.ThrowIfNullOrEmpty(localName); 78ArgumentException.ThrowIfNullOrEmpty(localName); 239ArgumentException.ThrowIfNullOrEmpty(name);
System\Xml\Core\XmlReader.cs (8)
915ArgumentException.ThrowIfNullOrEmpty(name); 934ArgumentException.ThrowIfNullOrEmpty(localName); 955ArgumentException.ThrowIfNullOrEmpty(name); 995ArgumentException.ThrowIfNullOrEmpty(localName); 1037ArgumentException.ThrowIfNullOrEmpty(name); 1062ArgumentException.ThrowIfNullOrEmpty(localName); 1412ArgumentException.ThrowIfNullOrEmpty(localName); 1611ArgumentException.ThrowIfNullOrEmpty(inputUri);
System\Xml\Core\XmlReaderSettings.cs (1)
321ArgumentException.ThrowIfNullOrEmpty(inputUri);
System\Xml\Core\XmlTextReaderImpl.cs (5)
567ArgumentException.ThrowIfNullOrEmpty(url); 3265catch (ArgumentException innerEx) 3506catch (ArgumentException) 3539catch (ArgumentException) 7806catch (ArgumentException e)
System\Xml\Core\XmlTextWriter.cs (3)
1099ArgumentException.ThrowIfNullOrEmpty(ns); 1150ArgumentException.ThrowIfNullOrEmpty(name); 1689ArgumentException.ThrowIfNullOrEmpty(name);
System\Xml\Core\XmlWellFormedWriter.cs (6)
363ArgumentException.ThrowIfNullOrEmpty(name); 428ArgumentException.ThrowIfNullOrEmpty(localName); 889ArgumentException.ThrowIfNullOrEmpty(name); 934ArgumentException.ThrowIfNullOrEmpty(name); 1282ArgumentException.ThrowIfNullOrEmpty(localName); 2060private static ArgumentException InvalidCharsException(string name, int badCharIndex)
System\Xml\Core\XmlWellFormedWriterAsync.cs (5)
63ArgumentException.ThrowIfNullOrEmpty(name); 182ArgumentException.ThrowIfNullOrEmpty(localName); 790ArgumentException.ThrowIfNullOrEmpty(name); 835ArgumentException.ThrowIfNullOrEmpty(name); 1133ArgumentException.ThrowIfNullOrEmpty(localName);
System\Xml\Core\XmlWriter.cs (1)
215ArgumentException.ThrowIfNullOrEmpty(name);
System\Xml\Core\XmlWriterAsync.cs (1)
201ArgumentException.ThrowIfNullOrEmpty(name);
System\Xml\Dom\XmlProcessingInstruction.cs (1)
19ArgumentException.ThrowIfNullOrEmpty(target);
System\Xml\Schema\DataTypeImplementation.cs (8)
613catch (ArgumentException e) 1081catch (ArgumentException e) 1336catch (ArgumentException e) 2050catch (ArgumentException e) 2426catch (ArgumentException e) 2524catch (ArgumentException e) 2719catch (ArgumentException e) 3052catch (ArgumentException e)
System\Xml\Schema\DtdParser.cs (1)
272ArgumentException.ThrowIfNullOrEmpty(docTypeName);
System\Xml\Schema\Preprocessor.cs (1)
2066catch (ArgumentException)
System\Xml\XmlConvert.cs (3)
314ArgumentException.ThrowIfNullOrEmpty(name); 372ArgumentException.ThrowIfNullOrEmpty(name); 1276catch (ArgumentException)
System\Xml\XPath\Internal\CompiledXPathExpr.cs (1)
173catch (System.ArgumentException)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
195catch (ArgumentException)
System\Xml\Xsl\Runtime\XsltFunctions.cs (3)
381catch (ArgumentException) 438catch (ArgumentException) 542catch (System.ArgumentException)
System\Xml\Xsl\Runtime\XsltLibrary.cs (2)
256catch (ArgumentException) 305catch (System.ArgumentException)
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
672catch (ArgumentException)
System\Xml\Xsl\XsltOld\XsltOutput.cs (1)
146catch (System.ArgumentException) { }
System.Private.Xml.Linq (8)
System\Xml\Linq\XDocument.cs (3)
598catch (ArgumentException) 631catch (ArgumentException) 775catch (ArgumentException)
System\Xml\Linq\XElement.cs (3)
482ArgumentException.ThrowIfNullOrEmpty(prefix); 1212/// <exception cref="ArgumentException"> 1252/// <exception cref="ArgumentException">
System\Xml\Linq\XName.cs (1)
74ArgumentException.ThrowIfNullOrEmpty(expandedName);
System\Xml\Linq\XNodeDocumentOrderComparer.cs (1)
49/// <exception cref="ArgumentException">
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxy.cs (2)
34/// <exception cref="System.ArgumentException"><typeparamref name="T"/> is a class, 54/// <exception cref="System.ArgumentException"><paramref name="interfaceType"/> is a class,
System.Reflection.Emit (5)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
820ArgumentException.ThrowIfNullOrEmpty(usingNamespace);
System\Reflection\Emit\PersistedAssemblyBuilder.cs (1)
37ArgumentException.ThrowIfNullOrEmpty(name.Name, "AssemblyName.Name");
System\Reflection\Emit\PropertyBuilderImpl.cs (1)
31ArgumentException.ThrowIfNullOrEmpty(name);
System\Reflection\Emit\TypeBuilderImpl.cs (2)
370private ArgumentException ArgumentExceptionInvalidMethodOverride(string methodName) => 444ArgumentException.ThrowIfNullOrEmpty(name);
System.Reflection.Metadata (81)
System\Reflection\Internal\Utilities\StreamExtensions.cs (1)
106/// <exception cref="ArgumentException">size is 0 and distance from current position to end-of-stream can't fit in Int32.</exception>
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
177/// <exception cref="ArgumentException">Provided assembly name was invalid.</exception>
System\Reflection\Metadata\BlobBuilder.cs (1)
1159/// <exception cref="ArgumentException"><paramref name="value"/> is not of a constant type.</exception>
System\Reflection\Metadata\BlobWriter.cs (1)
524/// <exception cref="ArgumentException"><paramref name="value"/> is not of a constant type.</exception>
System\Reflection\Metadata\Ecma335\CodedIndex.cs (15)
35/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 42/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 49/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 56/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 63/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 70/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 77/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 84/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 97/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 104/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 111/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 118/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 125/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 132/// <exception cref="ArgumentException">Unexpected handle kind.</exception> 167/// <exception cref="ArgumentException">Unexpected handle kind.</exception>
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (6)
596/// <exception cref="ArgumentException">Unexpected constant type.</exception> 614/// <exception cref="ArgumentException"><paramref name="serializedTypeName"/> is empty.</exception> 1064/// <exception cref="ArgumentException"><paramref name="type"/> doesn't have the expected handle kind.</exception> 1081/// <exception cref="ArgumentException"><paramref name="attributes"/> is invalid.</exception> 1121/// <exception cref="ArgumentException"><paramref name="genericType"/> doesn't have the expected handle kind.</exception> 1224/// <exception cref="ArgumentException"><paramref name="type"/> is nil or of an unexpected kind.</exception>
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (5)
178/// <exception cref="ArgumentException">A label was not defined by an instruction encoder this builder is associated with.</exception> 190/// <exception cref="ArgumentException">A label was not defined by an instruction encoder this builder is associated with.</exception> 203/// <exception cref="ArgumentException">A label was not defined by an instruction encoder this builder is associated with.</exception> 204/// <exception cref="ArgumentException"><paramref name="catchType"/> is not a valid type handle.</exception> 224/// <exception cref="ArgumentException">A label was not defined by an instruction encoder this builder is associated with.</exception>
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (2)
153/// <exception cref="ArgumentException"><paramref name="catchType"/> is invalid.</exception> 197/// <exception cref="ArgumentException"><paramref name="catchType"/> is invalid.</exception>
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (3)
416/// <exception cref="ArgumentException"><paramref name="code"/> is not a branch instruction.</exception> 417/// <exception cref="ArgumentException"><paramref name="label"/> was not defined by this encoder.</exception> 476/// <exception cref="ArgumentException"><paramref name="label"/> was not defined by this encoder.</exception>
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
74/// <exception cref="ArgumentException"><paramref name="guidHeapStartOffset"/> is not a multiple of size of GUID.</exception>
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (17)
459/// <exception cref="ArgumentException"><paramref name="baseType"/> doesn't have the expected handle kind.</exception> 523/// <exception cref="ArgumentException"><paramref name="implementedInterface"/> doesn't have the expected handle kind.</exception> 565/// <exception cref="ArgumentException"><paramref name="resolutionScope"/> doesn't have the expected handle kind.</exception> 634/// <exception cref="ArgumentException"><paramref name="type"/> doesn't have the expected handle kind.</exception> 664/// <exception cref="ArgumentException"><paramref name="parent"/> doesn't have the expected handle kind.</exception> 689/// <exception cref="ArgumentException"><paramref name="association"/> doesn't have the expected handle kind.</exception> 746/// <exception cref="ArgumentException"><paramref name="parent"/> doesn't have the expected handle kind.</exception> 770/// <exception cref="ArgumentException"><paramref name="method"/> doesn't have the expected handle kind.</exception> 827/// <exception cref="ArgumentException"><paramref name="parent"/> doesn't have the expected handle kind.</exception> 856/// <exception cref="ArgumentException"><paramref name="genericParameter"/> doesn't have the expected handle kind.</exception> 918/// <exception cref="ArgumentException"><paramref name="parent"/> doesn't have the expected handle kind.</exception> 1045/// <exception cref="ArgumentException"><paramref name="methodBody"/> or <paramref name="methodDeclaration"/> doesn't have the expected handle kind.</exception> 1073/// <exception cref="ArgumentException"><paramref name="parent"/> doesn't have the expected handle kind.</exception> 1096/// <exception cref="ArgumentException"><paramref name="implementation"/> doesn't have the expected handle kind.</exception> 1137/// <exception cref="ArgumentException"><paramref name="implementation"/> doesn't have the expected handle kind.</exception> 1163/// <exception cref="ArgumentException"><paramref name="parent"/> doesn't have the expected handle kind.</exception> 1401/// <exception cref="ArgumentException"><paramref name="parent"/> doesn't have the expected handle kind.</exception>
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (1)
53/// <exception cref="ArgumentException"><paramref name="metadataVersion"/> is too long (the number of bytes when UTF-8 encoded must be less than 255).</exception>
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (8)
23/// <exception cref="ArgumentException">The <paramref name="handle"/> is not a valid metadata table handle.</exception> 40/// <exception cref="ArgumentException">The <paramref name="handle"/> is invalid.</exception> 75/// <exception cref="ArgumentException"> 196/// <exception cref="ArgumentException"> 285/// <exception cref="ArgumentException"> 302/// <exception cref="ArgumentException"><paramref name="token"/> is not a valid metadata entity token.</exception> 316/// <exception cref="ArgumentException"> 326/// <exception cref="ArgumentException">
System\Reflection\Metadata\IL\ILOpCodeExtensions.cs (3)
54/// <exception cref="ArgumentException">Specified <paramref name="opCode"/> is not a branch op-code.</exception> 100/// <exception cref="ArgumentException">Specified <paramref name="opCode"/> is not a branch op-code.</exception> 172/// <exception cref="ArgumentException">Specified <paramref name="opCode"/> is not a branch op-code.</exception>
System\Reflection\Metadata\MetadataReader.cs (1)
67/// <exception cref="ArgumentException">The encoding of <paramref name="utf8Decoder"/> is not <see cref="UTF8Encoding"/>.</exception>
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
54/// <exception cref="ArgumentException">If <paramref name="assemblyFile"/> is invalid.</exception>
System\Reflection\Metadata\MetadataReaderProvider.cs (3)
135/// <exception cref="ArgumentException"><paramref name="stream"/> doesn't support read and seek operations.</exception> 160/// <exception cref="ArgumentException"><paramref name="stream"/> doesn't support read and seek operations.</exception> 239/// <exception cref="ArgumentException">The encoding of <paramref name="utf8Decoder"/> is not <see cref="UTF8Encoding"/>.</exception>
System\Reflection\Metadata\PEReaderExtensions.cs (1)
76/// <exception cref="ArgumentException">The encoding of <paramref name="utf8Decoder"/> is not <see cref="UTF8Encoding"/>.</exception>
System\Reflection\Metadata\TypeName.cs (1)
348/// <exception cref="ArgumentException">Provided type name was invalid.</exception>
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (3)
79/// <exception cref="ArgumentException"><paramref name="pdbPath"/> contains NUL character.</exception> 97/// <exception cref="ArgumentException"><paramref name="pdbPath"/> contains NUL character.</exception> 170/// <exception cref="ArgumentException"><paramref name="algorithmName"/> or <paramref name="checksum"/> is empty.</exception>
System\Reflection\PortableExecutable\PEHeaders.cs (3)
40/// <exception cref="ArgumentException">The stream doesn't support seek operations.</exception> 54/// <exception cref="ArgumentException">The stream doesn't support seek operations.</exception> 70/// <exception cref="ArgumentException">The stream doesn't support seek operations.</exception>
System\Reflection\PortableExecutable\PEReader.cs (2)
602/// <exception cref="ArgumentException"><paramref name="entry"/> is not a CodeView entry.</exception> 642/// <exception cref="ArgumentException"><paramref name="entry"/> is not a PDB Checksum entry.</exception>
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
31/// <exception cref="ArgumentException"><paramref name="entry"/> is not a <see cref="DebugDirectoryEntryType.EmbeddedPortablePdb"/> entry.</exception>
System.Reflection.MetadataLoadContext (1)
System\Reflection\PathAssemblyResolver.cs (1)
31/// <exception cref="System.ArgumentException">Thrown when a path is invalid.</exception>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net9.0\System.Runtime.Forwards.cs (1)
36[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ArgumentException))]
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComVariantMarshaller.cs (1)
225/// <exception cref="ArgumentException">When the managed value must be propagated back to the unmanaged variant, but the managed value type cannot be converted to the variant's type.</exception>
System.Runtime.Numerics (3)
System\Number.BigInteger.cs (3)
38internal static bool TryValidateParseStyleInteger(NumberStyles style, [NotNullWhen(false)] out ArgumentException? e) 60if (!TryValidateParseStyleInteger(style, out ArgumentException? e)) 124if (!TryValidateParseStyleInteger(style, out ArgumentException? e))
System.Security.Cryptography (418)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AlgorithmIdentifierAsn.xml.cs (2)
30catch (ArgumentException e) 41catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\AttributeAsn.xml.cs (2)
31catch (ArgumentException e) 43catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
82catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
58catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\FieldID.xml.cs (2)
30catch (ArgumentException e) 38catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (3)
99catch (ArgumentException e) 116catch (ArgumentException e) 160catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\OtherNameAsn.xml.cs (2)
30catch (ArgumentException e) 39catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\CertBagAsn.xml.cs (2)
30catch (ArgumentException e) 39catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs12\SafeBagAsn.xml.cs (2)
32catch (ArgumentException e) 41catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\ContentInfoAsn.xml.cs (2)
30catch (ArgumentException e) 39catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\EncryptedContentInfoAsn.xml.cs (1)
31catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\SpecifiedECDomain.xml.cs (1)
49catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.xml.cs (1)
45catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\Asn1Reader\AsnValueReader.cs (2)
231catch (ArgumentException e) 245catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanOpenSsl.Derive.cs (2)
24ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 44ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
795catch (ArgumentException e)
src\libraries\Common\src\System\Security\Cryptography\RSAOpenSsl.cs (3)
732ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 758ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 826ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
src\libraries\Common\src\System\Security\Cryptography\SP800108HmacCounterKdf.cs (8)
52/// <exception cref="ArgumentException"> 81/// <exception cref="ArgumentException"> 128/// <exception cref="ArgumentException"> 186/// <exception cref="ArgumentException"> 238/// <exception cref="ArgumentException"> 271/// <exception cref="ArgumentException"> 302/// <exception cref="ArgumentException"> 343/// <exception cref="ArgumentException">
System\Security\Cryptography\AesGcm.cs (2)
41/// <exception cref="ArgumentException"> 77/// <exception cref="ArgumentException">
System\Security\Cryptography\AsymmetricAlgorithm.cs (3)
173/// <exception cref="ArgumentException"> 249/// <exception cref="ArgumentException"> 323/// <exception cref="ArgumentException">
System\Security\Cryptography\CngAlgorithm.cs (1)
20ArgumentException.ThrowIfNullOrEmpty(algorithm);
System\Security\Cryptography\CngAlgorithmGroup.cs (1)
21ArgumentException.ThrowIfNullOrEmpty(algorithmGroup);
System\Security\Cryptography\CngKeyBlobFormat.cs (1)
21ArgumentException.ThrowIfNullOrEmpty(format);
System\Security\Cryptography\CngProvider.cs (1)
20ArgumentException.ThrowIfNullOrEmpty(provider);
System\Security\Cryptography\CryptoConfig.cs (2)
320ArgumentException.ThrowIfNullOrEmpty(name, nameof(names)); 512ArgumentException.ThrowIfNullOrEmpty(name, nameof(names));
System\Security\Cryptography\CryptographicOperations.cs (19)
82/// <exception cref="ArgumentException"> 107/// <exception cref="ArgumentException"> 134/// <exception cref="ArgumentException"> 172/// <exception cref="ArgumentException"> 215/// <exception cref="ArgumentException"> 249/// <exception cref="ArgumentException"> 292/// <exception cref="ArgumentException"> 343/// <exception cref="ArgumentException"> 384/// <exception cref="ArgumentException"> 411/// <exception cref="ArgumentException"> 439/// <exception cref="ArgumentException"> 482/// <exception cref="ArgumentException"> 531/// <exception cref="ArgumentException"> 563/// <exception cref="ArgumentException"> 599/// <exception cref="ArgumentException"> 640/// <exception cref="ArgumentException"> 683/// <exception cref="ArgumentException"> 732/// <exception cref="ArgumentException"> 773ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\DSA.cs (24)
119/// <exception cref="ArgumentException"> 129ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 146ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 182/// <exception cref="ArgumentException"> 203ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 244ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 265/// <exception cref="ArgumentException"> 274ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 317ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 354/// <exception cref="ArgumentException"> 377ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 388ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 543ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 574/// <exception cref="ArgumentException"> 587ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 631ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 652/// <exception cref="ArgumentException"> 666ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 689/// <exception cref="ArgumentException"> 703ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 755ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 1124/// <exception cref="ArgumentException"> 1169/// <exception cref="ArgumentException"> 1240/// <exception cref="ArgumentException">
System\Security\Cryptography\DSAOpenSsl.cs (2)
30/// <exception cref="ArgumentException"> 67/// <exception cref="ArgumentException"><paramref name="handle" /> is invalid</exception>
System\Security\Cryptography\ECAlgorithm.cs (3)
673/// <exception cref="ArgumentException"> 724/// <exception cref="ArgumentException"> 795/// <exception cref="ArgumentException">
System\Security\Cryptography\ECDiffieHellman.cs (6)
57/// <exception cref="ArgumentException"><paramref name="otherPartyPublicKey"/> is over a different curve than this key</exception> 72/// <exception cref="ArgumentException"><paramref name="otherPartyPublicKey"/> is over a different curve than this key</exception> 90/// <exception cref="ArgumentException"><paramref name="otherPartyPublicKey"/> is over a different curve than this key</exception> 109/// <exception cref="ArgumentException"><paramref name="otherPartyPublicKey"/> is over a different curve than this key</exception> 127/// <exception cref="ArgumentException"><paramref name="otherPartyPublicKey"/> is over a different curve than this key</exception> 148/// <exception cref="ArgumentException">
System\Security\Cryptography\ECDiffieHellmanOpenSsl.cs (2)
18/// <exception cref="ArgumentException"><paramref name="pkeyHandle"/> <see cref="SafeHandle.IsInvalid" /></exception> 54/// <exception cref="ArgumentException"><paramref name="handle" /> is invalid</exception>
System\Security\Cryptography\ECDsa.cs (31)
60ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 96/// <exception cref="ArgumentException"> 117ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 195/// <exception cref="ArgumentException"> 204ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 226/// <exception cref="ArgumentException"> 235ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 360/// <exception cref="ArgumentException"> 392/// <exception cref="ArgumentException"> 468ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 494/// <exception cref="ArgumentException"> 507ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 549ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 567/// <exception cref="ArgumentException"> 581ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 601/// <exception cref="ArgumentException"> 613ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 639/// <exception cref="ArgumentException"> 661ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 689/// <exception cref="ArgumentException"> 709ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 737ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 774/// <exception cref="ArgumentException"> 797ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 824/// <exception cref="ArgumentException"> 834ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 843ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 872ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 919ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 941/// <exception cref="ArgumentException"> 956ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\ECDsaOpenSsl.cs (2)
18/// <exception cref="ArgumentException"><paramref name="pkeyHandle"/> <see cref="SafeHandle.IsInvalid" /></exception> 54/// <exception cref="ArgumentException"><paramref name="handle" /> is invalid</exception>
System\Security\Cryptography\HKDF.cs (2)
111/// <exception cref="ArgumentException"><paramref name="output"/> is empty, or is larger than the maximum allowed length.</exception> 240/// <exception cref="ArgumentException"><paramref name="ikm"/> is empty, or is larger than the maximum allowed length.</exception>
System\Security\Cryptography\HMACMD5.cs (7)
121/// <exception cref="ArgumentException"> 174/// <exception cref="ArgumentException"> 207/// <exception cref="ArgumentException"> 230/// <exception cref="ArgumentException"> 254/// <exception cref="ArgumentException"> 281/// <exception cref="ArgumentException"> 306/// <exception cref="ArgumentException">
System\Security\Cryptography\HMACSHA1.cs (7)
125/// <exception cref="ArgumentException"> 176/// <exception cref="ArgumentException"> 208/// <exception cref="ArgumentException"> 230/// <exception cref="ArgumentException"> 253/// <exception cref="ArgumentException"> 279/// <exception cref="ArgumentException"> 303/// <exception cref="ArgumentException">
System\Security\Cryptography\HMACSHA256.cs (7)
117/// <exception cref="ArgumentException"> 168/// <exception cref="ArgumentException"> 200/// <exception cref="ArgumentException"> 222/// <exception cref="ArgumentException"> 245/// <exception cref="ArgumentException"> 271/// <exception cref="ArgumentException"> 295/// <exception cref="ArgumentException">
System\Security\Cryptography\HMACSHA3_256.cs (7)
153/// <exception cref="ArgumentException"> 206/// <exception cref="ArgumentException"> 239/// <exception cref="ArgumentException"> 262/// <exception cref="ArgumentException"> 285/// <exception cref="ArgumentException"> 312/// <exception cref="ArgumentException"> 336/// <exception cref="ArgumentException">
System\Security\Cryptography\HMACSHA3_384.cs (7)
153/// <exception cref="ArgumentException"> 206/// <exception cref="ArgumentException"> 239/// <exception cref="ArgumentException"> 262/// <exception cref="ArgumentException"> 285/// <exception cref="ArgumentException"> 312/// <exception cref="ArgumentException"> 336/// <exception cref="ArgumentException">
System\Security\Cryptography\HMACSHA3_512.cs (7)
153/// <exception cref="ArgumentException"> 206/// <exception cref="ArgumentException"> 239/// <exception cref="ArgumentException"> 262/// <exception cref="ArgumentException"> 285/// <exception cref="ArgumentException"> 312/// <exception cref="ArgumentException"> 336/// <exception cref="ArgumentException">
System\Security\Cryptography\HMACSHA384.cs (7)
134/// <exception cref="ArgumentException"> 185/// <exception cref="ArgumentException"> 217/// <exception cref="ArgumentException"> 239/// <exception cref="ArgumentException"> 262/// <exception cref="ArgumentException"> 288/// <exception cref="ArgumentException"> 312/// <exception cref="ArgumentException">
System\Security\Cryptography\HMACSHA512.cs (7)
131/// <exception cref="ArgumentException"> 182/// <exception cref="ArgumentException"> 214/// <exception cref="ArgumentException"> 236/// <exception cref="ArgumentException"> 259/// <exception cref="ArgumentException"> 285/// <exception cref="ArgumentException"> 309/// <exception cref="ArgumentException">
System\Security\Cryptography\IncrementalHash.cs (8)
81/// <exception cref="ArgumentException"> 146/// <exception cref="ArgumentException"> 218/// <exception cref="ArgumentException"> 303/// <exception cref="ArgumentException"> 310ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 333/// <exception cref="ArgumentException"> 362/// <exception cref="ArgumentException"> 369ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\Kmac128.cs (6)
273/// <exception cref="ArgumentException"> 310/// <exception cref="ArgumentException"> 345/// <exception cref="ArgumentException"> 386/// <exception cref="ArgumentException"> 433/// <exception cref="ArgumentException"> 477/// <exception cref="ArgumentException">
System\Security\Cryptography\Kmac256.cs (6)
273/// <exception cref="ArgumentException"> 310/// <exception cref="ArgumentException"> 345/// <exception cref="ArgumentException"> 386/// <exception cref="ArgumentException"> 433/// <exception cref="ArgumentException"> 477/// <exception cref="ArgumentException">
System\Security\Cryptography\KmacXof128.cs (6)
273/// <exception cref="ArgumentException"> 310/// <exception cref="ArgumentException"> 345/// <exception cref="ArgumentException"> 386/// <exception cref="ArgumentException"> 433/// <exception cref="ArgumentException"> 477/// <exception cref="ArgumentException">
System\Security\Cryptography\KmacXof256.cs (6)
273/// <exception cref="ArgumentException"> 310/// <exception cref="ArgumentException"> 345/// <exception cref="ArgumentException"> 386/// <exception cref="ArgumentException"> 433/// <exception cref="ArgumentException"> 477/// <exception cref="ArgumentException">
System\Security\Cryptography\MD5.cs (5)
82/// <exception cref="ArgumentException"> 131/// <exception cref="ArgumentException"> 163/// <exception cref="ArgumentException"> 189/// <exception cref="ArgumentException"> 216/// <exception cref="ArgumentException">
System\Security\Cryptography\PemEncoding.cs (5)
28/// <exception cref="ArgumentException"> 291/// <exception cref="ArgumentException"> 370/// <exception cref="ArgumentException"> 471/// <exception cref="ArgumentException"> 514/// <exception cref="ArgumentException">
System\Security\Cryptography\RandomNumberGenerator.cs (3)
174/// <exception cref="ArgumentException"> 194/// <exception cref="ArgumentException"> 220/// <exception cref="ArgumentException">
System\Security\Cryptography\Rfc2898DeriveBytes.OneShot.cs (7)
31/// <exception cref="ArgumentException"> 66/// <exception cref="ArgumentException"> 103/// <exception cref="ArgumentException"> 142/// <exception cref="ArgumentException"> 185/// <exception cref="ArgumentException"> 230/// <exception cref="ArgumentException"> 323ArgumentException.ThrowIfNullOrEmpty(hashAlgorithmName, nameof(hashAlgorithm));
System\Security\Cryptography\RSA.cs (19)
188/// <exception cref="ArgumentException"> 275/// <exception cref="ArgumentException"> 394ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 404ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 413ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 436/// <exception cref="ArgumentException"> 458ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 489/// <exception cref="ArgumentException"> 521ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 542/// <exception cref="ArgumentException"> 564ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 591/// <exception cref="ArgumentException"> 623ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 658ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 669ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 678ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 1051/// <exception cref="ArgumentException"> 1104/// <exception cref="ArgumentException"> 1175/// <exception cref="ArgumentException">
System\Security\Cryptography\RSAEncryptionPadding.cs (1)
68ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\RSAOpenSsl.cs (2)
35/// <exception cref="ArgumentException"><paramref name="handle" /> is invalid</exception> 59/// <exception cref="ArgumentException">
System\Security\Cryptography\SafeEvpPKeyHandle.OpenSsl.cs (6)
91/// <exception cref="ArgumentException"> 117ArgumentException.ThrowIfNullOrEmpty(engineName); 118ArgumentException.ThrowIfNullOrEmpty(keyId); 143/// <exception cref="ArgumentException"> 170ArgumentException.ThrowIfNullOrEmpty(engineName); 171ArgumentException.ThrowIfNullOrEmpty(keyId);
System\Security\Cryptography\SHA1.cs (5)
79/// <exception cref="ArgumentException"> 126/// <exception cref="ArgumentException"> 157/// <exception cref="ArgumentException"> 182/// <exception cref="ArgumentException"> 208/// <exception cref="ArgumentException">
System\Security\Cryptography\SHA256.cs (5)
78/// <exception cref="ArgumentException"> 126/// <exception cref="ArgumentException"> 157/// <exception cref="ArgumentException"> 182/// <exception cref="ArgumentException"> 208/// <exception cref="ArgumentException">
System\Security\Cryptography\SHA3_256.cs (5)
104/// <exception cref="ArgumentException"> 159/// <exception cref="ArgumentException"> 194/// <exception cref="ArgumentException"> 223/// <exception cref="ArgumentException"> 253/// <exception cref="ArgumentException">
System\Security\Cryptography\SHA3_384.cs (5)
104/// <exception cref="ArgumentException"> 160/// <exception cref="ArgumentException"> 195/// <exception cref="ArgumentException"> 224/// <exception cref="ArgumentException"> 254/// <exception cref="ArgumentException">
System\Security\Cryptography\SHA3_512.cs (5)
104/// <exception cref="ArgumentException"> 159/// <exception cref="ArgumentException"> 194/// <exception cref="ArgumentException"> 223/// <exception cref="ArgumentException"> 253/// <exception cref="ArgumentException">
System\Security\Cryptography\SHA384.cs (5)
78/// <exception cref="ArgumentException"> 125/// <exception cref="ArgumentException"> 156/// <exception cref="ArgumentException"> 181/// <exception cref="ArgumentException"> 207/// <exception cref="ArgumentException">
System\Security\Cryptography\SHA512.cs (5)
78/// <exception cref="ArgumentException"> 125/// <exception cref="ArgumentException"> 156/// <exception cref="ArgumentException"> 181/// <exception cref="ArgumentException"> 207/// <exception cref="ArgumentException">
System\Security\Cryptography\Shake128.cs (4)
339/// <exception cref="ArgumentException"> 371/// <exception cref="ArgumentException"> 407/// <exception cref="ArgumentException"> 442/// <exception cref="ArgumentException">
System\Security\Cryptography\Shake256.cs (4)
339/// <exception cref="ArgumentException"> 371/// <exception cref="ArgumentException"> 407/// <exception cref="ArgumentException"> 442/// <exception cref="ArgumentException">
System\Security\Cryptography\SymmetricAlgorithm.cs (23)
260/// <exception cref="ArgumentException"> 304/// <exception cref="ArgumentException"> 378/// <exception cref="ArgumentException"> 503/// <exception cref="ArgumentException"> 621/// <exception cref="ArgumentException"> 675/// <exception cref="ArgumentException"> 703/// <exception cref="ArgumentException"> 753/// <exception cref="ArgumentException"> 760/// <exception cref="ArgumentException"> 795/// <exception cref="ArgumentException"> 830/// <exception cref="ArgumentException"> 858/// <exception cref="ArgumentException"> 906/// <exception cref="ArgumentException"> 913/// <exception cref="ArgumentException"> 948/// <exception cref="ArgumentException"> 994/// <exception cref="ArgumentException"> 1044/// <exception cref="ArgumentException"> 1112/// <exception cref="ArgumentException"> 1179/// <exception cref="ArgumentException"> 1234/// <exception cref="ArgumentException"> 1284/// <exception cref="ArgumentException"> 1352/// <exception cref="ArgumentException"> 1411/// <exception cref="ArgumentException">
System\Security\Cryptography\X509Certificates\Asn1\AccessDescriptionAsn.xml.cs (1)
30catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\Asn1\CertificatePolicyMappingAsn.xml.cs (2)
30catch (ArgumentException e) 38catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\Asn1\CertificateTemplateAsn.xml.cs (1)
31catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\Asn1\CertificationRequestInfoAsn.xml.cs (1)
43catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
75catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\Asn1\PolicyInformationAsn.xml.cs (2)
30catch (ArgumentException e) 41catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\Asn1\TbsCertificateAsn.xml.cs (2)
84catch (ArgumentException e) 102catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (21)
75ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 102ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 133ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 169ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 197ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 228ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 487/// <exception cref="ArgumentException"> 557/// <exception cref="ArgumentException"> 560/// <exception cref="ArgumentException"> 563/// <exception cref="ArgumentException"> 566/// <exception cref="ArgumentException"><paramref name="serialNumber"/> is null or has length 0.</exception> 567/// <exception cref="ArgumentException"> 608/// <exception cref="ArgumentException"> 611/// <exception cref="ArgumentException"> 614/// <exception cref="ArgumentException"> 617/// <exception cref="ArgumentException"><paramref name="serialNumber"/> has length 0.</exception> 618/// <exception cref="ArgumentException"> 757/// <exception cref="ArgumentException"> 760/// <exception cref="ArgumentException"><paramref name="serialNumber"/> is null or has length 0.</exception> 798/// <exception cref="ArgumentException"> 801/// <exception cref="ArgumentException"><paramref name="serialNumber"/> has length 0.</exception>
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
39ArgumentException.ThrowIfNullOrEmpty(signerHashAlgorithm.Name, nameof(signerHashAlgorithm)); 121ArgumentException.ThrowIfNullOrEmpty(signerHashAlgorithm.Name, nameof(signerHashAlgorithm));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.Build.cs (4)
56/// <exception cref="ArgumentException"> 143ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm)); 276/// <exception cref="ArgumentException"> 327ArgumentException.ThrowIfNullOrEmpty(hashAlgorithm.Name, nameof(hashAlgorithm));
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
30/// <exception cref="ArgumentException">
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (2)
96/// <exception cref="ArgumentException"> 129/// <exception cref="ArgumentException">
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (20)
49/// <exception cref="ArgumentException"> 65ArgumentException.ThrowIfNullOrEmpty(oidValue); 83/// <exception cref="ArgumentException"> 100ArgumentException.ThrowIfNullOrEmpty(oid.Value); 113/// <exception cref="ArgumentException"> 133ArgumentException.ThrowIfNullOrEmpty(emailAddress); 150/// <exception cref="ArgumentException"> 162ArgumentException.ThrowIfNullOrEmpty(commonName); 173/// <exception cref="ArgumentException"> 185ArgumentException.ThrowIfNullOrEmpty(localityName); 196/// <exception cref="ArgumentException"> 217ArgumentException.ThrowIfNullOrEmpty(twoLetterCode); 247/// <exception cref="ArgumentException"> 259ArgumentException.ThrowIfNullOrEmpty(organizationName); 270/// <exception cref="ArgumentException"> 282ArgumentException.ThrowIfNullOrEmpty(organizationalUnitName); 293/// <exception cref="ArgumentException"> 305ArgumentException.ThrowIfNullOrEmpty(stateOrProvinceName); 316/// <exception cref="ArgumentException"> 331ArgumentException.ThrowIfNullOrEmpty(domainComponent);
System\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
508catch (ArgumentException e)
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (3)
85/// <exception cref="ArgumentException"> 160/// <exception cref="ArgumentException"> 172ArgumentException.ThrowIfNullOrEmpty(accessMethodOid.Value);
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (6)
284/// <exception cref="ArgumentException"> 316/// <exception cref="ArgumentException"> 340catch (ArgumentException) 373/// <exception cref="ArgumentException"> 414/// <exception cref="ArgumentException"> 441catch (ArgumentException)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
737/// <exception cref="ArgumentException"> 1251/// <exception cref="ArgumentException"> 1448catch (ArgumentException ae) 1479catch (ArgumentException ae)
System\Security\Cryptography\X509Certificates\X509Extension.cs (2)
41ArgumentException.ThrowIfNullOrEmpty(base.Oid?.Value, "oid.Value"); 71ArgumentException.ThrowIfNullOrEmpty(base.Oid?.Value, "oid.Value");
System.Security.Cryptography.Cose (42)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (4)
69/// <exception cref="ArgumentException">The property is set and the encoded bytes in the specified <see cref="CoseHeaderValue"/> contain trailing data or more than one CBOR value.</exception> 114/// <exception cref="ArgumentException"><paramref name="destination"/> is too small to hold the value.</exception> 125/// <exception cref="ArgumentException"><paramref name="value"/> is not a valid CBOR value.</exception> 138/// <exception cref="ArgumentException"><paramref name="item"/>'s value is not a valid CBOR value.</exception>
System\Security\Cryptography\Cose\CoseHeaderValue.cs (1)
216/// <exception cref="ArgumentException"><paramref name="destination"/> is too small to hold the value.</exception>
System\Security\Cryptography\Cose\CoseMessage.cs (1)
610/// <exception cref="ArgumentException"><paramref name="destination"/> is too small to hold the value.</exception>
System\Security\Cryptography\Cose\CoseMultiSignMessage.cs (14)
54/// <exception cref="ArgumentException"> 85/// <exception cref="ArgumentException"> 116/// <exception cref="ArgumentException"> 143/// <exception cref="ArgumentException"> 169/// <exception cref="ArgumentException"> 235/// <exception cref="ArgumentException"> 306/// <exception cref="ArgumentException"> 334/// <exception cref="ArgumentException"> 639/// <exception cref="ArgumentException"> 658/// <exception cref="ArgumentException"> 690/// <exception cref="ArgumentException"> 717/// <exception cref="ArgumentException"> 749/// <exception cref="ArgumentException"> 825/// <exception cref="ArgumentException">
System\Security\Cryptography\Cose\CoseSign1Message.cs (14)
42/// <exception cref="ArgumentException"> 70/// <exception cref="ArgumentException"> 98/// <exception cref="ArgumentException"> 123/// <exception cref="ArgumentException"> 148/// <exception cref="ArgumentException"> 202/// <exception cref="ArgumentException"> 254/// <exception cref="ArgumentException"> 276/// <exception cref="ArgumentException"> 373/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 416/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 459/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 507/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 551/// <exception cref="ArgumentException"> 652/// <exception cref="ArgumentException">
System\Security\Cryptography\Cose\CoseSignature.cs (6)
79/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 122/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 166/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 215/// <exception cref="ArgumentException"><paramref name="key"/> is of an unsupported type.</exception> 259/// <exception cref="ArgumentException"> 327/// <exception cref="ArgumentException">
System\Security\Cryptography\Cose\CoseSigner.cs (2)
44/// <exception cref="ArgumentException"> 91/// <exception cref="ArgumentException">
System.Text.Json (137)
System\Text\Json\Document\JsonDocument.Parse.cs (10)
44/// <exception cref="ArgumentException"> 74/// <exception cref="ArgumentException"> 115/// <exception cref="ArgumentException"> 193/// <exception cref="ArgumentException"> 263/// <exception cref="ArgumentException"> 327/// <exception cref="ArgumentException"> 369/// <exception cref="ArgumentException"> 372/// <exception cref="ArgumentException"> 409/// <exception cref="ArgumentException"> 412/// <exception cref="ArgumentException">
System\Text\Json\Document\JsonElement.Parse.cs (4)
38/// <exception cref="ArgumentException"> 41/// <exception cref="ArgumentException"> 103/// <exception cref="ArgumentException"> 106/// <exception cref="ArgumentException">
System\Text\Json\Document\JsonProperty.cs (1)
104/// <exception cref="ArgumentException">
System\Text\Json\JsonEncodedText.cs (3)
48/// <exception cref="ArgumentException"> 66/// <exception cref="ArgumentException"> 113/// <exception cref="ArgumentException">
System\Text\Json\Nodes\JsonArray.IList.cs (1)
135/// <exception cref="ArgumentException">
System\Text\Json\Nodes\JsonNode.Parse.cs (2)
38/// <exception cref="ArgumentException"> 41/// <exception cref="ArgumentException">
System\Text\Json\Nodes\JsonObject.IDictionary.cs (3)
23/// <exception cref="ArgumentException"> 38/// <exception cref="ArgumentException"> 132/// <exception cref="ArgumentException">
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (1)
270catch (ArgumentException)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (4)
58/// This method will throw <see cref="ArgumentException"/> if the destination buffer is too small to hold the unescaped value. 68/// <exception cref="ArgumentException">The destination buffer is too small to hold the unescaped value.</exception> 122/// This method will throw <see cref="ArgumentException"/> if the destination buffer is too small to hold the unescaped value. 132/// <exception cref="ArgumentException">The destination buffer is too small to hold the unescaped value.</exception>
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (5)
26/// <exception cref="ArgumentException"> 80/// <exception cref="ArgumentException"> 135/// <exception cref="ArgumentException"> 184/// <exception cref="ArgumentException"> 237/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (2)
40/// <exception cref="ArgumentException"> 112/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (1)
39/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (1)
39/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (1)
40/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (2)
122/// <exception cref="ArgumentException"> 164/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs (4)
95/// <exception cref="ArgumentException"> 131/// <exception cref="ArgumentException"> 290/// <exception cref="ArgumentException"> 328/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (1)
43/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs (2)
49/// <exception cref="ArgumentException"> 136/// <exception cref="ArgumentException">
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (2)
49/// <exception cref="ArgumentException"><paramref name="type"/> is not valid for serialization.</exception> 77/// <exception cref="ArgumentException"><paramref name="type"/> is not valid for serialization.</exception>
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
308/// <exception cref="System.ArgumentException">Thrown when the buffer size is less than 1.</exception> 401/// <exception cref="ArgumentException">
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (3)
262/// <exception cref="ArgumentException"> 896/// <exception cref="ArgumentException"><paramref name="type"/> cannot be used for serialization.</exception> 961/// <exception cref="ArgumentException"><paramref name="propertyType"/> cannot be used for serialization.</exception>
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (1)
16/// <exception cref="ArgumentException"><paramref name="resolvers"/> is null.</exception>
System\Text\Json\ThrowHelper.cs (2)
68private static ArgumentException GetArgumentException(string message) 541public static ArgumentException GetArgumentException_ReadInvalidUTF16(EncoderFallbackException innerException)
System\Text\Json\Writer\Utf8JsonWriter.cs (6)
635/// <exception cref="ArgumentException"> 660/// <exception cref="ArgumentException"> 738/// <exception cref="ArgumentException"> 764/// <exception cref="ArgumentException"> 790/// <exception cref="ArgumentException"> 815/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Bytes.cs (3)
36/// <exception cref="ArgumentException"> 62/// <exception cref="ArgumentException"> 86/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTime.cs (3)
40/// <exception cref="ArgumentException"> 67/// <exception cref="ArgumentException"> 92/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.DateTimeOffset.cs (3)
39/// <exception cref="ArgumentException"> 66/// <exception cref="ArgumentException"> 91/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Decimal.cs (3)
39/// <exception cref="ArgumentException"> 66/// <exception cref="ArgumentException"> 91/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Double.cs (3)
41/// <exception cref="ArgumentException"> 68/// <exception cref="ArgumentException"> 94/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Float.cs (3)
41/// <exception cref="ArgumentException"> 68/// <exception cref="ArgumentException"> 94/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.FormattedNumber.cs (4)
16/// <exception cref="ArgumentException"> 19/// <exception cref="ArgumentException"> 46/// <exception cref="ArgumentException"> 49/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Guid.cs (3)
39/// <exception cref="ArgumentException"> 66/// <exception cref="ArgumentException"> 91/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.Literal.cs (6)
62/// <exception cref="ArgumentException"> 87/// <exception cref="ArgumentException"> 112/// <exception cref="ArgumentException"> 160/// <exception cref="ArgumentException"> 186/// <exception cref="ArgumentException"> 212/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.SignedNumber.cs (6)
39/// <exception cref="ArgumentException"> 66/// <exception cref="ArgumentException"> 91/// <exception cref="ArgumentException"> 130/// <exception cref="ArgumentException"> 157/// <exception cref="ArgumentException"> 174/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.String.cs (18)
58/// <exception cref="ArgumentException"> 83/// <exception cref="ArgumentException"> 232/// <exception cref="ArgumentException"> 444/// <exception cref="ArgumentException"> 470/// <exception cref="ArgumentException"> 510/// <exception cref="ArgumentException"> 534/// <exception cref="ArgumentException"> 558/// <exception cref="ArgumentException"> 590/// <exception cref="ArgumentException"> 630/// <exception cref="ArgumentException"> 656/// <exception cref="ArgumentException"> 680/// <exception cref="ArgumentException"> 720/// <exception cref="ArgumentException"> 746/// <exception cref="ArgumentException"> 770/// <exception cref="ArgumentException"> 810/// <exception cref="ArgumentException"> 842/// <exception cref="ArgumentException"> 882/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteProperties.UnsignedNumber.cs (6)
40/// <exception cref="ArgumentException"> 68/// <exception cref="ArgumentException"> 94/// <exception cref="ArgumentException"> 135/// <exception cref="ArgumentException"> 163/// <exception cref="ArgumentException"> 182/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Bytes.cs (1)
15/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Comment.cs (3)
18/// <exception cref="ArgumentException"> 40/// <exception cref="ArgumentException"> 153/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.FormattedNumber.cs (1)
15/// <exception cref="ArgumentException">
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (4)
18/// <exception cref="ArgumentException">Thrown if the length of the input is zero or greater than 715,827,882 (<see cref="int.MaxValue"/> / 3).</exception> 54/// <exception cref="ArgumentException">Thrown if the length of the input is zero or greater than 715,827,882 (<see cref="int.MaxValue"/> / 3).</exception> 85/// <exception cref="ArgumentException">Thrown if the length of the input is zero or greater than or equal to <see cref="int.MaxValue"/>.</exception> 121/// <exception cref="ArgumentException">Thrown if the length of the input is zero or equal to <see cref="int.MaxValue"/>.</exception>
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.String.cs (3)
33/// <exception cref="ArgumentException"> 63/// <exception cref="ArgumentException"> 210/// <exception cref="ArgumentException">
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Regex.Match.cs (3)
22/// <exception cref="ArgumentException">A regular expression parsing error occurred.</exception> 43/// <exception cref="ArgumentException">A regular expression parsing error occurred.</exception> 61/// <exception cref="ArgumentException">A regular expression parsing error occurred.</exception>
System\Text\RegularExpressions\RegexCompilationInfo.cs (1)
50ArgumentException.ThrowIfNullOrEmpty(value, nameof(Name));
System\Text\RegularExpressions\RegexParseException.cs (1)
42info.SetType(typeof(ArgumentException)); // To maintain serialization support with .NET Framework.
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParseException.cs (1)
42info.SetType(typeof(ArgumentException)); // To maintain serialization support with .NET Framework.
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\PartitionedRateLimiter.cs (1)
53/// <exception cref="ArgumentException"><paramref name="limiters"/> is an empty array.</exception>
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.cs (2)
147/// <exception cref="System.ArgumentException">The exception that is thrown when the 173/// <exception cref="System.ArgumentException">The exception that is thrown when the
System.Transactions.Local (1)
System\Transactions\TransactionState.cs (1)
4478catch (ArgumentException e)
System.Xaml (4)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
117catch (ArgumentException)
System\Xaml\AttachablePropertyServices.cs (1)
195catch (ArgumentException)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
1855if (!(ex.InnerException is ArgumentException) &&
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
277catch (ArgumentException ex)
System.Xaml.Tests (8)
System\Windows\Markup\StaticExtensionTests.cs (5)
113Assert.Throws<ArgumentException>(() => extension.ProvideValue(provider)); 133Assert.Throws<ArgumentException>(() => extension.ProvideValue(provider)); 144Assert.Throws<ArgumentException>(() => extension.ProvideValue(null)); 166Assert.Throws<ArgumentException>(() => extension.ProvideValue(provider)); 236Assert.Throws<ArgumentException>(() => converter.ConvertTo(1, typeof(InstanceDescriptor)));
System\Windows\Markup\TypeExtensionTests.cs (1)
198Assert.Throws<ArgumentException>(() => converter.ConvertTo(1, typeof(InstanceDescriptor)));
System\Windows\Markup\ValueSerializerTests.cs (2)
214Assert.Throws<ArgumentException>(() => ValueSerializer.GetSerializerFor(typeof(ClassWithEmptyTypeConverterAttribute))); 215Assert.Throws<ArgumentException>(() => ValueSerializer.GetSerializerFor(typeof(ClassWithEmptyTypeConverterAttribute), null!));
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\Misc.cs (1)
1849if (ex is ArgumentException || ex is SystemException)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
202ArgumentException.ThrowIfNullOrEmpty(text);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (1)
128ArgumentException.ThrowIfNullOrEmpty(text);
xunit.console (1)
ConsoleRunner.cs (1)
114return ex is ArgumentException ? 3 : 4;