SimpleTypeModelBinder クラス

定義

IModelBinder単純型の 。

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
継承
SimpleTypeModelBinder
派生
実装

コンストラクター

SimpleTypeModelBinder(Type)
古い.

このコンストラクターは廃止され、将来のバージョンで削除される予定です。 推奨される代替手段は、 を受け取る ILoggerFactoryオーバーロードです。

SimpleTypeModelBinder の新しいインスタンスを初期化します。

SimpleTypeModelBinder(Type, ILoggerFactory)

SimpleTypeModelBinder の新しいインスタンスを初期化します。

メソッド

BindModelAsync(ModelBindingContext)

モデルのバインドを試みます。

CheckModel(ModelBindingContext, ValueProviderResult, Object)

modelが の場合はnull、 が許可nullされていることを確認します。それ以外の場合は、 に無効な valueProviderResultについて通知ModelBindingContext.ModelStateします。 成功した場合、 P:ModelBindingContext.Result を に model 設定します。

適用対象