Sdílet prostřednictvím


ValidationVisitor.Visit(ModelMetadata, String, Object) Metoda

Definice

Ověřte něco v modelu.

protected:
 virtual bool Visit(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::String ^ key, System::Object ^ model);
protected virtual bool Visit (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string key, object model);
protected virtual bool Visit (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, string? key, object? model);
abstract member Visit : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * string * obj -> bool
override this.Visit : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * string * obj -> bool
Protected Overridable Function Visit (metadata As ModelMetadata, key As String, model As Object) As Boolean

Parametry

metadata
ModelMetadata

Metadata modelu.

key
String

Klíč, který se má ověřit.

model
Object

Model, který se má ověřit.

Návraty

Zda je zadaný klíč modelu platný.

Platí pro