Compartir a través de


ModelStateDictionary.SetModelValue Método

Definición

Sobrecargas

SetModelValue(String, ValueProviderResult)

Establece el valor de con ModelStateEntry el especificado key.

SetModelValue(String, Object, String)

Establece el de RawValue y AttemptedValue para con ModelStateEntry el especificado key.

SetModelValue(String, ValueProviderResult)

Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs

Establece el valor de con ModelStateEntry el especificado key.

public:
 void SetModelValue(System::String ^ key, Microsoft::AspNetCore::Mvc::ModelBinding::ValueProviderResult valueProviderResult);
public void SetModelValue (string key, Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult valueProviderResult);
member this.SetModelValue : string * Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult -> unit
Public Sub SetModelValue (key As String, valueProviderResult As ValueProviderResult)

Parámetros

key
String

Clave de la ModelStateEntry entrada

valueProviderResult
ValueProviderResult

con ValueProviderResult datos para la ModelStateEntry entrada.

Se aplica a

SetModelValue(String, Object, String)

Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs
Source:
ModelStateDictionary.cs

Establece el de RawValue y AttemptedValue para con ModelStateEntry el especificado key.

public:
 void SetModelValue(System::String ^ key, System::Object ^ rawValue, System::String ^ attemptedValue);
public void SetModelValue (string key, object rawValue, string attemptedValue);
public void SetModelValue (string key, object? rawValue, string attemptedValue);
public void SetModelValue (string key, object? rawValue, string? attemptedValue);
member this.SetModelValue : string * obj * string -> unit
Public Sub SetModelValue (key As String, rawValue As Object, attemptedValue As String)

Parámetros

key
String

Clave de la ModelStateEntry entrada.

rawValue
Object

Valor sin formato de la ModelStateEntry entrada.

attemptedValue
String

Valores de rawValue en una coma separada por comas String.

Se aplica a