Share via


ModelValidationContext Class

Definition

A context object for IModelValidator.

public ref class ModelValidationContext : Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationContextBase
public class ModelValidationContext : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase
type ModelValidationContext = class
    inherit ModelValidationContextBase
Public Class ModelValidationContext
Inherits ModelValidationContextBase
Inheritance
ModelValidationContext

Constructors

ModelValidationContext(ActionContext, ModelMetadata, IModelMetadataProvider, Object, Object)

Create a new instance of ModelValidationContext.

Properties

ActionContext

Gets the ActionContext.

(Inherited from ModelValidationContextBase)
Container

Gets the model container object.

MetadataProvider

Gets the IModelMetadataProvider.

(Inherited from ModelValidationContextBase)
Model

Gets the model object.

ModelMetadata

Gets the ModelMetadata.

(Inherited from ModelValidationContextBase)

Applies to