IModelBinder Interface

Summary

Interface for model binding.

Syntax

public interface IModelBinder

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.ModelBinding.IModelBinder

Methods

BindModelAsync(Microsoft.AspNet.Mvc.ModelBinding.ModelBindingContext)

Async function to bind to a particular model.

Arguments:
Return type:

System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.ModelBinding.ModelBindingResult}

Returns:

A Task which on completion returns a [Microsoft.AspNet.Mvc.ModelBinding.ModelBindingResult](Microsoft.AspNet.Mvc.ModelBinding.ModelBindingResult.yml) which represents the result of the model binding process.

Task<ModelBindingResult> BindModelAsync(ModelBindingContext bindingContext)