ServicesModelBinder Class

An Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder which binds models from the request services when a model has the binding source Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource.Services/

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding.Binders
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class ServicesModelBinder : IModelBinder
class Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ServicesModelBinder

Methods

BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext)
Return type:System.Threading.Tasks.Task
public Task BindModelAsync(ModelBindingContext bindingContext)