Share via


ModelBinderAttribute<TBinder> Class

Definition

An attribute that can specify a model name or type of IModelBinder to use for binding.

public class ModelBinderAttribute<TBinder> : Microsoft.AspNetCore.Mvc.ModelBinderAttribute where TBinder : IModelBinder
type ModelBinderAttribute<'Binder (requires 'Binder :> IModelBinder)> = class
    inherit ModelBinderAttribute
Public Class ModelBinderAttribute(Of TBinder)
Inherits ModelBinderAttribute

Type Parameters

TBinder

A Type which implements IModelBinder.

Inheritance
ModelBinderAttribute<TBinder>

Remarks

This is a derived generic variant of the ModelBinderAttribute. Ensure that only one instance of either attribute is provided on the target.

Constructors

ModelBinderAttribute<TBinder>()

Initializes a new instance of ModelBinderAttribute.

Properties

BinderType

A Type which implements either IModelBinder.

(Inherited from ModelBinderAttribute)
BindingSource

Gets the BindingSource.

(Inherited from ModelBinderAttribute)
Name

Model name.

(Inherited from ModelBinderAttribute)

Applies to