ModelValidationContext Class
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.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for