MvcOptions.ModelBindingMessageProvider 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取默认的 ModelBindingMessageProvider。 除非在自定义 IBindingMetadataProvider中重写,否则此处的更改将ModelBindingMessageProvider复制到所有 ModelMetadata 实例的 属性。
public:
property Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelBindingMessageProvider ^ ModelBindingMessageProvider { Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelBindingMessageProvider ^ get(); };
public:
property Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::DefaultModelBindingMessageProvider ^ ModelBindingMessageProvider { Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::DefaultModelBindingMessageProvider ^ get(); };
public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelBindingMessageProvider ModelBindingMessageProvider { get; }
public Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider ModelBindingMessageProvider { get; }
member this.ModelBindingMessageProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelBindingMessageProvider
member this.ModelBindingMessageProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelBindingMessageProvider
Public ReadOnly Property ModelBindingMessageProvider As ModelBindingMessageProvider
Public ReadOnly Property ModelBindingMessageProvider As DefaultModelBindingMessageProvider