DefaultModelBindingMessageProvider.ValueMustNotBeNullAccessor 属性

定义

当值绑定到非Nullable属性时null,模型绑定系统添加的错误消息。

public:
 virtual property Func<System::String ^, System::String ^> ^ ValueMustNotBeNullAccessor { Func<System::String ^, System::String ^> ^ get(); };
public override Func<string,string> ValueMustNotBeNullAccessor { get; }
member this.ValueMustNotBeNullAccessor : Func<string, string>
Public Overrides ReadOnly Property ValueMustNotBeNullAccessor As Func(Of String, String)

属性值

默认值为 String “值 '{0}' 无效。

适用于