FormMappingContext.GetAttemptedValue 方法

定义

重载

GetAttemptedValue(String)

检索无法映射给定模型键的尝试值。

GetAttemptedValue(String, String)

检索无法映射给定模型键的尝试值。

GetAttemptedValue(String)

Source:
FormMappingContext.cs

检索无法映射给定模型键的尝试值。

public string? GetAttemptedValue (string key);
member this.GetAttemptedValue : string -> string
Public Function GetAttemptedValue (key As String) As String

参数

key
String

用于标识模型特定部分的键。

返回

与模型的该部分关联的尝试值(如果有)。

适用于

GetAttemptedValue(String, String)

Source:
FormMappingContext.cs

检索无法映射给定模型键的尝试值。

public string? GetAttemptedValue (string formName, string key);
member this.GetAttemptedValue : string * string -> string
Public Function GetAttemptedValue (formName As String, key As String) As String

参数

formName
String

此上下文下窗体的窗体名称。

key
String

用于标识模型特定部分的键。

返回

与模型的该部分关联的尝试值(如果有)。

适用于