746 references to GetResourceString
mscorlib (746)
microsoft\win32\registry.cs (1)
132throw new ArgumentException(Environment.GetResourceString("Arg_RegInvalidKeyName", "keyName"));
microsoft\win32\registrykey.cs (5)
705throw new ArgumentException(Environment.GetResourceString("Arg_RegKeyNoRemoteConnect", machineName)); 1165throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options), "options"); 1617throw new ArgumentException(Environment.GetResourceString("Arg_RegSetBadArrType", value.GetType().Name)); 1667throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_RegistryKeyGeneric_Key", str)); 1706throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_RegistryKeyGeneric_Key", str));
microsoft\win32\win32native.cs (1)
753return Environment.GetResourceString("UnknownError_Num", errorCode);
system\appdomain.cs (7)
702throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.LoadFrom")); 715throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.LoadFile")); 728throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.ReflectionOnlyLoad")); 746throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.LoadWithPartialName")); 762throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "DefinePInvokeMethod")); 775throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "Assembly.Load(byte[], ...)")); 794throw new NotSupportedException(Environment.GetResourceString("NotSupported_AppX", "AppDomain.CreateDomain"));
system\AppDomainSetup.cs (1)
655throw new ArgumentException(Environment.GetResourceString("ArgumentException_MinSortingVersion", 1, functionName));
system\argumentexception.cs (1)
75String resourceString = Environment.GetResourceString("Arg_ParamName_Name", m_paramName);
system\argumentoutofrangeexception.cs (1)
77String valueMessage = Environment.GetResourceString("ArgumentOutOfRange_ActualValue", m_actualValue.ToString());
system\array.cs (4)
2017throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer)); 2057throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer)); 2336throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer)); 2374throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer));
system\attribute.cs (1)
435Environment.GetResourceString("Format_AttributeUsage", type));
system\badimageformatexception.cs (1)
89s += Environment.NewLine + Environment.GetResourceString("IO.FileName_Name", _fileName);
system\bitconverter.cs (1)
385throw new ArgumentOutOfRangeException("length", Environment.GetResourceString("ArgumentOutOfRange_LengthTooLarge", (Int32.MaxValue / 3)));
system\boolean.cs (2)
242throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Boolean", "Char")); 302throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Boolean", "DateTime"));
system\byte.cs (1)
255throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Byte", "DateTime"));
system\cfgparser.cs (1)
490return Environment.GetResourceString("XML_Syntax_InvalidSyntaxInFile", fileName, lastProcessedTag);
system\char.cs (8)
435throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Boolean")); 485throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Single")); 490throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Double")); 495throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "Decimal")); 500throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Char", "DateTime")); 987throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHighSurrogate", index), "s"); 991throw new ArgumentException(Environment.GetResourceString("Argument_InvalidHighSurrogate", index), "s"); 995throw new ArgumentException(Environment.GetResourceString("Argument_InvalidLowSurrogate", index), "s");
system\collections\arraylist.cs (1)
73if (capacity < 0) throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "capacity"));
system\collections\bitarray.cs (2)
79throw new ArgumentException(Environment.GetResourceString("Argument_ArrayTooLarge", BitsPerByte), "bytes"); 148throw new ArgumentException(Environment.GetResourceString("Argument_ArrayTooLarge", BitsPerInt32), "values");
system\collections\generic\arraysorthelper.cs (1)
88throw new ArgumentException(Environment.GetResourceString("Arg_BogusIComparer", comparer));
system\collections\hashtable.cs (2)
276throw new ArgumentOutOfRangeException("loadFactor", Environment.GetResourceString("ArgumentOutOfRange_HashtableLoadFactor", .1, 1.0)); 959throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__", buckets[bucketNumber].key, key));
system\collections\listdictionaryinternal.cs (1)
156throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__", node.key, key));
system\collections\queue.cs (1)
62throw new ArgumentOutOfRangeException("growFactor", Environment.GetResourceString("ArgumentOutOfRange_QueueGrowFactor", 1, 10));
system\collections\sortedlist.cs (1)
185throw new ArgumentException(Environment.GetResourceString("Argument_AddingDuplicate__", GetKey(i), key));
system\console.cs (3)
664throw new ArgumentOutOfRangeException("frequency", frequency, Environment.GetResourceString("ArgumentOutOfRange_BeepFrequency", MinBeepFrequency, MaxBeepFrequency)); 1146throw new ArgumentOutOfRangeException("width", width, Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowSize_Size", bounds.X)); 1148throw new ArgumentOutOfRangeException("height", height, Environment.GetResourceString("ArgumentOutOfRange_ConsoleWindowSize_Size", bounds.Y));
system\convert.cs (3)
318throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", value.GetType().FullName, targetType.FullName)); 2165throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options)); 2217throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options));
system\currenttimezone.cs (1)
174throw new ArgumentOutOfRangeException("year", Environment.GetResourceString("ArgumentOutOfRange_Range", 1, 9999));
system\datetime.cs (17)
258throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1)); 280throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1)); 310throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1)); 341throw new ArgumentOutOfRangeException("millisecond", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, MillisPerSecond - 1)); 1580throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Boolean")); 1585throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Char")); 1590throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "SByte")); 1595throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Byte")); 1600throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Int16")); 1605throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "UInt16")); 1610throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Int32")); 1615throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "UInt32")); 1620throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Int64")); 1625throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "UInt64")); 1630throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Single")); 1635throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Double")); 1640throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "DateTime", "Decimal"));
system\decimal.cs (3)
791throw new ArgumentException(Environment.GetResourceString("Argument_InvalidEnumValue", mode, "MidpointRounding"), "mode"); 1208throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Decimal", "Char")); 1268throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Decimal", "DateTime"));
system\delegate.cs (1)
695Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext",
system\delegateserializationholder.cs (1)
180Environment.GetResourceString("Serialization_InsufficientDeserializationState", field));
system\deployment\cmsutils.cs (1)
120throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)versionMatch), "versionMatch");
system\diagnostics\contracts\contractsbcl.cs (4)
82System.Runtime.CompilerServices.ContractHelper.TriggerFailure(kind, Environment.GetResourceString("MustUseCCRewrite", contractKind, simpleName), null, null, null); 105throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", failureKind), "failureKind"); 343throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", failureKind), "failureKind"); 490failureMessage = Environment.GetResourceString(resourceName, conditionText);
system\diagnostics\eventing\eventdescriptor.cs (2)
83throw new ArgumentOutOfRangeException("id", Environment.GetResourceString("ArgumentOutOfRange_NeedValidId", 1, ushort.MaxValue)); 101throw new ArgumentOutOfRangeException("task", Environment.GetResourceString("ArgumentOutOfRange_NeedValidId", 1, ushort.MaxValue));
system\diagnostics\eventing\eventsource.cs (31)
682public override string ToString() { return Environment.GetResourceString("EventSource_ToString", Name, Guid); } 2147ReportOutOfBandMessage(Environment.GetResourceString("EventSource_EventParametersMismatch", eventId, eventDataCount, paramCount), true); 2702throw new ArgumentException(Environment.GetResourceString("EventSource_SessionIdError", 3032throw new ArgumentException(Environment.GetResourceString("EventSource_EventSourceGuidInUse", m_guid)); 3336manifest.ManifestError(Environment.GetResourceString("EventSource_AbstractMustNotDeclareKTOC", nestedType.Name)); 3392manifest.ManifestError(Environment.GetResourceString("EventSource_AbstractMustNotDeclareEventMethods", method.Name, eventAttribute.EventId)); 3420manifest.ManifestError(Environment.GetResourceString("EventSource_NeedPositiveId", method.Name), true); 3424manifest.ManifestError(Environment.GetResourceString("EventSource_EventMustNotBeExplicitImplementation", method.Name, eventAttribute.EventId)); 3630manifest.ManifestError(Environment.GetResourceString("EventSource_EnumKindMismatch", staticField.Name, staticField.FieldType.Name, providerEnumKind)); 3712manifest.ManifestError(Environment.GetResourceString("EventSource_MismatchIdToWriteEvent", evtName, evtId, eventArg), true); 3717manifest.ManifestError(Environment.GetResourceString("EventSource_EventIdReused", evtName, evtId, eventData[evtId].Name), true); 3730manifest.ManifestError(Environment.GetResourceString("EventSource_TaskOpcodePairReused", 3755manifest.ManifestError(Environment.GetResourceString("EventSource_EventMustHaveTaskIfNonDefaultOpcode", evtName, evtId)); 3771manifest.ManifestError(Environment.GetResourceString("EventSource_EventNameReused", evtName), true); 6065ManifestError(Environment.GetResourceString("EventSource_IllegalOpcodeValue", name, value)); 6068ManifestError(Environment.GetResourceString("EventSource_OpcodeCollision", name, prevName, value)); 6077ManifestError(Environment.GetResourceString("EventSource_IllegalTaskValue", name, value)); 6080ManifestError(Environment.GetResourceString("EventSource_TaskCollision", name, prevName, value)); 6089ManifestError(Environment.GetResourceString("EventSource_KeywordNeedPowerOfTwo", "0x" + value.ToString("x", CultureInfo.CurrentCulture), name), true); 6093ManifestError(Environment.GetResourceString("EventSource_IllegalKeywordsValue", name, "0x" + value.ToString("x", CultureInfo.CurrentCulture))); 6096ManifestError(Environment.GetResourceString("EventSource_KeywordCollision", name, prevName, "0x" + value.ToString("x", CultureInfo.CurrentCulture))); 6111ManifestError(Environment.GetResourceString("EventSource_EventChannelOutOfRange", name, value)); 6117ManifestError(Environment.GetResourceString("EventSource_ChannelTypeDoesNotMatchEventChannelValue", 6564ManifestError(Environment.GetResourceString("EventSource_DuplicateStringKey", key), true); 6626ManifestError(Environment.GetResourceString("EventSource_UndefinedChannel", channel, eventName)); 6639ManifestError(Environment.GetResourceString("EventSource_UndefinedChannel", channel, eventName)); 6645ManifestError(Environment.GetResourceString("EventSource_EventWithAdminChannelMustHaveMessage", eventName, info.Name)); 6692ManifestError(Environment.GetResourceString("EventSource_UndefinedOpcode", opcode, eventName), true); 6714ManifestError(Environment.GetResourceString("EventSource_UndefinedKeyword", "0x" + bit.ToString("x", CultureInfo.CurrentCulture), eventName), true); 6768ManifestError(Environment.GetResourceString("EventSource_UnsupportedEventTypeInManifest", type.Name), true); 6842ManifestError(Environment.GetResourceString("EventSource_UnsupportedMessageProperty", evtName, eventMessage));
System\Diagnostics\Eventing\TraceLogging\Statics.cs (2)
706throw new NotSupportedException(Environment.GetResourceString("EventSource_NotSupportedEnumType", dataType.Name, underlyingType.Name)); 818throw new ArgumentException(Environment.GetResourceString("EventSource_NonCompliantTypeError", dataType.Name));
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (3)
751throw new ArgumentException(Environment.GetResourceString("UnknownEtwTrait", etwTrait), "traits"); 800throw new ArgumentException(Environment.GetResourceString("IllegalValue", value), "traits"); 816throw new ArgumentException(Environment.GetResourceString("BadHexDigit", c), "traits");
system\double.cs (2)
309throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Double", "Char")); 369throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Double", "DateTime"));
system\enum.cs (6)
321return new ArgumentException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument)); 635throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), enumType.ToString())); 642throw new ArgumentException(Environment.GetResourceString("Arg_EnumFormatUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString())); 837throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", 883throw new ArgumentException(Environment.GetResourceString("Argument_EnumTypeDoesNotMatch", flag.GetType(), this.GetType())); 1032throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Enum", "DateTime"));
system\environment.cs (7)
698throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)target)); 883throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)target)); 1013throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)target)); 1346return GetResourceString(key,values); 1447throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)folder)); 1458throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)folder)); 1460throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)option));
system\exception.cs (1)
142return Environment.GetResourceString("Exception_WasThrown", _className);
system\globalization\calendar.cs (2)
655"firstDayOfWeek", Environment.GetResourceString("ArgumentOutOfRange_Range", 668"rule", Environment.GetResourceString("ArgumentOutOfRange_Range",
system\globalization\compareinfo.cs (1)
200throw new ArgumentException(Environment.GetResourceString("Argument_CustomCultureCannotBePassedByNumber", "culture"));
system\globalization\cultureinfo.cs (1)
680throw new ArgumentException(Environment.GetResourceString("Argument_InvalidResourceCultureName", cultureName));
system\globalization\culturenotfoundexception.cs (1)
135String valueMessage = Environment.GetResourceString("Argument_CultureInvalidIdentifier", FormatedInvalidCultureId);
system\globalization\datetimeformatinfo.cs (15)
908"value", Environment.GetResourceString("ArgumentOutOfRange_Range", 936"value", Environment.GetResourceString("ArgumentOutOfRange_Range", 1405throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 7), "value"); 1434throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 7), "value"); 1459throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 7), "value"); 1484throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value"); 1510throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value"); 1569"month", Environment.GetResourceString("ArgumentOutOfRange_Range", 1627"dayofweek", Environment.GetResourceString("ArgumentOutOfRange_Range", 1646"dayOfWeek", Environment.GetResourceString("ArgumentOutOfRange_Range", 1763"dayofweek", Environment.GetResourceString("ArgumentOutOfRange_Range", 1778"month", Environment.GetResourceString("ArgumentOutOfRange_Range", 1791"month", Environment.GetResourceString("ArgumentOutOfRange_Range", 2127throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value"); 2155throw new ArgumentException(Environment.GetResourceString("Argument_InvalidArrayLength", 13), "value");
system\globalization\datetimeparse.cs (2)
4184return new FormatException(Environment.GetResourceString(result.failureMessageID, result.failureMessageFormatArgument)); 4186return new FormatException(Environment.GetResourceString(result.failureMessageID, result.calendar));
system\globalization\eastasianlunisolarcalendar.cs (7)
70Environment.GetResourceString("ArgumentOutOfRange_Range", 1, 60)); 85Environment.GetResourceString("ArgumentOutOfRange_Range", 1, 60)); 183Environment.GetResourceString("ArgumentOutOfRange_Range", MinEraCalendarYear(era), MaxEraCalendarYear(era))); 241Environment.GetResourceString("ArgumentOutOfRange_Day", daysInMonth, month)); 404Environment.GetResourceString("ArgumentOutOfRange_Range", -120000, 120000)); 566Environment.GetResourceString("ArgumentOutOfRange_Day", daysInMonth, month)); 625Environment.GetResourceString("ArgumentOutOfRange_Range", 99, MaxCalendarYear));
system\globalization\gregoriancalendar.cs (6)
137Environment.GetResourceString("ArgumentOutOfRange_Range", 376throw new ArgumentOutOfRangeException("year", Environment.GetResourceString("ArgumentOutOfRange_Range", 468throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Range", 480Environment.GetResourceString("ArgumentOutOfRange_Range", 1, MaxYear)); 484throw new ArgumentOutOfRangeException("day", Environment.GetResourceString("ArgumentOutOfRange_Range", 537throw new ArgumentOutOfRangeException("month", Environment.GetResourceString("ArgumentOutOfRange_Range",
system\globalization\idnmapping.cs (8)
137Environment.GetResourceString("Argument_InvalidCharSequence", unicode.Length-1 ), 176Environment.GetResourceString("Argument_InvalidCharSequence", unicode.Length - 1), 354Environment.GetResourceString("Argument_InvalidCharSequence", i ), 398throw new ArgumentException(Environment.GetResourceString( 417throw new ArgumentException(Environment.GetResourceString( 775throw new ArgumentException(Environment.GetResourceString( 817throw new ArgumentException(Environment.GetResourceString( 1082throw new ArgumentException(Environment.GetResourceString(
system\globalization\regioninfo.cs (4)
94throw new ArgumentException(Environment.GetResourceString("Argument_InvalidNeutralRegionName", name), "name"); 113throw new ArgumentException(Environment.GetResourceString("Argument_CultureIsNeutral", culture), "culture"); 119throw new ArgumentException(Environment.GetResourceString("Argument_CustomCultureCannotBePassedByNumber", culture), "culture"); 128throw new ArgumentException(Environment.GetResourceString("Argument_CultureIsNeutral", culture), "culture");
system\globalization\timespanparse.cs (1)
490return new FormatException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument));
system\guid.cs (3)
55throw new ArgumentException(Environment.GetResourceString("Arg_GuidArrayCtor", "16")); 96throw new ArgumentException(Environment.GetResourceString("Arg_GuidArrayCtor", "8")); 211return new FormatException(Environment.GetResourceString(m_failureMessageID, m_failureMessageFormatArgument));
system\int16.cs (1)
268throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Int16", "DateTime"));
system\int32.cs (1)
241throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Int32", "DateTime"));
system\int64.cs (1)
220throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Int64", "DateTime"));
system\io\__error.cs (8)
145throw new FileNotFoundException(Environment.GetResourceString("IO.FileNotFound_FileName", str), str); 151throw new DirectoryNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", str)); 157throw new UnauthorizedAccessException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", str)); 162throw new IOException(Environment.GetResourceString("IO.IO_AlreadyExists_Name", str), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath); 168throw new DriveNotFoundException(Environment.GetResourceString("IO.DriveNotFound_Drive", str)); 177throw new IOException(Environment.GetResourceString("IO.IO_SharingViolation_File", str), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath); 182throw new IOException(Environment.GetResourceString("IO.IO_FileExists_Name", str), Win32Native.MakeHRFromErrorCode(errorCode), maybeFullPath); 205throw new DriveNotFoundException(Environment.GetResourceString("IO.DriveNotFound_Drive", driveName));
system\io\binaryreader.cs (1)
259throw new IOException(Environment.GetResourceString("IO.IO_InvalidStringLen_Len", stringLength));
system\io\bufferedstream.cs (1)
106throw new ArgumentOutOfRangeException("bufferSize", Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "bufferSize"));
system\io\directory.cs (3)
230throw new IOException(Environment.GetResourceString("IO.IO_CannotCreateDirectory", path)); 1273throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", sourceDirName), Win32Native.MakeHRFromErrorCode(hr)); 1483throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", userPath));
system\io\directoryinfo.cs (2)
246throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSubPath", path, displayPath)); 687throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", DisplayPath));
system\io\file.cs (1)
185throw new IOException(Environment.GetResourceString("Arg_FileIsDirectory_Name", destFileName), Win32Native.ERROR_ACCESS_DENIED, fullDestFileName);
system\io\fileloadexception.cs (1)
103s += Environment.NewLine + Environment.GetResourceString("IO.FileName_Name", _fileName);
system\io\filenotfoundexception.cs (1)
90s += Environment.NewLine + Environment.GetResourceString("IO.FileName_Name", _fileName);
system\io\filestream.cs (3)
676throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFileMode&AccessCombo", mode, access)); 679throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFileMode&RightsCombo", mode, fileSystemRights)); 693throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFileModeTruncate&RightsCombo", mode, fileSystemRights));
system\io\isolatedstorage\isolatedstorage.cs (5)
377Environment.GetResourceString( 389Environment.GetResourceString( 398Environment.GetResourceString( 413Environment.GetResourceString( 428Environment.GetResourceString(
system\io\isolatedstorage\isolatedstoragefile.cs (5)
889throw new FileNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName)); 891throw new DirectoryNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName)); 930throw new FileNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName)); 1014throw new FileNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceFileName)); 1080throw new DirectoryNotFoundException(Environment.GetResourceString("IO.PathNotFound_Path", sourceDirectoryName));
system\io\longpath.cs (4)
233throw new IOException(Environment.GetResourceString("Arg_FileIsDirectory_Name", destFileName), Win32Native.ERROR_ACCESS_DENIED, fullDestFileName); 483throw new IOException(Environment.GetResourceString("IO.IO_CannotCreateDirectory", path)); 665throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", sourceDirName), Win32Native.MakeHRFromErrorCode(hr)); 886throw new IOException(Environment.GetResourceString("UnauthorizedAccess_IODenied_Path", userPath));
system\io\streamwriter.cs (1)
890String message = Environment.GetResourceString("IO_StreamWriterBufferedDataLost", streamWriter.stream.GetType().FullName, fileName, callStack);
system\io\unmanagedmemoryaccessor.cs (3)
565throw new ArgumentException(Environment.GetResourceString("Argument_NotEnoughBytesToRead", typeof(T).FullName), "position"); 1049throw new ArgumentException(Environment.GetResourceString("Argument_NotEnoughBytesToWrite", typeof(T).FullName), "position"); 1172throw new ArgumentException(Environment.GetResourceString("Argument_NotEnoughBytesToWrite", "Byte"), "position");
system\math.cs (1)
149throw new ArgumentException(Environment.GetResourceString("Argument_InvalidEnumValue", mode, "MidpointRounding"), "mode");
system\missingfieldexception.cs (1)
50return Environment.GetResourceString("MissingField_Name",
system\missingmemberexception.cs (1)
58return Environment.GetResourceString("MissingMember_Name",
system\missingmethodexception.cs (1)
52return Environment.GetResourceString("MissingMethod_Name",
system\objectdisposedexception.cs (1)
49String objectDisposed = Environment.GetResourceString("ObjectDisposed_ObjectName_Name", name);
system\operatingsystem.cs (2)
46Environment.GetResourceString("Arg_EnumIllegalVal", (int)platform), 76throw new SerializationException(Environment.GetResourceString("Serialization_MissField", "_version"));
system\random.cs (2)
162throw new ArgumentOutOfRangeException("minValue",Environment.GetResourceString("Argument_MinMaxValue", "minValue", "maxValue")); 183throw new ArgumentOutOfRangeException("maxValue", Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "maxValue"));
system\reflection\assembly.cs (1)
789throw new NotSupportedException(Environment.GetResourceString("NotSupported_NoTypeInfo", types[i].FullName));
system\reflection\ConstructorInfo.cs (2)
614throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName)); 720throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName));
system\reflection\customattribute.cs (2)
749throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)encodedType), "encodedType"); 795throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)val), "val");
system\reflection\emit\assemblybuilder.cs (9)
324throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access), "access"); 714throw new TypeLoadException(Environment.GetResourceString(ResId.MissingType, "SymWriter")); 918throw new TypeLoadException(Environment.GetResourceString("MissingType", "SymWriter")); 984throw new InvalidOperationException(Environment.GetResourceString("Arugment_EmitMixedContext1", type.AssemblyQualifiedName)); 987throw new InvalidOperationException(Environment.GetResourceString("Arugment_EmitMixedContext2", type.AssemblyQualifiedName)); 1161throw new FileNotFoundException(Environment.GetResourceString( 1544throw new FileNotFoundException(Environment.GetResourceString( 1802throw new InvalidOperationException(Environment.GetResourceString(ResId.InvalidOperation_AssemblyHasBeenSaved, 1838throw new ArgumentException(Environment.GetResourceString("Argument_InvalidDirectory",
system\reflection\emit\assemblybuilderdata.cs (8)
157throw new ArgumentException(Environment.GetResourceString( 173throw new ArgumentException(Environment.GetResourceString( 196throw new ArgumentException(Environment.GetResourceString( 212throw new ArgumentException(Environment.GetResourceString( 222throw new ArgumentException(Environment.GetResourceString( 232throw new ArgumentException(Environment.GetResourceString( 246throw new ArgumentException(Environment.GetResourceString( 260throw new ArgumentException(Environment.GetResourceString(
system\reflection\emit\customattributebuilder.cs (4)
160throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterTypeForConstructor", i)); 435throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeForCA", 509throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterTypeForCAB", ot.ToString())); 521throw new ArgumentException(Environment.GetResourceString("Argument_BadParameterTypeForCAB", typename));
system\reflection\emit\dynamicilgenerator.cs (12)
77throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName)); 561throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName)); 574throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtField.FullName)); 588throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtField.FullName)); 591throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName)); 602throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName)); 614throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName)); 617throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName)); 628throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName)); 640throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName)); 643throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName)); 659throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtMeth.FullName));
system\reflection\emit\dynamicmethod.cs (1)
588throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_BadEmptyMethodBody", Name));
system\reflection\emit\ilgenerator.cs (1)
282throw new NotSupportedException(Environment.GetResourceString("NotSupported_IllegalOneByteBranch",m_fixupData[i].m_fixupPos, updateAddr));
system\reflection\emit\methodbuilder.cs (6)
1009throw new ArgumentOutOfRangeException("tokenFixups[" + i + "]", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, maxTokenOffset)); 1045throw new ArgumentOutOfRangeException("exceptionHandlers[" + i + "]", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, maxOffset)); 1053throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeToken", handler.ExceptionTypeToken), "exceptionHandlers[" + i + "]"); 1498throw new ArgumentOutOfRangeException("tryLength", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, Int32.MaxValue - tryOffset)); 1503throw new ArgumentOutOfRangeException("handlerLength", Environment.GetResourceString("ArgumentOutOfRange_Range", 0, Int32.MaxValue - handlerOffset)); 1510throw new ArgumentException(Environment.GetResourceString("Argument_InvalidTypeToken", exceptionTypeToken), "exceptionTypeToken");
system\reflection\emit\methodrental.cs (1)
82throw new NotSupportedException(Environment.GetResourceString("NotSupported_NotAllTypesAreBaked", typeBuilder.Name));
system\reflection\emit\modulebuilder.cs (5)
209throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", method.FullName)); 225throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", method.FullName)); 248throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtField.FullName)); 505throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", rtType.FullName)); 1448throw new FileNotFoundException(Environment.GetResourceString(
system\reflection\emit\modulebuilderdata.cs (1)
56throw new ArgumentException(Environment.GetResourceString("Argument_NoModuleFileExtension", strFileName));
system\reflection\emit\signaturehelper.cs (2)
840throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "requiredCustomModifiers", "arguments")); 843throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "optionalCustomModifiers", "arguments"));
system\reflection\emit\typebuilder.cs (4)
510throw new ArgumentException(Environment.GetResourceString("Argument_ConstantNotSupported", type.ToString())); 1714throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "parameterTypeOptionalCustomModifiers", "parameterTypes")); 1717throw new ArgumentException(Environment.GetResourceString("Argument_MismatchedArrays", "parameterTypeRequiredCustomModifiers", "parameterTypes")); 2425Environment.GetResourceString("InvalidOperation_BadEmptyMethodBody", meth.Name) );
system\reflection\fieldinfo.cs (2)
581throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName)); 656throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName));
system\reflection\memberinfoserializationholder.cs (6)
117throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMember", m_memberName)); 129throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMember", m_memberName)); 141throw new SerializationException(Environment.GetResourceString("Serialization_UnknownMember", m_memberName)); 163throw new SerializationException(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName)); 195throw new SerializationException(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName)); 266throw new SerializationException(Environment.GetResourceString(ResId.Serialization_UnknownMember, m_memberName));
system\reflection\methodinfo.cs (2)
723throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", FullName)); 927Environment.GetResourceString("Arg_NotGenericMethodDefinition", this));
system\reflection\module.cs (17)
672Environment.GetResourceString("Argument_InvalidToken", tk, this)); 675throw new ArgumentException(Environment.GetResourceString("Argument_InvalidToken", tk, this), 699Environment.GetResourceString("Argument_InvalidToken", tk, this)); 710Environment.GetResourceString("Argument_ResolveMethod", tk, this)); 718Environment.GetResourceString("Argument_ResolveMethod", tk, this)); 750String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this))); 771throw new ArgumentException(Environment.GetResourceString("Argument_ResolveField", tk, this), "metadataToken"); 782Environment.GetResourceString("Argument_InvalidToken", tk, this)); 795Environment.GetResourceString("Argument_ResolveField", tk, this)); 803Environment.GetResourceString("Argument_ResolveField", tk, this)); 836throw new ArgumentException(Environment.GetResourceString("Argument_ResolveModuleType", tk), "metadataToken"); 840Environment.GetResourceString("Argument_InvalidToken", tk, this)); 843throw new ArgumentException(Environment.GetResourceString("Argument_ResolveType", tk, this), "metadataToken"); 853throw new ArgumentException(Environment.GetResourceString("Argument_ResolveType", tk, this), "metadataToken"); 887Environment.GetResourceString("Argument_InvalidToken", tk, this)); 905Environment.GetResourceString("Argument_ResolveMember", tk, this)); 918String.Format(CultureInfo.CurrentUICulture, Environment.GetResourceString("Argument_InvalidToken", tk, this)));
system\resources\filebasedresourcegroveler.cs (1)
176throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResMgrBadResSet_Type", _mediator.UserResourceSet.AssemblyQualifiedName), e);
system\resources\manifestbasedresourcegroveler.cs (7)
243throw new ArgumentException(Environment.GetResourceString("Arg_InvalidNeutralResourcesLanguage_FallbackLoc", fallback)); 273throw new ArgumentException(Environment.GetResourceString("Arg_InvalidNeutralResourcesLanguage_Asm_Culture", a.ToString(), cultureName), e); 327throw new NotSupportedException(Environment.GetResourceString("NotSupported_ObsoleteResourcesFile", _mediator.MainAssembly.GetSimpleName())); 424throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResMgrBadResSet_Type", _mediator.UserResourceSet.AssemblyQualifiedName), e); 486throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_MultipleBlobs", givenName, satellite.ToString())); 665throw new MissingSatelliteAssemblyException(Environment.GetResourceString("MissingSatelliteAssembly_Culture_Name", _mediator.NeutralResourcesCulture, satAssemName), missingCultureName); 687throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_NoNeutralAsm", resName, _mediator.MainAssembly.GetSimpleName()));
system\resources\neutralresourceslanguageattribute.cs (1)
52throw new ArgumentException(Environment.GetResourceString("Arg_InvalidNeutralResourcesLanguage_FallbackLoc", location));
system\resources\resourcemanager.cs (6)
910throw new ArgumentException(Environment.GetResourceString("Arg_InvalidSatelliteContract_Asm_Ver", a.ToString(), v), e); 1275throw new MissingManifestResourceException(Environment.GetResourceString("MissingManifestResource_ResWFileNotLoaded", _PRIExceptionInfo._ResWFile, _PRIExceptionInfo._PackageSimpleName)); 1467throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotStream_Name", name)); 1568throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTag", Path.GetFileName(fileName), assemblyNode.Name)); 1571throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagNoAttr", Path.GetFileName(fileName))); 1576throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagBadAttr", Path.GetFileName(fileName), de.Key, de.Value));
system\resources\resourcereader.cs (21)
295throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameInvalidOffset", r)); 388throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataPos)); 457throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourcesIndexTooLong", index)); 478throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataOffset)); 491throw new EndOfStreamException(Environment.GetResourceString("BadImageFormat_ResourceNameCorrupted_NameIndex", index)); 496throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataOffset)); 515throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dataPos)); 540throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Type", FindType(typeIndex).FullName)); 551throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Type", typeString)); 743throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len)); 748throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len)); 754throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len)); 766throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len)); 776throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResourceDataLengthInvalid", len)); 847throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResType&SerBlobMismatch", type.FullName, graph.GetType().FullName)); 913throw new NotSupportedException(Environment.GetResourceString("NotSupported_WrongResourceReader_Type", readerType)); 923throw new ArgumentException(Environment.GetResourceString("Arg_ResourceFileUnsupportedVersion", RuntimeResourceSet.Version, version)); 1199throw new ArgumentException(Environment.GetResourceString("Arg_ResourceNameNotExist", resourceName)); 1209throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesNameInvalidOffset", numBytesToSkip)); 1215throw new FormatException(Environment.GetResourceString("BadImageFormat_ResourcesDataInvalidOffset", dPos)); 1329throw new BadImageFormatException(Environment.GetResourceString("BadImageFormat_ResType&SerBlobMismatch", _typeToDeserialize.FullName, typeName));
system\resources\resourceset.cs (3)
228throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Name", name)); 243throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Name", name)); 257throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ResourceNotString_Name", name));
system\rttype.cs (11)
2204Environment.GetResourceString("Argument_NeverValidGenericArgument", type.ToString())); 2224Environment.GetResourceString("Argument_NotEnoughGenArguments", genericArguments.Length, genericParamters.Length)); 2262Environment.GetResourceString("Argument_GenConstraintViolation", 4119throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), this.ToString())); 4140throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString())); 4151throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), GetEnumUnderlyingType())); 4211Environment.GetResourceString("Arg_NotGenericTypeDefinition", this)); 5166Environment.GetResourceString("Acc_CreateGenericEx", this)); 5253throw new MissingMethodException(Environment.GetResourceString("MissingConstructor_Name", FullName)); 5275throw new MissingMethodException(Environment.GetResourceString("MissingConstructor_Name", FullName)); 5467throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_APIInvalidForCurrentContext", this.FullName));
system\runtime\interopservices\marshal.cs (1)
287throw new ArgumentException(Environment.GetResourceString("Argument_OffsetOfFieldNotFound", t.FullName), "fieldName");
system\runtime\interopservices\registrationservices.cs (6)
1024throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NonStaticComRegFunction",CurrentMethod.Name,currType.Name)); 1026throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NonStaticComUnRegFunction",CurrentMethod.Name,currType.Name)); 1037throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_InvalidComRegFunctionSig",CurrentMethod.Name,currType.Name)); 1039throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_InvalidComUnRegFunctionSig",CurrentMethod.Name,currType.Name)); 1046throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MultipleComRegFunctions",currType.Name)); 1048throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_MultipleComUnRegFunctions",currType.Name));
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (25)
135throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Char16"), __HResults.TYPE_E_TYPEMISMATCH); 144throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Boolean"), __HResults.TYPE_E_TYPEMISMATCH); 159throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Inspectable"), __HResults.TYPE_E_TYPEMISMATCH); 176throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "DateTime"), __HResults.TYPE_E_TYPEMISMATCH); 185throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "TimeSpan"), __HResults.TYPE_E_TYPEMISMATCH); 195throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Point"), __HResults.TYPE_E_TYPEMISMATCH); 206throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Size"), __HResults.TYPE_E_TYPEMISMATCH); 217throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Rect"), __HResults.TYPE_E_TYPEMISMATCH); 281throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Char16[]"), __HResults.TYPE_E_TYPEMISMATCH); 290throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Boolean[]"), __HResults.TYPE_E_TYPEMISMATCH); 305throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Inspectable[]"), __HResults.TYPE_E_TYPEMISMATCH); 320throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "DateTimeOffset[]"), __HResults.TYPE_E_TYPEMISMATCH); 329throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "TimeSpan[]"), __HResults.TYPE_E_TYPEMISMATCH); 339throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Point[]"), __HResults.TYPE_E_TYPEMISMATCH); 350throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Size[]"), __HResults.TYPE_E_TYPEMISMATCH); 362throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, "Rect[]"), __HResults.TYPE_E_TYPEMISMATCH); 377throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", this.Type, typeof(T).MakeArrayType().Name), __HResults.TYPE_E_TYPEMISMATCH); 391Exception e = new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueArrayCoersion", this.Type, typeof(T).MakeArrayType().Name, i, elementCastException.Message), elementCastException); 414throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 437throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 440throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 443throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueCoersion", type, value, typeof(T).Name), __HResults.DISP_E_OVERFLOW); 483throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", type, typeof(T).Name), __HResults.TYPE_E_TYPEMISMATCH); 518throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedBoxedType.Name), __HResults.TYPE_E_TYPEMISMATCH); 540throw new InvalidCastException(Environment.GetResourceString("InvalidCast_WinRTIPropertyValueElement", _data.GetType(), expectedArrayElementType.MakeArrayType().Name), __HResults.TYPE_E_TYPEMISMATCH);
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (1)
35throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_EventTokenTableRequiresDelegate", typeof(T)));
system\runtime\interopservices\windowsruntime\managedactivationfactory.cs (1)
49throw new ArgumentException(Environment.GetResourceString("Argument_TypeNotActivatableViaWindowsRuntime", type), "type");
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
1241AppDomain hostDomain = AppDomain.CreateDomain(Environment.GetResourceString("WinRTHostDomainName", appBase), null, hostDomainSetup);
system\runtime\remoting\channelservices.cs (5)
146throw new RemotingException(Environment.GetResourceString("Remoting_Channel_CannotBeSecured", chnl.ChannelName??chnl.ToString())); 211throw new RemotingException(Environment.GetResourceString("Remoting_ChannelNameAlreadyRegistered", chnl.ChannelName)); 247throw new RemotingException(Environment.GetResourceString("Remoting_ChannelNotRegistered", chnl.ChannelName)); 589throw new RemotingException(Environment.GetResourceString("Remoting_ChannelNotRegistered", "")); 995throw new RemotingException(Environment.GetResourceString("Remoting_Disconnected",uri));
system\runtime\remoting\configuration.cs (3)
1563Environment.GetResourceString("Remoting_WellKnown_MustBeMBR", 1711Environment.GetResourceString("Remoting_AssemblyLoadFailed", 1719Environment.GetResourceString("Remoting_BadType",
system\runtime\remoting\identityholder.cs (1)
589Environment.GetResourceString("Remoting_URIClash",
system\runtime\remoting\lease.cs (3)
110throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_InitialStateRenewOnCall", ((Enum)state).ToString())); 128throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_InitialStateSponsorshipTimeout", ((Enum)state).ToString())); 149throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_InitialStateInitialLeaseTime", ((Enum)state).ToString()));
system\runtime\remoting\lifetimeservices.cs (4)
97throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_SetOnce", "LeaseTime")); 118throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_SetOnce", "RenewOnCallTime")); 141throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_SetOnce", "SponsorshipTimeout")); 304throw new RemotingException(Environment.GetResourceString("Remoting_Lifetime_ILeaseReturn", leaseObj));
system\runtime\remoting\objref.cs (1)
795throw new RemotingException(Environment.GetResourceString("Serialization_AssemblyNotFound", assemName));
system\runtime\remoting\remotingconfigparser.cs (2)
386Environment.GetResourceString("Remoting_AssemblyLoadFailed", 394Environment.GetResourceString("Remoting_BadType",
system\runtime\remoting\remotingproxy.cs (1)
261Environment.GetResourceString("Remoting_ServerObjectNotFound", reqMcmMsg.Uri));
system\runtime\remoting\soapinteroptypes.cs (5)
982throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:hexBinary", value)); 1618throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:normalizedString", value)); 1676throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:token", value)); 1681throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:token", value)); 1686throw new RemotingException(Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid", "xsd:token", value));
system\runtime\remoting\terminatorsinks.cs (1)
85throw new ArgumentException(Environment.GetResourceString("Remoting_ServerObjectNotFound", objURI));
system\runtime\remoting\trackingservices.cs (2)
94throw new RemotingException(Environment.GetResourceString("Remoting_TrackingHandlerAlreadyRegistered", "handler")); 115throw new RemotingException(Environment.GetResourceString("Remoting_HandlerNotRegistered", handler));
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (7)
89throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",typeInformation)); 172throw new SerializationException(Environment.GetResourceString("Serialization_TypeWrite",((Enum)binaryTypeEnum).ToString())); 203throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead",((Enum)binaryTypeEnum).ToString())); 268throw new SerializationException(Environment.GetResourceString("Serialization_TypeRead",((Enum)binaryTypeEnum).ToString())); 408throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyNotFound",assemblyString)); 464throw new SerializationException(Environment.GetResourceString("Serialization_InvalidFormat", BitConverter.ToString(headerBytes))); 2123throw new SerializationException(Environment.GetResourceString("Serialization_Assembly",objectName));
system\runtime\serialization\formatters\binary\binaryformatter.cs (2)
183throw new ArgumentNullException("serializationStream", Environment.GetResourceString("ArgumentNull_WithParamName",serializationStream)); 223throw new ArgumentNullException("serializationStream", Environment.GetResourceString("ArgumentNull_WithParamName", serializationStream));
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
768throw new SerializationException(Environment.GetResourceString("Serialization_TypeCode",((Enum)code).ToString()));
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (9)
154throw new SerializationException(Environment.GetResourceString("Serialization_NonSerType", 317throw new SecurityException(Environment.GetResourceString("Serialization_RequireFullTrust", objectType)); 415throw new SerializationException(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType())); 656throw new SerializationException(Environment.GetResourceString("Serialization_MemberInfo",objectType+" "+name)); 658throw new SerializationException(Environment.GetResourceString("Serialization_NoMemberInfo",objectType+" "+name)); 681throw new SerializationException(Environment.GetResourceString("Serialization_ISerializableTypes",objectType+" "+name)); 813throw new SerializationException(Environment.GetResourceString("Serialization_ISerializableTypes",objectType)); 859throw new SerializationException(Environment.GetResourceString("Serialization_MissingMember", cache.memberNames[i], objectType, typeof(OptionalFieldAttribute).FullName)); 887throw new SerializationException(Environment.GetResourceString("Serialization_SerMemberInfo",objMember.GetType()));
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (7)
146throw new ArgumentNullException("serParser", Environment.GetResourceString("ArgumentNull_WithParamName", serParser)); 412throw new SerializationException(Environment.GetResourceString("Serialization_XMLElement", pr.PRname)); 424throw new SerializationException(Environment.GetResourceString("Serialization_ParseError",onStack.PRname+" "+((Enum)onStack.PRparseTypeEnum) + " "+processing.PRname+" "+((Enum)processing.PRparseTypeEnum))); 461throw new ArgumentException(Environment.GetResourceString("Serialization_MBRAsMBV", t.FullName)); 549throw new SerializationException(Environment.GetResourceString("Serialization_TopObjectInstantiate",pr.PRdtType)); 805throw new SerializationException(Environment.GetResourceString("Serialization_ArrayType",((Enum)pr.PRarrayTypeEnum))); 1153throw new SerializationException(Environment.GetResourceString("Serialization_TypeMissing", pr.PRname));
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (2)
84throw new ArgumentNullException("serWriter", Environment.GetResourceString("ArgumentNull_WithParamName", "serWriter")); 1080throw new SerializationException(Environment.GetResourceString("Serialization_ObjNoID",realObj));
system\runtime\serialization\formatters\binary\binaryparser.cs (18)
181throw new SerializationException(Environment.GetResourceString("Serialization_BinaryHeader",inByte)); 405throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError","String", crossAppDomainAssembly.assemblyIndex)); 453throw new SerializationException(Environment.GetResourceString("Serialization_Map",binaryObject.mapId)); 494throw new SerializationException(Environment.GetResourceString("Serialization_Map",((Enum)objectOp.objectTypeEnum).ToString())); 538throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError","BinaryObjectMap", mapObject)); 570throw new SerializationException(Environment.GetResourceString("Serialization_Assembly",record.name)); 575throw new SerializationException(Environment.GetResourceString("Serialization_Assembly",record.assemId+" "+record.name)); 625throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString())); 670throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",record.name)); 674throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",record.assemId+" "+record.name)); 720throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString())); 760throw new SerializationException(Environment.GetResourceString("Serialization_CrossAppDomainError","String", crossAppDomainString.value)); 807throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString())); 864throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString())); 887throw new SerializationException(Environment.GetResourceString("Serialization_AssemblyId",record.typeInformation)); 931throw new SerializationException(Environment.GetResourceString("Serialization_ObjectTypeEnum",((Enum)objectOp.objectTypeEnum).ToString())); 985throw new SerializationException(Environment.GetResourceString("Serialization_ArrayType",((Enum)record.binaryArrayTypeEnum).ToString())); 1230throw new SerializationException(Environment.GetResourceString("Serialization_TypeCode",((Enum)code).ToString()));
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (1)
703throw new SerializationException(Environment.GetResourceString("Serialization_HeaderReflection",valueInfos.Length));
system\runtime\serialization\formatterservices.cs (9)
98throw new SerializationException(Environment.GetResourceString("Serialization_NonSerType", type.FullName, type.Module.Assembly.FullName)); 117throw new SerializationException(Environment.GetResourceString("Serialization_NonSerType", parentType.FullName, parentType.Module.Assembly.FullName)); 193throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString())); 218throw new SecurityException(Environment.GetResourceString("Serialization_TypeSecurity", advancedTypes[i].FullName, t.FullName)); 239throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString())); 253throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", type.ToString())); 266throw new SerializationException(Environment.GetResourceString("Serialization_Security", type.FullName), e); 352throw new ArgumentNullException("members", Environment.GetResourceString("ArgumentNull_NullMember", i)); 401throw new ArgumentNullException("members", Environment.GetResourceString("ArgumentNull_NullMember", i));
system\runtime\serialization\objectclonehelper.cs (1)
160throw new SerializationException(Environment.GetResourceString("Serialization_MissingMember",
system\runtime\serialization\objectmanager.cs (10)
238throw new SerializationException(Environment.GetResourceString("Serialization_NeverSeen", fixup.m_id)); 241throw new SerializationException(Environment.GetResourceString("Serialization_IORIncomplete", fixup.m_id)); 243throw new SerializationException(Environment.GetResourceString("Serialization_ObjectNotSupplied", fixup.m_id)); 502throw new SerializationException(Environment.GetResourceString("Serialization_MissingObject", holder.m_id)); 565throw new SerializationException(Environment.GetResourceString("Serialization_TypeLoadFailure", holder.TypeLoadException.TypeName)); 881throw new SerializationException(Environment.GetResourceString("Serialization_ConstructorNotFound", t), e); 899throw new SerializationException(Environment.GetResourceString("Serialization_ConstructorNotFound", t.FullName)); 927throw new SerializationException(Environment.GetResourceString("Serialization_ObjectNotSupplied", temp.m_id)); 954throw new SerializationException(Environment.GetResourceString("Serialization_TypeLoadFailure", ((TypeLoadExceptionHolder)TopObject).TypeName)); 1024throw new SerializationException(Environment.GetResourceString("Serialization_InvalidType", member.GetType().ToString()));
system\runtime\serialization\safeserializationmanager.cs (1)
230throw new ArgumentException(Environment.GetResourceString("Serialization_NonSerType", serializedState.GetType(), serializedState.GetType().Assembly.FullName));
system\runtime\serialization\serializationinfo.cs (1)
480throw new SerializationException(Environment.GetResourceString("Serialization_NotFound", name));
system\runtime\versioning\resourceattributes.cs (5)
119throw new ArgumentException(Environment.GetResourceString("Argument_ResourceScopeWrongDirection", fromResType, toResType), "from"); 184throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeTypeBits", consumeAsScope), "consumeAsScope"); 198throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeTypeBits", calleeScope), "calleeScope"); 217throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeVisibilityBits", consumeAsScope), "consumeAsScope"); 231throw new ArgumentException(Environment.GetResourceString("Argument_BadResourceScopeVisibilityBits", calleeScope), "calleeScope");
system\runtimehandles.cs (3)
1928Environment.GetResourceString("Argument_InvalidToken", typeToken, new ModuleHandle(module))); 1986Environment.GetResourceString("Argument_InvalidToken", methodToken, new ModuleHandle(module))); 2017Environment.GetResourceString("Argument_InvalidToken", fieldToken, new ModuleHandle(module)));
system\sbyte.cs (1)
276throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "SByte", "DateTime"));
system\security\accesscontrol\commonobjectsecurity.cs (1)
327throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)rule.AccessControlType), "rule.AccessControlType" );
system\security\accesscontrol\cryptokeysecurity.cs (1)
87throw new ArgumentException(Environment.GetResourceString("Argument_InvalidEnumValue", controlType, "controlType"), "controlType");
system\security\accesscontrol\eventwaithandlesecurity.cs (1)
145exception = new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name));
system\security\accesscontrol\filesecurity.cs (2)
186throw new ArgumentOutOfRangeException("fileSystemRights", Environment.GetResourceString("Argument_InvalidEnumValue", fileSystemRights, "FileSystemRights")); 296throw new ArgumentOutOfRangeException("fileSystemRights", Environment.GetResourceString("Argument_InvalidEnumValue", fileSystemRights, "FileSystemRights"));
system\security\accesscontrol\mutexsecurity.cs (1)
145exception = new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name));
system\security\accesscontrol\nativeobjectsecurity.cs (3)
148exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_UnexpectedError", error )); 167exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_UnexpectedError", error )); 312exception = new InvalidOperationException( Environment.GetResourceString( "AccessControl_UnexpectedError", error ));
system\security\accesscontrol\privilege.cs (1)
134Environment.GetResourceString( "Argument_InvalidPrivilegeName",
system\security\accesscontrol\registrysecurity.cs (2)
165exception = new IOException(Environment.GetResourceString("Arg_RegKeyNotFound", errorCode)); 169exception = new ArgumentException(Environment.GetResourceString("Arg_RegInvalidKeyName", "name"));
system\security\accesscontrol\rules.cs (4)
53Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "InheritanceFlags" )); 60Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "PropagationFlags" )); 150Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "InheritanceFlags" )); 157Environment.GetResourceString( "Argument_InvalidEnumValue", inheritanceFlags, "PropagationFlags" ));
system\security\claims\ClaimsIdentity.cs (1)
708throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_ClaimCannotBeRemoved", claim));
system\security\codeaccesssecurityengine.cs (2)
782throw new PolicyException(Environment.GetResourceString("Policy_NullHostGrantSet", securityManager.GetType().FullName)); 805throw new PolicyException(Environment.GetResourceString("Policy_GrantSetDoesNotMatchDomain", securityManager.GetType().FullName));
system\security\cryptography\cryptoapitransform.cs (1)
318throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)value), "value");
system\security\cryptography\dsa.cs (6)
166throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","P")); 173throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","Q")); 180throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","G")); 187throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","Y")); 207throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","Seed")); 209throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","DSA","PgenCounter"));
system\security\cryptography\dsacryptoserviceprovider.cs (4)
281throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 295throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 311throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidHashSize", "SHA1", _sha1.HashSize / 8)); 333throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidHashSize", "SHA1", _sha1.HashSize / 8));
system\security\cryptography\passwordderivebytes.cs (3)
97throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_ValuesFixed", "HashName")); 110throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_ValuesFixed", "IterationCount")); 123throw new CryptographicException(Environment.GetResourceString("Cryptography_PasswordDerivedBytes_ValuesFixed", "Salt"));
system\security\cryptography\rc2cryptoserviceprovider.cs (1)
174throw new CryptographicException(Environment.GetResourceString("Cryptography_CSP_AlgKeySizeNotAvailable", keySizeValue));
system\security\cryptography\rfc2898derivebytes.cs (2)
66throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name)); 105throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name));
system\security\cryptography\rsa.cs (2)
275throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","RSA","Modulus")); 282throw new CryptographicException(Environment.GetResourceString("Cryptography_InvalidFromXmlString","RSA","Exponent"));
system\security\cryptography\rsacryptoserviceprovider.cs (2)
427throw new CryptographicException(Environment.GetResourceString("Cryptography_Padding_DecDataTooBig", KeySize / 8)); 567throw new CryptographicException(Environment.GetResourceString("Cryptography_UnknownHashAlgorithm", hashAlgorithm.Name));
system\security\cryptography\rsapkcs1keyexchangeformatter.cs (1)
68throw new CryptographicException(Environment.GetResourceString("Cryptography_Padding_EncDataTooBig", cb-11));
system\security\cryptography\x509certificates\x509utils.cs (1)
274Environment.GetResourceString(
system\security\permissions\environmentpermission.cs (4)
165throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flag)); 236Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 252Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 295Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\filedialogpermission.cs (4)
105throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 142throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 181throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 190throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access));
system\security\permissions\fileiopermission.cs (4)
534throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access)); 643throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 669throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 721throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\gacidentitypermission.cs (3)
79throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 88throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 97throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\hostprotectionpermission.cs (4)
204throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)value)); 225throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) ); 234throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) ); 244throw new ArgumentException( Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) );
system\security\permissions\isolatedstoragefilepermission.cs (3)
44Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 95Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 109Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\keycontainerpermission.cs (5)
97throw new ArgumentException(Environment.GetResourceString("Argument_InvalidKeyStore", value), "value"); 449throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 484throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 506throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 656throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flags));
system\security\permissions\principalpermission.cs (3)
260Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 277Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 379Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\publisheridentitypermission.cs (3)
148throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 182throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 221throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\reflectionpermission.cs (4)
177Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 217Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 231Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 265throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)type));
system\security\permissions\registrypermission.cs (4)
201throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)access)); 254throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 279Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 331Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\securitypermission.cs (4)
165Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 176Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 197Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 259throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)type));
system\security\permissions\siteidentitypermission.cs (3)
187throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 221throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 261throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\strongnameidentitypermission.cs (3)
286throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 322throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 362throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\uipermission.cs (5)
164throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flag)); 173throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)flag)); 262Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 278Environment.GetResourceString("Argument_WrongType", this.GetType().FullName) 301Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)
system\security\permissions\urlidentitypermission.cs (3)
218throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 252throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 292throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\permissions\zoneidentitypermission.cs (3)
222throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 233throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName)); 247throw new ArgumentException(Environment.GetResourceString("Argument_WrongType", this.GetType().FullName));
system\security\policy\assemblyevidencefactory.cs (1)
236throw new InvalidOperationException(Environment.GetResourceString("Policy_NullHostEvidence", securityManager.GetType().FullName, targetAssembly.FullName));
system\security\policy\evidence.cs (2)
736throw new InvalidOperationException(Environment.GetResourceString("Policy_DuplicateEvidence", duplicate.GetType().FullName)); 1334throw new InvalidOperationException(Environment.GetResourceString("Policy_IncorrectHostEvidence", hostType, recievedType, requestedType));
system\security\policy\filecodegroup.cs (1)
168return Environment.GetResourceString("FileCodeGroup_PermissionSet", XMLUtil.BitFieldEnumToString(typeof(FileIOPermissionAccess), m_access));
system\security\policy\hashmembershipcondition.cs (2)
242return Environment.GetResourceString("Hash_ToString", m_hashAlg.GetType().AssemblyQualifiedName, Hex.EncodeHexString(HashValue)); 257throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", s_tagHashValue, this.GetType().FullName));
system\security\policy\policylevel.cs (13)
124throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)m_type)); 380throw new ArgumentException(Environment.GetResourceString("Argument_ReservedNPMS", name)); 409throw new ArgumentException(Environment.GetResourceString("Argument_NPMSInUse", name)); 437throw new ArgumentException(Environment.GetResourceString("Argument_ReservedNPMS", name)); 638throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", "CodeGroup", this.GetType().FullName)); 642throw new ArgumentException(Environment.GetResourceString("Argument_InvalidXMLElement", "CodeGroup", this.GetType().FullName)); 842exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParseEx", Label, message)); 847exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label)); 853exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label)); 859exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label)); 865exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label)); 875exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label)); 880exception = LoadError(Environment.GetResourceString("Error_SecurityPolicyFileParse", Label));
system\security\policymanager.cs (3)
283string errorMessage = Environment.GetResourceString("Policy_UnableToSave", 319throw new PolicyException(Environment.GetResourceString("Policy_UnableToSave", level.Label, extendedInformation), extendedError); 327throw new PolicyException(Environment.GetResourceString("Policy_UnableToSave", level.Label, e.Message), e);
system\security\principal\sid.cs (3)
210Environment.GetResourceString( "IdentityReference_InvalidNumberOfSubauthorities", MaxSubAuthorities)); 338Environment.GetResourceString( "IdentityReference_InvalidNumberOfSubauthorities", MaxSubAuthorities ), 503throw new ArgumentNullException( "domainSid", Environment.GetResourceString( "IdentityReference_DomainSidRequired", sidType) );
system\security\principal\win32.cs (1)
182throw new ArgumentException(Environment.GetResourceString( "IdentityReference_InvalidNumberOfSubauthorities", SecurityIdentifier.MaxSubAuthorities), "binaryForm");
system\security\principal\windowsprincipal.cs (1)
209throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)role), "role");
system\security\util\tokenizer.cs (1)
186throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)encoding));
system\single.cs (2)
279throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Single", "Char")); 339throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "Single", "DateTime"));
system\string.cs (3)
1017throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", options)); 1062throw new ArgumentException(Environment.GetResourceString("Arg_EnumIllegalVal", (int)options)); 1661throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "count"));
system\stubhelpers.cs (1)
1419throw new ArgumentException(Environment.GetResourceString("Argument_WinRTSystemRuntimeType", managedType.GetType().ToString()));
system\text\asciiencoding.cs (2)
436throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 574throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty",
system\text\basecodepageencoding.cs (1)
212Environment.GetResourceString("NotSupported_NoCodepageData", CodePage));
system\text\dbcscodepageencoding.cs (3)
107Environment.GetResourceString("NotSupported_NoCodepageData", CodePage)); 558throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 667throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty",
system\text\decoderexceptionfallback.cs (1)
100Environment.GetResourceString("Argument_InvalidCodePageBytesIndex",
system\text\decoderfallback.cs (1)
280Environment.GetResourceString("Argument_RecursiveFallbackBytes",
system\text\decoderreplacementfallback.cs (1)
64throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex", "replacement"));
system\text\encoderbestfitfallback.cs (2)
123Environment.GetResourceString("ArgumentOutOfRange_Range", 128Environment.GetResourceString("ArgumentOutOfRange_Range",
system\text\encoderexceptionfallback.cs (6)
59Environment.GetResourceString("Argument_InvalidCodePageConversionIndex", 68Environment.GetResourceString("ArgumentOutOfRange_Range", 74Environment.GetResourceString("ArgumentOutOfRange_Range", 83Environment.GetResourceString("Argument_InvalidCodePageConversionIndex", 151Environment.GetResourceString("ArgumentOutOfRange_Range", 157Environment.GetResourceString("ArgumentOutOfRange_Range",
system\text\encoderfallback.cs (1)
232Environment.GetResourceString("Argument_RecursiveFallback",
system\text\encoderreplacementfallback.cs (3)
66throw new ArgumentException(Environment.GetResourceString("Argument_InvalidCharSequenceNoIndex", "replacement")); 154Environment.GetResourceString("ArgumentOutOfRange_Range", 159Environment.GetResourceString("ArgumentOutOfRange_Range",
system\text\encoding.cs (7)
432"codepage", Environment.GetResourceString("ArgumentOutOfRange_Range", 515throw new ArgumentException(Environment.GetResourceString( 649Environment.GetResourceString("NotSupported_NoCodepageData", codepage)); 721Environment.GetResourceString("NotSupported_NoCodepageData", m_codePage)); 1598Environment.GetResourceString("Argument_EncodingConversionOverflowBytes", 1623Environment.GetResourceString("Argument_EncodingConversionOverflowChars", 2138throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty",
system\text\isciiencoding.cs (1)
82throw new ArgumentException(Environment.GetResourceString(
system\text\normalization.cs (4)
217Environment.GetResourceString("UnknownError_Num", iError)); 252Environment.GetResourceString("UnknownError_Num", iError)); 289Environment.GetResourceString("Argument_InvalidCharSequence", iLength ), 298Environment.GetResourceString("UnknownError_Num", iError));
system\text\sbcscodepageencoding.cs (1)
83Environment.GetResourceString("NotSupported_NoCodepageData", CodePage));
system\text\stringbuilder.cs (4)
122Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "capacity")); 126Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "length")); 166Environment.GetResourceString("ArgumentOutOfRange_MustBePositive", "capacity")); 767Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", "destinationIndex"));
system\text\unicodeencoding.cs (4)
479throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 697Environment.GetResourceString("Argument_RecursiveFallback", 763throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 1100Environment.GetResourceString("Argument_RecursiveFallback",
system\text\utf32encoding.cs (2)
457throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 587throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty",
system\text\utf8encoding.cs (2)
494throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty", 882throw new ArgumentException(Environment.GetResourceString("Argument_EncoderFallbackNotEmpty",
system\threading\eventwaithandle.cs (8)
61throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name)); 76throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag",name)); 85throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle",name)); 107throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name)); 136throw new ArgumentException(Environment.GetResourceString("Argument_InvalidFlag",name)); 147throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle",name)); 187throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name)); 235throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name));
system\threading\mutex.cs (5)
65throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name)); 94throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong", name)); 194throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", m_name)); 318throw new WaitHandleCannotBeOpenedException(Environment.GetResourceString("Threading.WaitHandleCannotBeOpenedException_InvalidHandle", name)); 365throw new ArgumentException(Environment.GetResourceString("Argument_WaitHandleNameTooLong",name));
system\threading\thread.cs (1)
1178throw new ArgumentException(Environment.GetResourceString("Argument_InvalidResourceCultureName", value.Name));
system\throwhelper.cs (2)
60throw new ArgumentException(Environment.GetResourceString("Arg_WrongType", key, targetType), "key"); 64throw new ArgumentException(Environment.GetResourceString("Arg_WrongType", value, targetType), "value");
system\timezoneinfo.cs (9)
891throw new ArgumentException(Environment.GetResourceString("Argument_InvalidSerializedString", source), "source"); 1224throw new SerializationException(Environment.GetResourceString("Serialization_CorruptField", "SupportsDaylightSavingTime")); 1957throw new TimeZoneNotFoundException(Environment.GetResourceString("TimeZoneNotFound_MissingRegistryData", id)); 1975throw new InvalidTimeZoneException(Environment.GetResourceString("InvalidTimeZone_InvalidRegistryData", id), e); 1978throw new SecurityException(Environment.GetResourceString("Security_CannotReadRegistryData", id), e); 1981throw new TimeZoneNotFoundException(Environment.GetResourceString("TimeZoneNotFound_MissingRegistryData", id), e); 2939throw new ArgumentException(Environment.GetResourceString("Argument_InvalidId", id), "id"); 3716throw new SerializationException(Environment.GetResourceString("Serialization_InvalidEscapeSequence", c)); 3867throw new SerializationException(Environment.GetResourceString("Serialization_InvalidEscapeSequence", String.Empty));
system\tuple.cs (8)
119throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 209throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 314throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 430throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 557throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 695throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 844throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other"); 1008throw new ArgumentException(Environment.GetResourceString("ArgumentException_TupleIncorrectType", this.GetType().ToString()), "other");
system\type.cs (3)
1497throw new ArgumentException(Environment.GetResourceString("Arg_EnumAndObjectMustBeSameType", valueType.ToString(), this.ToString())); 1518throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), underlyingType.ToString())); 1527throw new ArgumentException(Environment.GetResourceString("Arg_EnumUnderlyingTypeAndObjectMustBeSameType", valueType.ToString(), GetEnumUnderlyingType()));
system\typeinitializationexception.cs (1)
42public TypeInitializationException(String fullTypeName, Exception innerException) : base(Environment.GetResourceString("TypeInitialization_Type", fullTypeName), innerException) {
system\typenameparser.cs (4)
240throw new FileNotFoundException(Environment.GetResourceString("FileNotFound_ResolveAssembly", asmName)); 264Environment.GetResourceString("TypeLoad_ResolveType", OuterMostTypeName) : 265Environment.GetResourceString("TypeLoad_ResolveTypeFromAssembly", OuterMostTypeName, assembly.FullName); 296throw new TypeLoadException(Environment.GetResourceString("TypeLoad_ResolveNestedType", names[i], names[i-1]));
system\uint16.cs (1)
243throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "UInt16", "DateTime"));
system\uint32.cs (1)
225throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "UInt32", "DateTime"));
system\uint64.cs (1)
220throw new InvalidCastException(Environment.GetResourceString("InvalidCast_FromTo", "UInt64", "DateTime"));
system\unityserializationholder.cs (2)
203Environment.GetResourceString("Serialization_InsufficientDeserializationState", field)); 300Environment.GetResourceString("Serialization_UnableToFindModule", m_data, m_assemblyName));
system\variant.cs (1)
528throw new NotSupportedException(Environment.GetResourceString("NotSupported_UnknownTypeCode", ic.GetTypeCode()));
system\version.cs (3)
299throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper", "0", "2"), "fieldCount"); 313throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper", "0", "3"), "fieldCount"); 328throw new ArgumentException(Environment.GetResourceString("ArgumentOutOfRange_Bounds_Lower_Upper", "0", "4"), "fieldCount");