System.Data.Common.ADP.Argument(string, string, System.Exception)

Here are the examples of the csharp api class System.Data.Common.ADP.Argument(string, string, System.Exception) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

75 Examples 7

1. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidArgumentLength(string argumentName, int limit) {
            return Argument(Res.GetString(Res.ADP_InvalidArgumentLength, argumentName, limit));
        }

2. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException MustBeReadOnly(string argumentName) {
            return Argument(Res.GetString(Res.ADP_MustBeReadOnly, argumentName));
        }

3. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException ConfigProviderNotFound() {
            return Argument(Res.GetString(Res.ConfigProviderNotFound));
        }

4. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException ConnectionStringSyntax(int index) {
            return Argument(Res.GetString(Res.ADP_ConnectionStringSyntax, index));
        }

5. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException KeywordNotSupported(string keyword) {
            return Argument(Res.GetString(Res.ADP_KeywordNotSupported, keyword));
        }

6. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException UdlFileError(Exception inner) {
            return Argument(Res.GetString(Res.ADP_UdlFileError), inner);
        }

7. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidUDL() {
            return Argument(Res.GetString(Res.ADP_InvalidUDL));
        }

8. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidKeyname(string parameterName) {
            return Argument(Res.GetString(Res.ADP_InvalidKey), parameterName);
        }

9. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidValue(string parameterName) {
            return Argument(Res.GetString(Res.ADP_InvalidValue), parameterName);
        }

10. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidMinMaxPoolSizeValues() {
            return ADP.Argument(Res.GetString(Res.ADP_InvalidMinMaxPoolSizeValues));
        }

11. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException) {
            return ADP.Argument(Res.GetString(Res.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException);
        }

12. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidMixedArgumentOfSecureAndClearCredential() {
            return ADP.Argument(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureAndClearCredential));
        }

13. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidMixedArgumentOfSecureCredentialAndIntegratedSecurity() {
           return ADP.Argument(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity));
        }

14. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidMixedArgumentOfSecureCredentialAndContextConnection() 
       {
           return ADP.Argument(Res.GetString(Res.ADP_InvalidMixedUsageOfSecureCredentialAndContextConnection));
       }

15. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidConnectionOptionValueLength(string key, int limit) {
            return Argument(Res.GetString(Res.ADP_InvalidConnectionOptionValueLength, key, limit));
        }

16. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidConnectionOptionValue(string key, Exception inner) {
            return Argument(Res.GetString(Res.ADP_InvalidConnectionOptionValue, key), inner);
        }

17. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception MissingConnectionOptionValue(string key, string requiredAdditionalKey) {
            return Argument(Res.GetString(Res.ADP_MissingConnectionOptionValue, key, requiredAdditionalKey));
        }

18. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidXMLBadVersion() {
            return Argument(Res.GetString(Res.ADP_InvalidXMLBadVersion));
        }

19. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception NotAPermissionElement() {
            return Argument(Res.GetString(Res.ADP_NotAPermissionElement));
        }

20. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception PermissionTypeMismatch() {
            return Argument(Res.GetString(Res.ADP_PermissionTypeMismatch));
        }

21. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception WrongType(Type got, Type expected) {
            return Argument(Res.GetString(Res.SQL_WrongType, got.ToString(), expected.ToString()));
        }

22. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection) {
            return Argument(Res.GetString(Res.ADP_CollectionRemoveInvalidObject, itemType.Name, collection.GetType().Name)); // MDAC 68201
        }

23. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception CollectionUniqueValue(Type itemType, string propertyName, string propertyValue) {
            return Argument(Res.GetString(Res.ADP_CollectionUniqueValue, itemType.Name, propertyName, propertyValue));
        }

24. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection) {
            return Argument(Res.GetString(Res.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
        }

25. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException ParametersIsParent(Type parameterType, ICollection collection) {
            return Argument(Res.GetString(Res.ADP_CollectionIsNotParent, parameterType.Name, collection.GetType().Name));
        }

26. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidSourceColumn(string parameter) {
            return Argument(Res.GetString(Res.ADP_InvalidSourceColumn), parameter);
        }

27. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidSourceTable(string parameter) {
            return Argument(Res.GetString(Res.ADP_InvalidSourceTable), parameter);
        }

28. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidMetaDataValue() {
            return ADP.Argument(Res.GetString(Res.ADP_InvalidMetaDataValue));
        }

29. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception FillSchemaRequiresSourceTableName(string parameter) {
            return Argument(Res.GetString(Res.ADP_FillSchemaRequiresSourceTableName), parameter);
        }

30. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidMaxRecords(string parameter, int max) {
            return Argument(Res.GetString(Res.ADP_InvalidMaxRecords, max.ToString(CultureInfo.InvariantCulture)), parameter);
        }

31. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidStartRecord(string parameter, int start) {
            return Argument(Res.GetString(Res.ADP_InvalidStartRecord, start.ToString(CultureInfo.InvariantCulture)), parameter);
        }

32. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception FillRequiresSourceTableName(string parameter) {
            return Argument(Res.GetString(Res.ADP_FillRequiresSourceTableName), parameter);
        }

33. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException UpdateMismatchRowTable(int i) {
            return Argument(Res.GetString(Res.ADP_UpdateMismatchRowTable, i.ToString(CultureInfo.InvariantCulture)));
        }

34. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidCommandTimeout(int value) {
            return Argument(Res.GetString(Res.ADP_InvalidCommandTimeout, value.ToString(CultureInfo.InvariantCulture)), ADP.CommandTimeout);
        }

35. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception EmptyDatabaseName() {
            return Argument(Res.GetString(Res.ADP_EmptyDatabaseName));
        }

36. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception DatabaseNameTooLong() {
            return Argument(Res.GetString(Res.ADP_DatabaseNameTooLong));
        }

37. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidConnectTimeoutValue() {
            return Argument(Res.GetString(Res.ADP_InvalidConnectTimeoutValue));
        }

38. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidConnectRetryCountValue() {
            return Argument(Res.GetString(Res.SQLCR_InvalidConnectRetryCountValue));
        }

39. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception InvalidConnectRetryIntervalValue() {
            return Argument(Res.GetString(Res.SQLCR_InvalidConnectRetryIntervalValue));
        }

40. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidDataType(TypeCode typecode) {
            return Argument(Res.GetString(Res.ADP_InvalidDataType, typecode.ToString()));
        }

41. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException UnknownDataType(Type dataType) {
            return Argument(Res.GetString(Res.ADP_UnknownDataType, dataType.FullName));
        }

42. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException DbTypeNotSupported(System.Data.DbType type, Type enumtype) {
            return Argument(Res.GetString(Res.ADP_DbTypeNotSupported, type.ToString(), enumtype.Name));
        }

43. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException UnknownDataTypeCode(Type dataType, TypeCode typeCode) {
            return Argument(Res.GetString(Res.ADP_UnknownDataTypeCode, ((int) typeCode).ToString(CultureInfo.InvariantCulture), dataType.FullName));
        }

44. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidOffsetValue(int value) {
            return Argument(Res.GetString(Res.ADP_InvalidOffsetValue, value.ToString(CultureInfo.InvariantCulture)));
        }

45. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException InvalidSizeValue(int value) {
            return Argument(Res.GetString(Res.ADP_InvalidSizeValue, value.ToString(CultureInfo.InvariantCulture)));
        }

46. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException ParameterValueOutOfRange(Decimal value) {
            return ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value.ToString((IFormatProvider)null)));
        }

47. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException ParameterValueOutOfRange(String value) {
            return ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value));
        }

48. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal ArgumentException VersionDoesNotSupportDataType(string typeName) {
            return Argument(Res.GetString(Res.ADP_VersionDoesNotSupportDataType, typeName));
        }

49. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception AmbigousCollectionName(string collectionName) {
            return Argument(Res.GetString(Res.MDF_AmbigousCollectionName,collectionName));
        }

50. Example

Project: referencesource
Source File: AdapterUtil.cs
View license
static internal Exception CollectionNameIsNotUnique(string collectionName) {
            return Argument(Res.GetString(Res.MDF_CollectionNameISNotUnique,collectionName));
        }