コード例 #1
0
 protected void SetValidatorErrors <TModel>(Func <Expression <Func <TModel, object> > > expresssion, params object[] errors)
 {
     ToolkitExtensions.SetValidatorErrors(this, expresssion, errors);
 }
コード例 #2
0
 protected void SetValidatorErrors(string property, params object[] errors)
 {
     ToolkitExtensions.SetValidatorErrors(this, property, errors);
 }
コード例 #3
0
 /// <summary>
 ///     Sets errors for a property using the <see cref="Validator"/>.
 /// </summary>
 /// <param name="propertyExpresssion">The expression for the property</param>
 /// <param name="errors">The collection of errors</param>
 protected void SetValidatorErrors <T>(Expression <Func <T> > propertyExpresssion, params object[] errors)
 {
     ToolkitExtensions.SetValidatorErrors(this, propertyExpresssion, errors);
 }