ModelBinderAttribute Class

Summary

An attribute that can specify a model name or type of [Microsoft.AspNet.Mvc.ModelBinding.IModelBinder]() to use for binding.

Syntax

public class ModelBinderAttribute : Attribute, _Attribute, IModelNameProvider, IBinderTypeProviderMetadata, IBindingSourceMetadata

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ModelBinderAttribute

Properties

BinderType()
Return type:System.Type
public Type BinderType { get; set; }
BindingSource()
Return type:Microsoft.AspNet.Mvc.ModelBinding.BindingSource
public BindingSource BindingSource { get; set; }
Name()
Return type:System.String
public string Name { get; set; }