ModelBindingMessageProvider.UnknownValueIsInvalidAccessor 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当 Exception 类型 FormatException 为 或 OverflowException时,模型绑定系统添加的错误消息,值未知,并且错误与属性相关联。
public:
property Func<System::String ^, System::String ^> ^ UnknownValueIsInvalidAccessor { Func<System::String ^, System::String ^> ^ get(); void set(Func<System::String ^, System::String ^> ^ value); };
public:
virtual property Func<System::String ^, System::String ^> ^ UnknownValueIsInvalidAccessor { Func<System::String ^, System::String ^> ^ get(); };
public Func<string,string> UnknownValueIsInvalidAccessor { get; set; }
public virtual Func<string,string> UnknownValueIsInvalidAccessor { get; }
member this.UnknownValueIsInvalidAccessor : Func<string, string> with get, set
member this.UnknownValueIsInvalidAccessor : Func<string, string>
Public Property UnknownValueIsInvalidAccessor As Func(Of String, String)
Public Overridable ReadOnly Property UnknownValueIsInvalidAccessor As Func(Of String, String)
属性值
默认值为 String “提供的值对 {0}无效”。