MvcOptions.ModelBindingMessageProvider 属性

定义

获取默认的 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

属性值

适用于