ModelBinderAttribute ModelBinderAttribute ModelBinderAttribute ModelBinderAttribute Class

Definition

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

public ref class ModelBinderAttribute : Attribute, Microsoft::AspNetCore::Mvc::ModelBinding::IBinderTypeProviderMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelNameProvider
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Enum | System.AttributeTargets.Parameter | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=true)]
public class ModelBinderAttribute : Attribute, Microsoft.AspNetCore.Mvc.ModelBinding.IBinderTypeProviderMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelNameProvider
type ModelBinderAttribute = class
    inherit Attribute
    interface IBinderTypeProviderMetadata
    interface IBindingSourceMetadata
    interface IModelNameProvider
Public Class ModelBinderAttribute
Inherits Attribute
Implements IBinderTypeProviderMetadata, IModelNameProvider
Inheritance
ModelBinderAttributeModelBinderAttributeModelBinderAttributeModelBinderAttribute
Attributes
Implements

Constructors

ModelBinderAttribute() ModelBinderAttribute() ModelBinderAttribute() ModelBinderAttribute()

Initializes a new instance of ModelBinderAttribute.

ModelBinderAttribute(Type) ModelBinderAttribute(Type) ModelBinderAttribute(Type) ModelBinderAttribute(Type)

Initializes a new instance of ModelBinderAttribute.

Properties

BinderType BinderType BinderType BinderType
BindingSource BindingSource BindingSource BindingSource
Name Name Name Name

Applies to