115 references to _Argument
System.Data.Common (115)
System\Data\DataException.cs (113)
392public static Exception CannotModifyCollection() => _Argument(SR.Data_CannotModifyCollection); 393public static Exception CaseInsensitiveNameConflict(string? name) => _Argument(SR.Format(SR.Data_CaseInsensitiveNameConflict, name)); 394public static Exception NamespaceNameConflict(string? name) => _Argument(SR.Format(SR.Data_NamespaceNameConflict, name)); 395public static Exception InvalidOffsetLength() => _Argument(SR.Data_InvalidOffsetLength); 401public static Exception ColumnNotInTheTable(string column, string table) => _Argument(SR.Format(SR.DataColumn_NotInTheTable, column, table)); 402public static Exception ColumnNotInAnyTable() => _Argument(SR.DataColumn_NotInAnyTable); 405public static Exception CannotAddColumn1(string column) => _Argument(SR.Format(SR.DataColumns_Add1, column)); 406public static Exception CannotAddColumn2(string column) => _Argument(SR.Format(SR.DataColumns_Add2, column)); 407public static Exception CannotAddColumn3() => _Argument(SR.DataColumns_Add3); 408public static Exception CannotAddColumn4(string column) => _Argument(SR.Format(SR.DataColumns_Add4, column)); 412public static Exception CannotRemoveColumn() => _Argument(SR.DataColumns_Remove); 413public static Exception CannotRemovePrimaryKey() => _Argument(SR.DataColumns_RemovePrimaryKey); 414public static Exception CannotRemoveChildKey(string relation) => _Argument(SR.Format(SR.DataColumns_RemoveChildKey, relation)); 415public static Exception CannotRemoveConstraint(string constraint, string table) => _Argument(SR.Format(SR.DataColumns_RemoveConstraint, constraint, table)); 416public static Exception CannotRemoveExpression(string column, string expression) => _Argument(SR.Format(SR.DataColumns_RemoveExpression, column, expression)); 417public static Exception ColumnNotInTheUnderlyingTable(string column, string table) => _Argument(SR.Format(SR.DataColumn_NotInTheUnderlyingTable, column, table)); 424public static Exception AddPrimaryKeyConstraint() => _Argument(SR.DataConstraint_AddPrimaryKeyConstraint); 425public static Exception NoConstraintName() => _Argument(SR.DataConstraint_NoName); 427public static Exception ConstraintNotInTheTable(string constraint) => _Argument(SR.Format(SR.DataConstraint_NotInTheTable, constraint)); 460public static Exception NeededForForeignKeyConstraint(UniqueConstraint key, ForeignKeyConstraint fk) => _Argument(SR.Format(SR.DataConstraint_NeededForForeignKeyConstraint, key.ConstraintName, fk.ConstraintName)); 461public static Exception UniqueConstraintViolation() => _Argument(SR.DataConstraint_UniqueViolation); 462public static Exception ConstraintForeignTable() => _Argument(SR.DataConstraint_ForeignTable); 463public static Exception ConstraintParentValues() => _Argument(SR.DataConstraint_ParentValues); 465public static Exception ConstraintRemoveFailed() => _Argument(SR.DataConstraint_RemoveFailed); 473public static Exception CantAddConstraintToMultipleNestedTable(string tableName) => _Argument(SR.Format(SR.DataConstraint_CantAddConstraintToMultipleNestedTable, tableName)); 479public static Exception AutoIncrementAndExpression() => _Argument(SR.DataColumn_AutoIncrementAndExpression); 480public static Exception AutoIncrementAndDefaultValue() => _Argument(SR.DataColumn_AutoIncrementAndDefaultValue); 481public static Exception AutoIncrementSeed() => _Argument(SR.DataColumn_AutoIncrementSeed); 482public static Exception CantChangeDataType() => _Argument(SR.DataColumn_ChangeDataType); 483public static Exception NullDataType() => _Argument(SR.DataColumn_NullDataType); 484public static Exception ColumnNameRequired() => _Argument(SR.DataColumn_NameRequired); 485public static Exception DefaultValueAndAutoIncrement() => _Argument(SR.DataColumn_DefaultValueAndAutoIncrement); 492public static Exception ExpressionAndUnique() => _Argument(SR.DataColumn_ExpressionAndUnique); 493public static Exception ExpressionAndReadOnly() => _Argument(SR.DataColumn_ExpressionAndReadOnly); 494public static Exception ExpressionAndConstraint(DataColumn column, Constraint constraint) => _Argument(SR.Format(SR.DataColumn_ExpressionAndConstraint, column.ColumnName, constraint.ConstraintName)); 495public static Exception ExpressionInConstraint(DataColumn column) => _Argument(SR.Format(SR.DataColumn_ExpressionInConstraint, column.ColumnName)); 496public static Exception ExpressionCircular() => _Argument(SR.DataColumn_ExpressionCircular); 502public static Exception UniqueAndExpression() => _Argument(SR.DataColumn_UniqueAndExpression); 504public static Exception CannotSetToNull(DataColumn column) => _Argument(SR.Format(SR.DataColumn_CannotSetToNull, column.ColumnName)); 505public static Exception LongerThanMaxLength(DataColumn column) => _Argument(SR.Format(SR.DataColumn_LongerThanMaxLength, column.ColumnName)); 506public static Exception CannotSetMaxLength(DataColumn column, int value) => _Argument(SR.Format(SR.DataColumn_CannotSetMaxLength, column.ColumnName, value.ToString(CultureInfo.InvariantCulture))); 507public static Exception CannotSetMaxLength2(DataColumn column) => _Argument(SR.Format(SR.DataColumn_CannotSetMaxLength2, column.ColumnName)); 508public static Exception CannotSetSimpleContentType(string columnName, Type type) => _Argument(SR.Format(SR.DataColumn_CannotSimpleContentType, columnName, type)); 509public static Exception CannotSetSimpleContent(string columnName, Type type) => _Argument(SR.Format(SR.DataColumn_CannotSimpleContent, columnName, type)); 510public static Exception CannotChangeNamespace(string columnName) => _Argument(SR.Format(SR.DataColumn_CannotChangeNamespace, columnName)); 511public static Exception HasToBeStringType(DataColumn column) => _Argument(SR.Format(SR.DataColumn_HasToBeStringType, column.ColumnName)); 512public static Exception AutoIncrementCannotSetIfHasData(string typeName) => _Argument(SR.Format(SR.DataColumn_AutoIncrementCannotSetIfHasData, typeName)); 513public static Exception INullableUDTwithoutStaticNull(string typeName) => _Argument(SR.Format(SR.DataColumn_INullableUDTwithoutStaticNull, typeName)); 517public static Exception InvalidDataColumnMapping(Type type) => _Argument(SR.Format(SR.DataColumn_InvalidDataColumnMapping, type.AssemblyQualifiedName)); 536public static Exception SetIListObject() => _Argument(SR.DataView_SetIListObject); 539public static Exception CreateChildView() => _Argument(SR.DataView_CreateChildView); 543public static Exception AddExternalObject() => _Argument(SR.DataView_AddExternalObject); 544public static Exception CanNotClear() => _Argument(SR.DataView_CanNotClear); 545public static Exception InsertExternalObject() => _Argument(SR.DataView_InsertExternalObject); 546public static Exception RemoveExternalObject() => _Argument(SR.DataView_RemoveExternalObject); 547public static Exception PropertyNotFound(string property, string table) => _Argument(SR.Format(SR.DataROWView_PropertyNotFound, property, table)); 548public static Exception ColumnToSortIsOutOfRange(string column) => _Argument(SR.Format(SR.DataColumns_OutOfRange, column)); 564public static Exception NoRelationName() => _Argument(SR.DataRelation_NoName); 566public static Exception KeyLengthMismatch() => _Argument(SR.DataRelation_KeyLengthMismatch); 567public static Exception KeyLengthZero() => _Argument(SR.DataRelation_KeyZeroLength); 568public static Exception ForeignRelation() => _Argument(SR.DataRelation_ForeignDataSet); 573public static Exception RelationForeignRow() => _Argument(SR.DataRelation_ForeignRow); 574public static Exception RelationNestedReadOnly() => _Argument(SR.DataRelation_RelationNestedReadOnly); 575public static Exception TableCantBeNestedInTwoTables(string tableName) => _Argument(SR.Format(SR.DataRelation_TableCantBeNestedInTwoTables, tableName)); 576public static Exception LoopInNestedRelations(string tableName) => _Argument(SR.Format(SR.DataRelation_LoopInNestedRelations, tableName)); 577public static Exception RelationDoesNotExist() => _Argument(SR.DataRelation_DoesNotExist); 578public static Exception ParentRowNotInTheDataSet() => _Argument(SR.DataRow_ParentRowNotInTheDataSet); 587public static Exception RowNotInTheDataSet() => _Argument(SR.DataRow_NotInTheDataSet); 594public static Exception ValueArrayLength() => _Argument(SR.DataRow_ValuesArrayLength); 601public static Exception RowEmpty() => _Argument(SR.DataRow_Empty); 611public static Exception InvalidRowBitPattern() => _Argument(SR.DataRow_InvalidRowBitPattern); 617internal static Exception SetDataSetNameToEmpty() => _Argument(SR.DataSet_SetNameToEmpty); 618internal static Exception SetDataSetNameConflicting(string name) => _Argument(SR.Format(SR.DataSet_SetDataSetNameConflicting, name)); 619public static Exception DataSetUnsupportedSchema(string ns) => _Argument(SR.Format(SR.DataSet_UnsupportedSchema, ns)); 620public static Exception MergeMissingDefinition(string obj) => _Argument(SR.Format(SR.DataMerge_MissingDefinition, obj)); 621public static Exception TablesInDifferentSets() => _Argument(SR.DataRelation_TablesInDifferentSets); 622public static Exception RelationAlreadyExists() => _Argument(SR.DataRelation_AlreadyExists); 623public static Exception RowAlreadyInOtherCollection() => _Argument(SR.DataRow_AlreadyInOtherCollection); 624public static Exception RowAlreadyInTheCollection() => _Argument(SR.DataRow_AlreadyInTheCollection); 626public static Exception RecordStateRange() => _Argument(SR.DataIndex_RecordStateRange); 628_Argument(SR.DataIndex_FindWithoutSortOrder) : 629_Argument(SR.Format(SR.DataIndex_KeyLength, (length).ToString(CultureInfo.InvariantCulture), (keyLength).ToString(CultureInfo.InvariantCulture))); 631_Argument(SR.DataKey_RemovePrimaryKey) : 632_Argument(SR.Format(SR.DataKey_RemovePrimaryKey1, table.TableName)); 633public static Exception RelationAlreadyInOtherDataSet() => _Argument(SR.DataRelation_AlreadyInOtherDataSet); 634public static Exception RelationAlreadyInTheDataSet() => _Argument(SR.DataRelation_AlreadyInTheDataSet); 635public static Exception RelationNotInTheDataSet(string relation) => _Argument(SR.Format(SR.DataRelation_NotInTheDataSet, relation)); 638public static Exception RelationTableNull() => _Argument(SR.DataRelation_TableNull); 639public static Exception RelationDataSetNull() => _Argument(SR.DataRelation_TableNull); 640public static Exception RelationTableWasRemoved() => _Argument(SR.DataRelation_TableWasRemoved); 641public static Exception ParentTableMismatch() => _Argument(SR.DataRelation_ParentTableMismatch); 642public static Exception ChildTableMismatch() => _Argument(SR.DataRelation_ChildTableMismatch); 644public static Exception CaseLocaleMismatch() => _Argument(SR.DataRelation_CaseLocaleMismatch); 655public static Exception TableForeignPrimaryKey() => _Argument(SR.DataTable_ForeignPrimaryKey); 656public static Exception TableCannotAddToSimpleContent() => _Argument(SR.DataTable_CannotAddToSimpleContent); 657public static Exception NoTableName() => _Argument(SR.DataTable_NoName); 658public static Exception MultipleTextOnlyColumns() => _Argument(SR.DataTable_MultipleSimpleContentColumns); 659public static Exception InvalidSortString(string sort) => _Argument(SR.Format(SR.DataTable_InvalidSortString, sort)); 664public static Exception TableAlreadyInOtherDataSet() => _Argument(SR.DataTable_AlreadyInOtherDataSet); 665public static Exception TableAlreadyInTheDataSet() => _Argument(SR.DataTable_AlreadyInTheDataSet); 667public static Exception TableNotInTheDataSet(string table) => _Argument(SR.Format(SR.DataTable_NotInTheDataSet, table)); 668public static Exception TableInRelation() => _Argument(SR.DataTable_InRelation); 669public static Exception TableInConstraint(DataTable table, Constraint constraint) => _Argument(SR.Format(SR.DataTable_InConstraint, table.TableName, constraint.ConstraintName)); 672public static Exception CanNotSetRemotingFormat() => _Argument(SR.DataTable_CanNotSetRemotingFormat); 674public static Exception TableNotFound(string tableName) => _Argument(SR.Format(SR.DataTable_TableNotFound, tableName)); 682public static Exception RangeArgument(int min, int max) => _Argument(SR.Format(SR.Range_Argument, (min).ToString(CultureInfo.InvariantCulture), (max).ToString(CultureInfo.InvariantCulture))); 684public static Exception NegativeMinimumCapacity() => _Argument(SR.RecordManager_MinimumCapacity); 685public static Exception ProblematicChars(char charValue) => _Argument(SR.Format(SR.DataStorage_ProblematicChars, $"0x{(ushort)charValue:X}")); 686public static Exception StorageSetFailed() => _Argument(SR.DataStorage_SetInvalidDataType); 746public static Exception CannotCreateDataReaderOnEmptyDataSet() => _Argument(SR.DataTableReader_CannotCreateDataReaderOnEmptyDataSet); 747public static Exception DataTableReaderArgumentIsEmpty() => _Argument(SR.DataTableReader_DataTableReaderArgumentIsEmpty); 748public static Exception ArgumentContainsNullValue() => _Argument(SR.DataTableReader_ArgumentContainsNullValue); 751internal static Exception InvalidDuplicateNamedSimpleTypeDelaration(string stName, string errorStr) => _Argument(SR.Format(SR.NamedSimpleType_InvalidDuplicateNamedSimpleTypeDelaration, stName, errorStr));
System\Data\Filter\FilterException.cs (2)
91return ExceptionBuilder._Argument(SR.Expr_InvokeArgument); 328return ExceptionBuilder._Argument(SR.Format(SR.Expr_UnsupportedType, type.FullName));