In the MVC4 template one of the data annotation attributes used is stringlength.
For example:
[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
What parameters {0}, {1}, {2} (more?) are legal?
Edit: To be more specific, I can see from the example and trial and error what the possibilities are, but I would like to see some hard documentation.
I can't find anything about this in the StringLengthAttribute documentation.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…