ValidationVisitor.Visit(ModelMetadata, String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validate something in a model.
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
Parameters
- metadata
- ModelMetadata
The model metadata.
- key
- String
The key to validate.
- model
- Object
The model to validate.
Returns
Whether the the specified model key is valid.