Condividi tramite


IObjectModelValidator.Validate Metodo

Definizione

Convalida l'oggetto fornito.

public:
 void Validate(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ validationState, System::String ^ prefix, System::Object ^ model);
public void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model);
public void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary? validationState, string prefix, object? model);
abstract member Validate : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary * string * obj -> unit
Public Sub Validate (actionContext As ActionContext, validationState As ValidationStateDictionary, prefix As String, model As Object)

Parametri

actionContext
ActionContext

Oggetto ActionContext associato alla richiesta corrente.

validationState
ValidationStateDictionary

Oggetto ValidationStateDictionary. Può essere Null.

prefix
String

Prefisso del modello. Utilizzato per eseguire il mapping dell'oggetto modello alle voci in validationState.

model
Object

Oggetto del modello.

Si applica a