ModelStateDictionaryExtensions
AddModelError<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>, String)
AddModelError<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>, Exception, ModelMetadata)
Remove<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>)
RemoveAll<TModel>(ModelStateDictionary, Expression<Func<TModel, Object>>)
net481
namespace Microsoft.AspNet.Mvc.ModelBinding
{
public static class ModelStateDictionaryExtensions
{
public static void AddModelError<TModel>(this ModelStateDictionary modelState, Expression<Func<TModel, object>> expression, string errorMessage);
}
}
| .NET Framework | 4.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1 |
|---|---|
Information specific to net481 | |
| Assembly | Microsoft.AspNet.Mvc.ViewFeatures , Version=6.0.0.0, PublicKeyToken=adb9793829ddae60 |
| Referencing | Your project needs a package reference to |
| Package | Microsoft.AspNet.Mvc.ViewFeatures (6.0.0-rc1-final) net451 |
| Preview | This API is contained in a prerelease package. |
| Platform Restrictions | This framework does not have platform annotations. |
- Built-in API
- Package-provided API