SimpleTypeModelBinder Třída

Definice

Jednoduché IModelBinder typy.

public ref class SimpleTypeModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder
public class SimpleTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type SimpleTypeModelBinder = class
    interface IModelBinder
Public Class SimpleTypeModelBinder
Implements IModelBinder
Dědičnost
SimpleTypeModelBinder
Odvozené
Implementuje

Konstruktory

SimpleTypeModelBinder(Type)
Zastaralé.

Tento konstruktor je zastaralý a bude odebrán v budoucí verzi. Doporučená alternativa je přetížení, které také přebírá ILoggerFactory.

Inicializuje novou instanci SimpleTypeModelBinder.

SimpleTypeModelBinder(Type, ILoggerFactory)

Inicializuje novou instanci SimpleTypeModelBinder.

Metody

BindModelAsync(ModelBindingContext)

Pokusí se vytvořit vazbu modelu.

CheckModel(ModelBindingContext, ValueProviderResult, Object)

Pokud je , model ověří, že je povoleno být null, jinak oznámí ModelBindingContext.ModelState o neplatném valueProviderResult.null P:ModelBindingContext.Result Nastaví na model úspěšný.

Platí pro