Partilhar via


ModelStateDictionaryExtensions.RemoveAll<TModel> Método

Definição

Remove todas as entradas do especificado expression do 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

O tipo do modelo.

Parâmetros

modelState
ModelStateDictionary

A ModelStateDictionary instância que este método estende.

expression
Expression<Func<TModel,Object>>

Uma expressão a ser avaliada em relação a um item no modelo atual.

Aplica-se a