IObjectModelValidator.Validate Yöntem

Tanım

Sağlanan nesneyi doğrular.

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)

Parametreler

actionContext
ActionContext

ActionContext Geçerli istekle ilişkili.

validationState
ValidationStateDictionary

ValidationStateDictionary. Null olabilir.

prefix
String

Model ön eki. Model nesnesini içindeki validationStategirişlere eşlemek için kullanılır.

model
Object

Model nesnesi.

Şunlara uygulanır