814 references to SR
Microsoft.VisualBasic.Core (814)
Microsoft\VisualBasic\Collection.vb (23)
43Throw New ArgumentException(SR.Collection_BeforeAfterExclusive) 60Throw VbMakeException(New ArgumentException(SR.Collection_DuplicateKey), vbErrors.DuplicateKey) 76Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Before)), NameOf(Before)) 91Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(After)), NameOf(After)) 148Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Key)), NameOf(Key)) 171Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Key)), NameOf(Key)) 206Throw New IndexOutOfRangeException(SR.Argument_CollectionIndex) 211Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Index"), NameOf(Key)) 236Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Index)), NameOf(Index)) 320results(0) = SR.EmptyPlaceHolderMessage 592Throw New IndexOutOfRangeException(SR.Argument_CollectionIndex) 641Throw New ArgumentNullException(NameOf(array), SR.Format(SR.Argument_InvalidNullValue1, NameOf(array))) 645Throw New ArgumentException(SR.Format(SR.Argument_RankEQOne1, NameOf(array)), NameOf(array)) 649Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(index)), NameOf(index))
Microsoft\VisualBasic\CompilerServices\BooleanType.vb (4)
42Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Boolean"), e) 137Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Boolean"))
Microsoft\VisualBasic\CompilerServices\ByteType.vb (4)
32Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Byte"), e) 'UNSIGNED: make these strings constants 116Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Byte"))
Microsoft\VisualBasic\CompilerServices\CharArrayType.vb (2)
48Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Char()"))
Microsoft\VisualBasic\CompilerServices\CharType.vb (2)
62Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Char"))
Microsoft\VisualBasic\CompilerServices\Conversions.vb (64)
49Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Boolean"), e) 174Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Boolean")) 193Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Byte"), e) 'UNSIGNED: make these strings constants 316Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Byte")) 337Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "SByte"), e) 464Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "SByte")) 484Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Short"), e) 607Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Short")) 628Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "UShort"), e) 753Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "UShort")) 772Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Integer"), e) 896Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Integer")) 916Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "UInteger"), e) 1041Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "UInteger")) 1063Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Long"), e) 1187Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Long")) 1209Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "ULong"), e) 1334Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "ULong")) 1366Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Decimal")) 1483Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Decimal")) 1606Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Single"), e) 1728Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Single")) 1750Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Double"), e) 1872Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Double")) 1972Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Date")) 2029Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Date")) 2100Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Char")) 2144Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Char()")) 2318Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "String")) 2502Throw New ArgumentException(SR.Format(SR.Argument_InvalidNullValue1, "TargetType")) 2655SR.Format( 2656SR.AmbiguousCast2, 2664SR.Format( 2665SR.InvalidCast_FromTo,
Microsoft\VisualBasic\CompilerServices\DateType.vb (4)
27Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Date")) 70Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Date"))
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (4)
46Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Decimal")) 106Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Decimal"))
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (4)
36Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Double"), e) 124Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Double"))
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (13)
176Return VbMakeExceptionEx(vbErrors.IllegalFor, SR.Format(SR.ID92)) ' 92 - IllegaFor 180Return VbMakeExceptionEx(vbErrors.ObjNotSet, SR.Format(SR.ID91)) ' 91 - ObjNotSet 314Return New ArgumentException(SR.Format(ResourceID, PlaceHolders), ArgumentName) 324Return New ArgumentNullException(ArgumentName, SR.General_ArgumentNullException) 337Return New ArgumentNullException(ArgumentName, SR.Format(ResourceID, PlaceHolders)) 349Return New IO.DirectoryNotFoundException(SR.Format(ResourceID, PlaceHolders)) 362Return New IO.FileNotFoundException(SR.Format(ResourceID, PlaceHolders), FileName) 374Return New InvalidOperationException(SR.Format(ResourceID, PlaceHolders)) 385Return New IO.IOException(SR.Format(ResourceID, PlaceHolders)) 399Return New ComponentModel.Win32Exception(System.Runtime.InteropServices.Marshal.GetLastWin32Error(), SR.Format(ResourceID, PlaceHolders)) 417MyBase.New(SR.InternalError_VisualBasicRuntime)
Microsoft\VisualBasic\CompilerServices\IntegerType.vb (4)
32Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Integer"), e) 115Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Integer"))
Microsoft\VisualBasic\CompilerServices\IOUtils.vb (1)
96Throw New ArgumentException(SR.DIR_IllegalCall)
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (41)
163Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 172Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 231Throw New Exception(SR.Format(SR.RValueBaseForValueType, VBFriendlyName(objType, o), VBFriendlyName(objType, o))) 313Throw New MissingMemberException(SR.Format(SR.MissingMember_ReadOnlyField2, name, VBFriendlyName(objType, o))) 318Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 450Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 459Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 468Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberSetNotFoundOnType2, name, VBFriendlyName(objType, o))) 471Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberLetNotFoundOnType2, name, VBFriendlyName(objType, o))) 489Throw New InvalidOperationException(SR.LateboundCallToInheritedComClass) 513Throw New ArgumentException(SR.Argument_InvalidNamedArgs) 586Throw New MissingMemberException(SR.Format(SR.MissingMember_NoDefaultMemberFound1, VBFriendlyName(objType, o))) 648Throw New MissingMemberException(SR.Format(SR.MissingMember_NoDefaultMemberFound1, VBFriendlyName(objType, o))) 723Throw New Exception(SR.Format(SR.RValueBaseForValueType, o.GetType().Name, o.GetType().Name)) 749Throw New ArgumentException(SR.Argument_InvalidNamedArgs) 837Throw New MissingMemberException(SR.Format(SR.MissingMember_NoDefaultMemberFound1, VBFriendlyName(objType, o))) 895Throw New MissingMemberException(SR.Format(SR.MissingMember_NoDefaultMemberFound1, VBFriendlyName(objType, o))) 983Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 987Throw New ArgumentException(SR.Format(SR.ExpressionNotProcedure, name, VBFriendlyName(objType, o))) 1001Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 1044Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType, o))) 1241SR.Format(SR.NullReference_InstanceReqToAccessMember1, MemberToString(Member)))
Microsoft\VisualBasic\CompilerServices\LikeOperator.vb (4)
335Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Pattern")) 365Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Pattern"))
Microsoft\VisualBasic\CompilerServices\LongType.vb (4)
35Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Long"), e) 118Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Long"))
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (35)
300Throw New ArgumentException(SR.Argument_InvalidNamedArgs) 434Throw New ArgumentException(SR.Argument_InvalidValue) 449Throw New ArgumentException(SR.Argument_InvalidValue) 490SR.Format( 491SR.IntermediateLateBoundNothingResult1, 650Throw New ArgumentException(SR.Argument_InvalidNamedArgs) 658Throw New ArgumentException(SR.Argument_InvalidValue) 663Throw New ArgumentException(SR.Argument_InvalidValue) 693SR.Format( 694SR.RValueBaseForValueType, 949Throw New Exception(Utils.GetResourceString(SR.RValueBaseForValueType, baseReference.VBFriendlyName, baseReference.VBFriendlyName)) 971Throw New ArgumentException(SR.Argument_InvalidValue) 977SR.Format( 978SR.RValueBaseForValueType, 996Throw New ArgumentException(SR.Argument_InvalidValue) 1019SR.Format( 1020SR.RValueBaseForValueType, 1055SR.Format( 1056SR.IntermediateLateBoundNothingResult1, 1194Throw New ArgumentException(SR.Argument_InvalidValue) 1205Throw New ArgumentException(SR.Argument_InvalidValue) 1261SR.Format(SR.NoSetProperty1, propInfo.Name)) 1265SR.Format(SR.NoGetProperty1, propInfo.Name)) 1311SR.Format(SR.ExpressionNotProcedure, methodName, baseReference.VBFriendlyName)) 1329SR.Format(SR.PropertySetMissingArgument1, methodName)) 1390errorMessage = SR.Format(SR.MatchArgumentFailure2, resolutionResult.ToString, errorMessage) 1421SR.Format(SR.MethodAssignment1, resolutionResult.AsMethod.Name)) 1466errorMessage = SR.Format(SR.MatchArgumentFailure2, resolutionResult.ToString, errorMessage)
Microsoft\VisualBasic\CompilerServices\ObjectFlowControl.vb (24)
27SR.Format(SR.SyncLockRequiresReferenceType1, VBFriendlyName(Expression.GetType))) 94Throw New ArgumentException(SR.Format(SR.ForLoop_ConvertToType3, elementName, VBFriendlyName(sourceType), VBFriendlyName(targetType))) 107Throw New ArgumentException(SR.Format( 108SR.ForLoop_OperatorRequired2, 123Throw New ArgumentException(SR.Format( 124SR.ForLoop_UnacceptableOperator2, 133Throw New ArgumentException(SR.Format( 134SR.ForLoop_UnacceptableRelOperator2, 148Throw New ArgumentException(SR.Format(SR.Argument_InvalidNullValue1, "Start")) 150Throw New ArgumentException(SR.Format(SR.Argument_InvalidNullValue1, "Limit")) 152Throw New ArgumentException(SR.Format(SR.Argument_InvalidNullValue1, "Step")) 162Throw New ArgumentException(SR.Format(SR.ForLoop_CommonType3, VBFriendlyName(startType), VBFriendlyName(limitType), VBFriendlyName(StepValue))) 260Throw New NullReferenceException(SR.Format(SR.Argument_InvalidNullValue1, "Counter")) 273Throw New ArgumentException(SR.Format(SR.ForLoop_CommonType2, VBFriendlyName(MapTypeCodeToType(counterTypeCode)), VBFriendlyName(loopFor._widestType))) 379Throw New ArgumentException(SR.Format(SR.Argument_IComparable2, "loop control variable", VBFriendlyName(loopFor._counter)))
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (16)
3512Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(obj), VBFriendlyName(TypeFromTypeCode(toType)))) 3562Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(fromType), VBFriendlyName(toType))) 3578Return New InvalidCastException(SR.Format(SR.NoValidOperator_OneOperand, VBFriendlyName(Operand))) 3594SR.Format(SR.NoValidOperator_StringType1, Strings.Left(LeftString, MAX_INSERTION_SIZE)) 3596Substitution1 = SR.Format(SR.NoValidOperator_NonStringType1, VBFriendlyName(Left)) 3607SR.Format(SR.NoValidOperator_StringType1, Strings.Left(RightString, MAX_INSERTION_SIZE)) 3609Substitution2 = SR.Format(SR.NoValidOperator_NonStringType1, VBFriendlyName(Right)) 3613Return New InvalidCastException(SR.Format(SR.NoValidOperator_TwoOperands, Substitution1, Substitution2))
Microsoft\VisualBasic\CompilerServices\Operators.Resolution.vb (2)
215errorMessage = SR.Format(SR.MatchArgumentFailure2, operatorMethod.ToString, errorMessage)
Microsoft\VisualBasic\CompilerServices\Operators.vb (12)
87Return New InvalidCastException(SR.Format(SR.UnaryOperand2, OperatorNames(op), VBFriendlyName(operand))) 103SR.Format(SR.NoValidOperator_StringType1, Strings.Left(leftString, maxInsertionSize)) 105substitution1 = SR.Format(SR.NoValidOperator_NonStringType1, VBFriendlyName(left)) 116SR.Format(SR.NoValidOperator_StringType1, Strings.Left(rightString, maxInsertionSize)) 118substitution2 = SR.Format(SR.NoValidOperator_NonStringType1, VBFriendlyName(right)) 122Return New InvalidCastException(SR.Format(SR.BinaryOperands3, OperatorNames(op), substitution1, substitution2))
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (28)
949IIf(isByRefCopyBackContext, SR.ArgumentNarrowingCopyBack3, SR.ArgumentNarrowing3), 970SR.ArgumentMismatchAmbiguousCopyBack3, 971SR.ArgumentMismatchAmbiguous3), 973SR.ArgumentMismatchCopyBack3, 974SR.ArgumentMismatch3)), 1261ReportError(errors, SR.OmittedParamArrayArgument) 1263ReportError(errors, SR.OmittedArgument1, parameter.Name) 1328ReportError(errors, SR.TypeInferenceFails1, parameter.Name) 1548SR.ArgumentMismatch3, 1599ReportError(errors, SR.NamedParamNotFound2, argumentNames(argIndex), targetProcedure) 1607ReportError(errors, SR.NamedParamArrayArgument1, argumentNames(argIndex)) 1615ReportError(errors, SR.NamedArgUsedTwice2, argumentNames(argIndex), targetProcedure) 1651ReportError(errors, SR.OmittedArgument1, parameters(index).Name) 1682SR.UnboundTypeParam1, 1693ReportError(errors, SR.FailedTypeArgumentBinding) 2464SR.Format( 2479SR.Format( 2492SR.Format( 2567Dim message As String = SR.Format(errorID, overloadedProcedureName, errorMessage.ToString) 2617SR.NoCallableOverloadCandidates2, 2659SR.NoNonNarrowingOverloadCandidates2, 2672ReportError(errors, SR.NotMostSpecificOverload) 2691SR.NoMostSpecificOverload2, 2844Dim errorID As String = SR.NoViableOverloadCandidates1 2847errorID = SR.NoArgumentCountOverloadCandidates1 2849errorID = SR.NoTypeArgumentCountOverloadCandidates1 2851Throw New MissingMemberException(SR.Format(errorID, methodName))
Microsoft\VisualBasic\CompilerServices\ProjectData.vb (1)
98Throw New Security.SecurityException(SR.Security_LateBoundCallsNotPermitted)
Microsoft\VisualBasic\CompilerServices\ShortType.vb (4)
32Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Short"), e) 115Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Short"))
Microsoft\VisualBasic\CompilerServices\SingleType.vb (4)
42Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Single"), e) 131Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "Single"))
Microsoft\VisualBasic\CompilerServices\StringType.vb (10)
159Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(Value), "String")) 374Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Pattern")) 585Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Pattern")) 777Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Start")) 781Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Length"))
Microsoft\VisualBasic\CompilerServices\StructUtils.vb (14)
39Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "oStruct")) 53Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, FieldInfo.Name, FieldType.Name)), vbErrors.IllegalFuncCall) 124Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Empty")), vbErrors.IllegalFuncCall) 244Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "DBNull")), vbErrors.IllegalFuncCall) 248Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Exception")), vbErrors.IllegalFuncCall) 250Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Missing")), vbErrors.IllegalFuncCall) 255Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Object")), vbErrors.IllegalFuncCall)
Microsoft\VisualBasic\CompilerServices\Symbols.vb (12)
1077SR.Format(SR.MissingMember_NoDefaultMemberFound1, Me.VBFriendlyName)) 1089SR.Format(SR.MissingMember_MemberNotFoundOnType2, memberName, Me.VBFriendlyName)) 1103SR.Format(SR.NullReference_InstanceReqToAccessMember1, FieldToString(field))) 1122SR.Format(SR.MissingMember_ReadOnlyField2, field.Name, Me.VBFriendlyName)) 1128SR.Format(SR.NullReference_InstanceReqToAccessMember1, FieldToString(field))) 1270SR.Format(SR.NullReference_InstanceReqToAccessMember1, targetProcedure.ToString))
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (3)
59Return SR.GetResourceString(id, id) 68s = SR.GetResourceString(ResourceKey) 71s = SR.GetResourceString(VBDefaultErrorID)
Microsoft\VisualBasic\CompilerServices\Utils.vb (4)
35Throw New ArgumentException(SR.Argument_InvalidValue) 37Throw New SecurityException(SR.SetLocalTimeFailure) 58Throw New ArgumentException(SR.Argument_InvalidValue) 60Throw New SecurityException(SR.SetLocalDateFailure)
Microsoft\VisualBasic\CompilerServices\VB6BinaryFile.vb (5)
34Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Start")) 60Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Start")) 197Throw New NullReferenceException(JustNeedTheMessage.Message, New IO.IOException(SR.FileOpenedNoRead))
Microsoft\VisualBasic\CompilerServices\VB6File.vb (34)
113Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Empty")), vbErrors.IllegalFuncCall) 200Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "DBNull")), vbErrors.IllegalFuncCall) 205Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Exception")), vbErrors.IllegalFuncCall) 207Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Missing")), vbErrors.IllegalFuncCall) 209Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, FieldType.Name)), vbErrors.IllegalFuncCall) 237Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Empty")), vbErrors.IllegalFuncCall) 303Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "DBNull")), vbErrors.IllegalFuncCall) 309Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Exception")), vbErrors.IllegalFuncCall) 311Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, "Missing")), vbErrors.IllegalFuncCall) 313Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedFieldType2, field_info.Name, FieldType.Name)), vbErrors.IllegalFuncCall) 378Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Access")) 386Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Share")) 976Throw New ArgumentException(SR.Argument_UnsupportedArrayDimensions) 1697Throw New ArgumentException(SR.Argument_ArrayDimensionsDontMatch) 1717Throw New ArgumentException(SR.Argument_ArrayDimensionsDontMatch) 1737Throw New ArgumentException(SR.Argument_InvalidFixedLengthString) 1884Throw VbMakeException(New ArgumentException(SR.FileIO_StringLengthExceeded), vbErrors.IllegalFuncCall) 1949Throw New ArgumentException(SR.Argument_ArrayNotInitialized) 2067Throw New ArgumentException(SR.Argument_ArrayDimensionsDontMatch) 2208Throw New ArgumentException(SR.Format(SR.Argument_UnsupportedIOType1, VBFriendlyName(typ))) 2714Throw New NullReferenceException(JustNeedTheMessage.Message, New IO.IOException(SR.FileOpenedNoRead))
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (24)
130Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Start")) 147Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Start")) 280Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedIOType1, "DBNull")), vbErrors.IllegalFuncCall) 284Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedIOType1, "Currency")), vbErrors.IllegalFuncCall) 286Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedIOType1, typ.FullName)), vbErrors.IllegalFuncCall) 304Throw New ArgumentException(SR.Argument_ArrayNotInitialized) 326Throw New ArgumentException(SR.Argument_UnsupportedArrayDimensions) 336Throw New ArgumentException(SR.Argument_InvalidFixedLengthString) 352Throw New ArgumentException(SR.Argument_UnsupportedArrayDimensions) 448Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedIOType1, "Empty")), vbErrors.IllegalFuncCall) 497Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedIOType1, "Missing")), vbErrors.IllegalFuncCall) 503Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_PutObjectOfValueType1, VBFriendlyName(typ, Value))), vbErrors.IllegalFuncCall) 506Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_UnsupportedIOType1, VBFriendlyName(typ, Value))), vbErrors.IllegalFuncCall) 610Throw VbMakeExceptionEx(vbErrors.PathFileAccess, SR.FileOpenedNoWrite) 616Throw VbMakeExceptionEx(vbErrors.PathFileAccess, SR.FileOpenedNoRead)
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (37)
50Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromToArg4, CalledMethodName(), CStr(ParmIndex + 1), VBFriendlyName(ArgType), VBFriendlyName(ParmType))) 304Throw VbMakeExceptionEx(vbErrors.NamedArgsNotSupported, SR.NamedArgumentOnParamArray) 326Throw New MissingMemberException(SR.Format(SR.Argument_InvalidNamedArg2, names(NameIndex), CalledMethodName())) 395Throw New MissingMemberException(SR.Format(SR.NoMethodTakingXArguments2, CalledMethodName(), CStr(GetPropArgCount(args, IsPropertySet)))) 425Throw New MissingMemberException(SR.Format(SR.NoMethodTakingXArguments2, CalledMethodName(), CStr(GetPropArgCount(args, IsPropertySet)))) 571Throw New MissingMemberException(SR.Format(SR.NoMethodTakingXArguments2, CalledMethodName(), CStr(GetPropArgCount(args, IsPropertySet)))) 751Throw New AmbiguousMatchException(SR.Format(SR.AmbiguousMatch_NarrowingConversion1, CalledMethodName())) 915Throw New MissingMemberException(SR.Format(SR.NoMethodTakingXArguments2, CalledMethodName(), CStr(GetPropArgCount(args, IsPropertySet)))) 1087Throw New AmbiguousMatchException(SR.Format(SR.AmbiguousCall_ExactMatch2, CalledMethodName(), Msg)) 1090Throw New AmbiguousMatchException(SR.Format(SR.AmbiguousCall_WideningConversion2, CalledMethodName(), Msg)) 1095Throw New AmbiguousMatchException(SR.Format(SR.AmbiguousCall2, CalledMethodName(), Msg)) 1242Throw New MissingMemberException(SR.Format(SR.NoMethodTakingXArguments2, CalledMethodName(), CStr(GetPropArgCount(args, IsPropertySet)))) 1765Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(value), VBFriendlyName(typ))) 1908Return New ArgumentException(SR.Format(SR.NamedArgumentAlreadyUsed1, pars(j).Name)) 1923Return New MissingMemberException(SR.Format(SR.Argument_InvalidNamedArg2, names(i), CalledMethodName())) 1956Throw New MissingMemberException(SR.Format(SR.MissingMember_MemberNotFoundOnType2, name, VBFriendlyName(objType))) 1985Throw New MissingMemberException(SR.Format(SR.MissingMember_NoDefaultMemberFound1, VBFriendlyName(objType))) 2004Throw New MissingMemberException(SR.Format(SR.NoMethodTakingXArguments2, CalledMethodName(), CStr(GetPropArgCount(args, (invokeAttr And BindingFlags.SetProperty) <> 0)))) 2223Throw New ArgumentException(SR.Format(SR.Argument_IllegalNestedType2, name, VBFriendlyName(objType)))
Microsoft\VisualBasic\CompilerServices\Versioned.vb (2)
42Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "CallType"))
Microsoft\VisualBasic\Conversion.vb (25)
62Throw New ArgumentException(SR.MaxErrNumber) 121Throw New ArgumentNullException(SR.Format(SR.Argument_InvalidNullValue1, "Number")) 167Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_NotNumericType2, NameOf(Number), Number.GetType().FullName)), vbErrors.TypeMismatch) 196Throw New ArgumentNullException(SR.Format(SR.Argument_InvalidNullValue1, NameOf(Number))) 240Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_NotNumericType2, NameOf(Number), Number.GetType().FullName)), vbErrors.TypeMismatch) 286Throw New ArgumentNullException(SR.Format(SR.Argument_InvalidNullValue1, NameOf(Number))) 359Throw New ArgumentException(SR.Format(SR.Argument_InvalidValueType2, NameOf(Number), VBFriendlyName(Number))) 402Throw New ArgumentNullException(SR.Format(SR.Argument_InvalidNullValue1, NameOf(Number))) 470Throw New ArgumentException(SR.Format(SR.Argument_InvalidValueType2, NameOf(Number), VBFriendlyName(Number))) 477Throw New ArgumentNullException(SR.Format(SR.Argument_InvalidNullValue1, NameOf(Number))) 486Throw New InvalidCastException(SR.Format(SR.ArgumentNotNumeric1, NameOf(Number))) 528Throw New InvalidCastException(SR.Format(SR.ArgumentNotNumeric1, NameOf(Number))) 922Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValueType2, NameOf(Expression), VBFriendlyName(Expression))), vbErrors.OLENoPropOrMethod)
Microsoft\VisualBasic\DateAndTime.vb (40)
66Throw VbMakeException(New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Date")), vbErrors.IllegalFuncCall) 116Throw VbMakeException(New InvalidCastException(SR.Format(SR.InvalidCast_FromStringTo, Left(Value, 32), "Date")), vbErrors.IllegalFuncCall) 169Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Interval")) 211Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Interval")) 275Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Interval")) 291Throw New InvalidCastException(SR.Format(SR.Argument_InvalidDateValue1, "DateValue")) 312Throw New InvalidCastException(SR.Format(SR.Argument_InvalidDateValue1, "Date1")) 321Throw New InvalidCastException(SR.Format(SR.Argument_InvalidDateValue1, "Date2")) 340Throw New InvalidCastException(SR.Format(SR.Argument_InvalidDateValue1, "DateValue")) 373Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Interval")) 413Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Year")), vbErrors.IllegalFuncCall) 423Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Month")), vbErrors.IllegalFuncCall) 433Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Day")), vbErrors.IllegalFuncCall) 497Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "DayOfWeek")) 515Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Month")) 525Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Month")) 536Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Weekday")) 540Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "FirstDayOfWeekValue")) 560Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Weekday")) 564Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Weekday"))
Microsoft\VisualBasic\ErrObject.vb (8)
112Msg = SR.GetResourceString("ID" & CStr(tmpNumber)) 114NewMsg = SR.GetResourceString("ID" & CStr(m_curNumber)) 280Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Number")) 343Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Number")) 434Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1), NameOf(Number))
Microsoft\VisualBasic\FileIO\FileSystem.vb (27)
65Throw ExUtils.GetArgumentNullException("baseDirectory", SR.General_ArgumentEmptyOrNothing_Name, "baseDirectory") 244Throw ExUtils.GetArgumentExceptionWithArgName("path", SR.IO_GetParentPathIsRoot_Path, path) 479Throw ExUtils.GetIOException(SR.IO_FileExists_Path, directory) 669Throw ExUtils.GetIOException(SR.IO_DirectoryIsRoot_Path, directory) 674Throw ExUtils.GetDirectoryNotFoundException(SR.IO_DirectoryNotFound_Path, directory) 680"newName", SR.General_ArgumentEmptyOrNothing_Name, "newName") 711Throw ExUtils.GetFileNotFoundException(file, SR.IO_FileNotFound_Path, file) 717"newName", SR.General_ArgumentEmptyOrNothing_Name, "newName") 854Throw ExUtils.GetArgumentExceptionWithArgName(paramName, SR.IO_FilePathException) 911Throw ExUtils.GetDirectoryNotFoundException(SR.IO_DirectoryNotFound_Path, sourceDirectoryName) 916Throw ExUtils.GetIOException(SR.IO_DirectoryIsRoot_Path, sourceDirectoryName) 921Throw ExUtils.GetIOException(SR.IO_FileExists_Path, destinationDirectoryName) 926Throw ExUtils.GetIOException(SR.IO_SourceEqualsTargetDirectory) 939Throw ExUtils.GetInvalidOperationException(SR.IO_CyclicOperation) 995Dim IOException As New IO.IOException(SR.IO_CopyMoveRecursive) 1034Exceptions.Add(SourceDirectoryNode.TargetPath, ExUtils.GetDirectoryNotFoundException(SR.IO_DirectoryNotFound_Path, SourceDirectoryNode.TargetPath)) 1111Throw ExUtils.GetFileNotFoundException(sourceFileName, SR.IO_FileNotFound_Path, sourceFileName) 1116Throw ExUtils.GetIOException(SR.IO_DirectoryExists_Path, destinationFileName) 1192Throw ExUtils.GetDirectoryNotFoundException(SR.IO_DirectoryNotFound_Path, directory) 1196Throw ExUtils.GetIOException(SR.IO_DirectoryIsRoot_Path, directory) 1231Throw ExUtils.GetFileNotFoundException(file, SR.IO_FileNotFound_Path, file) 1250Throw ExUtils.GetIOException(SR.IO_FileExists_Path, Path) 1254Throw ExUtils.GetIOException(SR.IO_DirectoryExists_Path, Path) 1394Throw ExUtils.GetArgumentNullException("wildcards", SR.IO_GetFiles_NullPattern) 1460Throw ExUtils.GetArgumentExceptionWithArgName(ArgumentName, SR.IO_ArgumentIsPath_Name_Path, ArgumentName, NewName) 1469Throw ExUtils.GetArgumentExceptionWithArgName(ArgumentName, SR.IO_ArgumentIsPath_Name_Path, ArgumentName, NewName) 1851Throw ExceptionUtils.GetArgumentExceptionWithArgName("path", SR.IO_DevicePath)
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (2)
127Return MyBase.ToString() & " " & SR.Format(SR.TextFieldParser_MalformedExtraData, LineNumber.ToString(CultureInfo.InvariantCulture))
Microsoft\VisualBasic\FileIO\SpecialDirectories.vb (10)
28Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.Personal), SR.IO_SpecialDirectory_MyDocuments) 40Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.MyMusic), SR.IO_SpecialDirectory_MyMusic) 52Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.MyPictures), SR.IO_SpecialDirectory_MyPictures) 63Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.Desktop), SR.IO_SpecialDirectory_Desktop) 74Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.Programs), SR.IO_SpecialDirectory_Programs) 85Return GetDirectoryPath(Environment.GetFolderPath(SpecialFolder.ProgramFiles), SR.IO_SpecialDirectory_ProgramFiles) 100Return GetDirectoryPath(IO.Path.GetTempPath(), SR.IO_SpecialDirectory_Temp) 126Return GetDirectoryPath(GetWindowsFormsDirectory("System.Windows.Forms.Application", "UserAppDataPath"), SR.IO_SpecialDirectory_UserAppData) 145Return GetDirectoryPath(GetWindowsFormsDirectory("System.Windows.Forms.Application", "CommonAppDataPath"), SR.IO_SpecialDirectory_AllUserAppData) 158Throw ExUtils.GetDirectoryNotFoundException(SR.IO_SpecialDirectoryNotExist, DirectoryNameResID)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (25)
378Throw GetArgumentExceptionWithArgName("numberOfChars", SR.TextFieldParser_NumberOfCharsMustBePositive) 576Throw GetArgumentExceptionWithArgName("stream", SR.TextFieldParser_StreamNotReadable, "stream") 601Throw New IO.FileNotFoundException(SR.Format(SR.IO_FileNotFound_Path, fullPath)) 730Throw GetInvalidOperationException(SR.TextFieldParser_BufferExceededMaxSize) 919Throw New MalformedLineException(SR.Format(SR.TextFieldParser_MalFormedDelimitedLine, CurrentLineNumber.ToString(CultureInfo.InvariantCulture)), CurrentLineNumber) 939Throw New MalformedLineException(SR.Format(SR.TextFieldParser_MalFormedDelimitedLine, CurrentLineNumber.ToString(CultureInfo.InvariantCulture)), CurrentLineNumber) 945Throw New MalformedLineException(SR.Format(SR.TextFieldParser_MaxLineSizeExceeded, CurrentLineNumber.ToString(CultureInfo.InvariantCulture)), CurrentLineNumber) 954Throw New MalformedLineException(SR.Format(SR.TextFieldParser_MalFormedDelimitedLine, CurrentLineNumber.ToString(CultureInfo.InvariantCulture)), CurrentLineNumber) 1104Throw New MalformedLineException(SR.Format(SR.TextFieldParser_MalFormedFixedWidthLine, LineNumber.ToString(CultureInfo.InvariantCulture)), LineNumber) 1116Throw GetInvalidOperationException(SR.TextFieldParser_FieldWidthsNothing) 1120Throw GetInvalidOperationException(SR.TextFieldParser_FieldWidthsNothing) 1155Throw GetArgumentExceptionWithArgName("FieldWidths", SR.TextFieldParser_FieldWidthsMustPositive) 1167Throw GetArgumentExceptionWithArgName("Delimiters", SR.TextFieldParser_DelimitersNothing) 1171Throw GetArgumentExceptionWithArgName("Delimiters", SR.TextFieldParser_DelimitersNothing) 1188Throw GetInvalidOperationException(SR.TextFieldParser_IllegalDelimiter) 1239Throw GetInvalidOperationException(SR.TextFieldParser_InvalidComment) 1261Throw GetArgumentExceptionWithArgName("Delimiters", SR.TextFieldParser_DelimiterNothing, "Delimiters") 1264Throw GetArgumentExceptionWithArgName("Delimiters", SR.TextFieldParser_EndCharsInDelimiter) 1333Throw GetArgumentExceptionWithArgName("CommentTokens", SR.TextFieldParser_WhitespaceInToken)
Microsoft\VisualBasic\FileSystem.vb (57)
62Throw VbMakeException(New ArgumentException(SR.Argument_PathNullOrEmpty), vbErrors.BadFileNameOrNumber) 73Throw VbMakeException(New FileNotFoundException(SR.Format(SR.FileSystem_PathNotFound1, Path)), vbErrors.PathNotFound) 83Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Drive")) 87Throw VbMakeException(New IOException(SR.Format(SR.FileSystem_DriveNotFound1, CStr(Drive))), vbErrors.DevUnavailable) 119Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Drive")), vbErrors.DevUnavailable) 126Throw VbMakeException(New IOException(SR.Format(SR.FileSystem_DriveNotFound1, CStr(Drive))), vbErrors.DevUnavailable) 203Throw VbMakeException(New ArgumentException(SR.Argument_PathNullOrEmpty), vbErrors.BadFileNameOrNumber) 219Throw VbMakeException(New ArgumentException(SR.Argument_PathNullOrEmpty), vbErrors.BadFileNameOrNumber) 257Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_PathNullOrEmpty1, "Source")), vbErrors.BadFileNameOrNumber) 261Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_PathNullOrEmpty1, "Destination")), vbErrors.BadFileNameOrNumber) 266Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Source")), vbErrors.BadFileNameOrNumber) 270Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Destination")), vbErrors.BadFileNameOrNumber) 276Throw VbMakeException(New IOException(SR.Format(SR.FileSystem_FileAlreadyOpen1, Destination)), vbErrors.FileAlreadyOpen) 280Throw VbMakeException(New IOException(SR.Format(SR.FileSystem_FileAlreadyOpen1, Source)), vbErrors.FileAlreadyOpen) 304Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "PathName")), vbErrors.BadFileNameOrNumber) 311Throw New FileNotFoundException(SR.Format(SR.FileSystem_FileNotFound1, PathName)) 322Throw New FileNotFoundException(SR.Format(SR.FileSystem_FileNotFound1, PathName)) 369Throw New FileNotFoundException(SR.Format(SR.FileSystem_FileNotFound1, PathName)) 410Throw VbMakeException(New IOException(SR.Format(SR.FileSystem_FileAlreadyOpen1, FileName)), vbErrors.FileAlreadyOpen) 430Throw New IO.FileNotFoundException(SR.Format(SR.KILL_NoFilesFound1, PathName)) 455Throw VbMakeException(New ArgumentException(SR.Argument_PathNullOrEmpty), vbErrors.BadFileNameOrNumber) 465Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Attributes")) 491Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Access")) 501Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Share")) 511Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Mode")) 569Throw VbMakeException(New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "RecordNumber")), vbErrors.BadRecordNum) 730Throw New ArgumentException(SR.UseFilePutObject) 1020Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "CharCount")) 1280Throw New ArgumentException(SR.Argument_InvalidValue, NameOf(om)) 1319Throw New ArgumentException(SR.Format(SR.Argument_InvalidPathChars1, sPath)) 1443Throw New ArgumentException(SR.FileSystem_IllegalInputAccess) 1448Throw New ArgumentException(SR.FileSystem_IllegalOutputAccess) 1458Throw New ArgumentException(SR.FileSystem_IllegalAppendAccess)
Microsoft\VisualBasic\Financial.vb (50)
58Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Factor")) 190Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Per")) 258Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "ValueArray")) 265Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Guess")) 269Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "ValueArray")) 303Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Rate")) 317Throw New ArgumentException(SR.Argument_InvalidValue) 357Throw New ArgumentException(SR.Argument_InvalidValue) 379Throw New ArgumentException(SR.Format(SR.Argument_RankEQOne1, "ValueArray")) 387Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "FinanceRate")) 391Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "ReinvestRate")) 395Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "ValueArray")) 400Throw New DivideByZeroException(SR.Financial_CalcDivByZero) 410Throw New ArgumentException(SR.Argument_InvalidValue) 445Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Rate")) 450Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Pmt")) 467Throw New ArgumentException(SR.Financial_CannotCalculateNPer) 502Throw New ArgumentException(SR.Format(SR.Argument_InvalidNullValue1, "ValueArray")) 506Throw New ArgumentException(SR.Format(SR.Argument_RankEQOne1, "ValueArray")) 514Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Rate")) 517Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "ValueArray")) 573Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "NPer")) 613Throw New ArgumentException(SR.Format(SR.PPMT_PerGT0AndLTNPer, "Per")) 701Throw New ArgumentException(SR.Rate_NPerMustBeGTZero) 723Throw New ArgumentException(SR.Financial_CalcDivByZero) 743Throw New ArgumentException(SR.Financial_CannotCalculateRate) 763Throw New ArgumentException(SR.Financial_LifeNEZero) 793Throw New ArgumentException(SR.Format(SR.Financial_ArgGEZero1, "Salvage")) 796Throw New ArgumentException(SR.Financial_PeriodLELife) 799Throw New ArgumentException(SR.Format(SR.Financial_ArgGTZero1, "Period"))
Microsoft\VisualBasic\Information.vb (12)
135Throw New RankException(SR.Format(SR.Argument_InvalidRank1, NameOf(Rank))) 149Throw New RankException(SR.Format(SR.Argument_InvalidRank1, NameOf(Rank))) 218Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Color)), NameOf(Color)) 226Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Red)), NameOf(Red)) 228Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Green)), NameOf(Green)) 230Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, NameOf(Blue)), NameOf(Blue))
Microsoft\VisualBasic\Interaction.vb (23)
83Throw New ArgumentException(SR.Format(SR.Argument_Range1toFF1, "Expression")) 110Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Expression")) 141Throw New PlatformNotSupportedException(SR.MethodRequiresSystemWindowsForms) 154Throw New ArgumentException(SR.Format(SR.Argument_RankEQOne1, "Choice")) 191Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Start")) 195Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Stop")) 199Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Interval")) 300Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "VarExpr")) 336Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Section")) 446Throw New ArgumentException(SR.Argument_InvalidValue) 465Throw New ArgumentException(SR.Format(SR.Interaction_ResKeyNotCreated1, sIniSect)) 494Throw New ArgumentException(SR.Argument_PathNullOrEmpty) 599Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "CallType"))
Microsoft\VisualBasic\Strings.vb (83)
29Throw New ArgumentException(SR.InternalError_VisualBasicRuntime) 116m_CachedYesNoFormatStyle = SR.YesNoFormatStyle 131m_CachedOnOffFormatStyle = SR.OnOffFormatStyle 146m_CachedTrueFalseFormatStyle = SR.TrueFalseFormatStyle 216Throw New ArgumentException(SR.Format(SR.Argument_LengthGTZero1, NameOf([String])), NameOf([String])) 226Throw New Global.System.ArgumentException(SR.Format(SR.Argument_LengthGTZero1, NameOf([String])), NameOf([String])) 238Throw New ArgumentException(SR.Format(SR.Argument_RangeTwoBytes1, NameOf(CharCode)), NameOf(CharCode)) 286Throw New ArgumentException(SR.Format(SR.Argument_RangeTwoBytes1, NameOf(CharCode)), NameOf(CharCode)) 308Throw New ArgumentException(SR.Format(SR.Argument_InvalidValueType2, NameOf(Source), "String"), NameOf(Source)) 327Throw New ArgumentException(SR.Argument_RankEQOne1, NameOf(Source)) 385Throw New ArgumentException(SR.Format(SR.Argument_GTZero1, NameOf(Start)), NameOf(Start)) 441Throw New ArgumentException(SR.Format(SR.Argument_MinusOneOrGTZero1, NameOf(Start)), NameOf(Start)) 491Throw New ArgumentException(SR.Format(SR.Argument_InvalidValueType2, "SourceArray", "String")) 505Throw New ArgumentException(SR.Format(SR.Argument_RankEQOne1)) 666Throw New ArgumentException(SR.Format(SR.Argument_GEMinusOne1, "Count")) 670Throw New ArgumentException(SR.Format(SR.Argument_GTZero1, "Start")) 766Throw New ArgumentException(SR.Format(SR.Argument_GEZero1, "Number")) 953Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Number")) 957Throw New ArgumentNullException(SR.Format(SR.Argument_InvalidNullValue1, "Character")) 964Throw New ArgumentException(SR.Format(SR.Argument_LengthGTZero1, "Character")) 975Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Character")) 984Throw New ArgumentException(SR.Format(SR.Argument_GEZero1, "Number")) 992Throw New ArgumentException(SR.Format(SR.Argument_GEZero1, "Number")) 996Throw New ArgumentException(SR.Format(SR.Argument_LengthGTZero1, "Character")) 1276Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Expression")) 1357Throw New ArgumentException(SR.Format(SR.Argument_Range0to99_1, "NumDigitsAfterDecimal")) 1369Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(typ), "Currency")) 1452Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(typ), "Currency")) 1707Throw New ArgumentException(SR.Format(SR.Argument_Range0to99_1, "NumDigitsAfterDecimal")) 1808Throw New InvalidCastException(SR.Format(SR.InvalidCast_FromTo, VBFriendlyName(typ), "numeric")) 1822Throw New ArgumentException(SR.Format(SR.Argument_LengthGTZero1, "String")) 1824Throw New ArgumentException(SR.Format(SR.Argument_GEOne1, "Index")) 1826Throw New ArgumentException(SR.Format(SR.Argument_IndexLELength2, "Index", "String")) 1842Throw New ArgumentException(SR.Format(SR.Argument_GEZero1, NameOf(Length)), NameOf(Length)) 1889Throw New ArgumentException(SR.Format(SR.Argument_GTZero1, NameOf(Start)), NameOf(Start)) 1891Throw New ArgumentException(SR.Format(SR.Argument_GEZero1, NameOf(Length)), NameOf(Length)) 1911Throw New ArgumentException(SR.Format(SR.Argument_GEZero1, NameOf(Length)), NameOf(Length)) 1979Throw New ArgumentException(SR.Format(SR.Argument_InvalidValue1, "Compare")) 2023Throw New ArgumentException(SR.Format(SR.Argument_LCIDNotSupported1, CStr(LocaleID))) 2033Throw New ArgumentException(SR.Argument_InvalidVbStrConv) 2042Throw New ArgumentException(SR.Argument_StrConvSCandTC) 2047Throw New ArgumentException(SR.Argument_SCNotSupported) 2053Throw New ArgumentException(SR.Argument_TCNotSupported) 2062Throw New ArgumentException(SR.LinguisticRequirements) 2084Throw New ArgumentException(SR.Argument_JPNNotSupported) 2095Throw New ArgumentException(SR.Argument_LocalNotSupported) 2098Throw New ArgumentException(SR.Argument_WideNarrowNotApplicable) 2106Throw New ArgumentException(SR.Argument_IllegalWideNarrow) 2117Throw New ArgumentException(SR.Argument_IllegalKataHira)
Microsoft\VisualBasic\VBFixedArrayAttribute.vb (2)
40Throw New ArgumentException(SR.Invalid_VBFixedArray) 50Throw New ArgumentException(SR.Invalid_VBFixedArray)
Microsoft\VisualBasic\VBFixedStringAttribute.vb (1)
19Throw New ArgumentException(SR.Invalid_VBFixedString)