Sdílet prostřednictvím


IObjectModelValidator.Validate Metoda

Definice

Ověří zadaný objekt.

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)

Parametry

actionContext
ActionContext

Přidružený ActionContext k aktuálnímu požadavku.

validationState
ValidationStateDictionary

Hodnota ValidationStateDictionary Může mít hodnotu null.

prefix
String

Předpona modelu. Slouží k mapování objektu modelu na položky v validationState.

model
Object

Objekt modelu.

Platí pro