ModelBinderAttribute.BindingSource 属性

定义

获取 BindingSource

public:  virtual property Microsoft::AspNetCore::Mvc::ModelBinding::BindingSource ^ BindingSource {  public:
Microsoft::AspNetCore::Mvc::ModelBinding::BindingSource ^ get(); protected:
 void set(Microsoft::AspNetCore::Mvc::ModelBinding::BindingSource ^ value); };
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource BindingSource { get; protected set; }
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource? BindingSource { get; protected set; }
member this.BindingSource : Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource with get, set
Public Overridable Property BindingSource As BindingSource

属性值

如果 BinderTypenull,则默认为 null。 否则,默认为 Custom。 可以在子类中重写。

适用于