Compartir a través de


ModelStateDictionaryExtensions.RemoveAll<TModel> Método

Definición

Quita todas las entradas del objeto especificado expression de ModelStateDictionary.

public:
generic <typename TModel>
[System::Runtime::CompilerServices::Extension]
 static void RemoveAll(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState, System::Linq::Expressions::Expression<Func<TModel, System::Object ^> ^> ^ expression);
public static void RemoveAll<TModel> (this Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState, System.Linq.Expressions.Expression<Func<TModel,object>> expression);
static member RemoveAll : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * System.Linq.Expressions.Expression<Func<'Model, obj>> -> unit
<Extension()>
Public Sub RemoveAll(Of TModel) (modelState As ModelStateDictionary, expression As Expression(Of Func(Of TModel, Object)))

Parámetros de tipo

TModel

Tipo del modelo.

Parámetros

modelState
ModelStateDictionary

La ModelStateDictionary instancia que extiende este método.

expression
Expression<Func<TModel,Object>>

Expresión que se va a evaluar con un elemento del modelo actual.

Se aplica a