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