ModelValidationContext ModelValidationContext ModelValidationContext 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
ModelValidationContextModelValidationContextModelValidationContextModelValidationContext

Constructors

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

Create a new instance of ModelValidationContext.

Properties

ActionContext ActionContext ActionContext ActionContext

Gets the ActionContext.

(Inherited from ModelValidationContextBase)
Container Container Container Container

Gets the model container object.

MetadataProvider MetadataProvider MetadataProvider MetadataProvider

Gets the IModelMetadataProvider.

(Inherited from ModelValidationContextBase)
Model Model Model Model

Gets the model object.

ModelMetadata ModelMetadata ModelMetadata ModelMetadata

Gets the ModelMetadata.

(Inherited from ModelValidationContextBase)

Applies to