Method AddModelBinderProvider
AddModelBinderProvider<T>(IMvcBuilder)
Registers a new model binder provider of type T
at the beginning of the MVC
model binder providers list.
Declaration
public static IMvcBuilder AddModelBinderProvider<T>(this IMvcBuilder builder)where T : IModelBinderProvider, new ()
Parameters
Type |
Name |
Description |
Microsoft.Extensions.DependencyInjection.IMvcBuilder |
builder |
The Microsoft.Extensions.DependencyInjection.IMvcBuilder instance to configure. |
Returns
Type |
Description |
Microsoft.Extensions.DependencyInjection.IMvcBuilder |
The Microsoft.Extensions.DependencyInjection.IMvcBuilder instance. |
Type Parameters
Name |
Description |
T |
Type of the model binder provider to register. |