Argument() static private méthode

static private Argument ( string error ) : ArgumentException
error string
Résultat System.ArgumentException
Exemple #1
0
 static internal ArgumentException ParameterValueOutOfRange(Decimal value)
 {
     return(ADP.Argument(Res.GetString(Res.ADP_ParameterValueOutOfRange, value.ToString((IFormatProvider)null))));
 }
Exemple #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));
 }
Exemple #3
0
 //
 // SqlMetaData, SqlTypes, SqlClient
 //
 static internal Exception InvalidMetaDataValue()
 {
     return(ADP.Argument(Res.GetString(Res.ADP_InvalidMetaDataValue)));
 }
Exemple #4
0
 static internal ArgumentException InvalidMinMaxPoolSizeValues()
 {
     return(ADP.Argument(Res.GetString(Res.ADP_InvalidMinMaxPoolSizeValues)));
 }
 internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException)
 {
     return(ADP.Argument(SR.Format(SR.SqlConvert_ConvertFailed, fromType.FullName, toType.FullName), innerException));
 }
 internal static ArgumentException ParameterValueOutOfRange(SqlDecimal value)
 {
     return(ADP.Argument(SR.GetString(SR.ADP_ParameterValueOutOfRange, value.ToString())));
 }
 //
 // SqlMetaData, SqlTypes, SqlClient
 //
 internal static Exception InvalidMetaDataValue()
 {
     return(ADP.Argument(SR.GetString(SR.ADP_InvalidMetaDataValue)));
 }
 internal static ArgumentException InvalidRestrictionValue(string collectionName, string restrictionName, string restrictionValue)
 {
     return(ADP.Argument(SR.GetString(SR.MDF_InvalidRestrictionValue, collectionName, restrictionName, restrictionValue)));
 }