Sdílet prostřednictvím


ModelStateDictionaryExtensions.RemoveAll<TModel> Metoda

Definice

Odebere všechny položky pro zadanou expression položku z objektu 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)))

Parametry typu

TModel

Typ modelu.

Parametry

modelState
ModelStateDictionary

Instance ModelStateDictionary , která tato metoda rozšiřuje.

expression
Expression<Func<TModel,Object>>

Výraz, který má být vyhodnocen proti položce v aktuálním modelu.

Platí pro