FormMappingContext.GetAttemptedValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAttemptedValue(String) |
Retrieves the attempted value that failed to map for a given model key. |
GetAttemptedValue(String, String) |
Retrieves the attempted value that failed to map for a given model key. |
GetAttemptedValue(String)
- Source:
- FormMappingContext.cs
- Source:
- FormMappingContext.cs
Retrieves the attempted value that failed to map for a given model key.
public string? GetAttemptedValue (string key);
member this.GetAttemptedValue : string -> string
Public Function GetAttemptedValue (key As String) As String
Parameters
- key
- String
The key used to identify the specific part of the model.
Returns
The attempted value associated with that part of the model if any.
Applies to
GetAttemptedValue(String, String)
- Source:
- FormMappingContext.cs
- Source:
- FormMappingContext.cs
Retrieves the attempted value that failed to map for a given model key.
public string? GetAttemptedValue (string formName, string key);
member this.GetAttemptedValue : string * string -> string
Public Function GetAttemptedValue (formName As String, key As String) As String
Parameters
- formName
- String
Form name for a form under this context.
- key
- String
The key used to identify the specific part of the model.
Returns
The attempted value associated with that part of the model if any.