コード例 #1
0
 public override string FormatErrorMessage(string name)
 {
     return(ValidationLocalization.GetFormattedErrorMessage("exactcount", new object[] { name, Limit }));
 }
コード例 #2
0
 public override string FormatErrorMessage(string name)
 {
     return(ValidationLocalization
            .GetFormattedErrorMessage("exactdimensions",
                                      new object[] { name, Width, Height }));
 }
コード例 #3
0
 public override string FormatErrorMessage(string name)
 {
     return(ValidationLocalization
            .GetFormattedErrorMessage("maximumoftype",
                                      new object[] { name, Limit, ObjectType.Name }));
 }
コード例 #4
0
 public override string FormatErrorMessage(string name)
 {
     return(ValidationLocalization
            .GetFormattedErrorMessage("maxfilesize",
                                      new object[] { name, FormatBytes(_actualBytes), FormatBytes(Limit) }));
 }
コード例 #5
0
 public override string FormatErrorMessage(string name)
 {
     return ValidationLocalization
         .GetFormattedErrorMessage("allowedfileextensions",
         new object[] { name, string.Join(", ", AllowedExtensions) });
 }