Argument() static private method

static private Argument ( string error ) : ArgumentException
error string
return System.ArgumentException
Exemplo n.º 1
0
 static internal ArgumentException ParameterValueOutOfRange(Decimal value)
 {
     return(ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value.ToString((IFormatProvider)null))));
 }
Exemplo n.º 2
0
 static internal ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException)
 {
     return(ADP.Argument(Res.GetString(Res.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException));
 }
Exemplo n.º 3
0
 //
 // SqlMetaData, SqlTypes, SqlClient
 //
 static internal Exception InvalidMetaDataValue()
 {
     return(ADP.Argument(Res.GetString(Res.ADP_InvalidMetaDataValue)));
 }
Exemplo n.º 4
0
 static internal ArgumentException InvalidMinMaxPoolSizeValues()
 {
     return(ADP.Argument(Res.GetString(Res.ADP_InvalidMinMaxPoolSizeValues)));
 }
Exemplo n.º 5
0
 internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException)
 {
     return(ADP.Argument(SR.Format(SR.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException));
 }
Exemplo n.º 6
0
 internal static ArgumentException ParameterValueOutOfRange(SqlDecimal value)
 {
     return(ADP.Argument(SR.GetString(SR.ADP_ParameterValueOutOfRange, value.ToString())));
 }
Exemplo n.º 7
0
 //
 // SqlMetaData, SqlTypes, SqlClient
 //
 internal static Exception InvalidMetaDataValue()
 {
     return(ADP.Argument(SR.GetString(SR.ADP_InvalidMetaDataValue)));
 }
Exemplo n.º 8
0
 internal static ArgumentException InvalidRestrictionValue(string collectionName, string restrictionName, string restrictionValue)
 {
     return(ADP.Argument(SR.GetString(SR.MDF_InvalidRestrictionValue, collectionName, restrictionName, restrictionValue)));
 }