ServicesModelBinder Class

Summary

An [Microsoft.AspNet.Mvc.ModelBinding.IModelBinder]() which binds models from the request services when a model has the binding source [Microsoft.AspNet.Mvc.ModelBinding.BindingSource.Services]()/

Syntax

public class ServicesModelBinder : BindingSourceModelBinder, IModelBinder

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinding.ServicesModelBinder

Constructors

Microsoft.AspNet.Mvc.ModelBinding.ServicesModelBinder.ServicesModelBinder()

Creates a new [Microsoft.AspNet.Mvc.ModelBinding.ServicesModelBinder](Microsoft.AspNet.Mvc.ModelBinding.ServicesModelBinder.yml).

public ServicesModelBinder()

Methods

BindModelCoreAsync(Microsoft.AspNet.Mvc.ModelBinding.ModelBindingContext)
Arguments:
Return type:

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

protected override Task<ModelBindingResult> BindModelCoreAsync(ModelBindingContext bindingContext)