// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNet.Mvc.ModelBinding.Validation { /// /// A context object for . /// public class ModelValidationContext : ModelValidationContextBase { /// /// Create a new instance of . /// /// The for validation. /// The for validation. /// The to be used in validation. /// The model container. /// The model to be validated. public ModelValidationContext( ActionContext actionContext, ModelMetadata modelMetadata, IModelMetadataProvider metadataProvider, object container, object model) : base(actionContext, modelMetadata, metadataProvider) { Container = container; Model = model; } /// /// Gets the model object. /// public object Model { get; } /// /// Gets the model container object. /// public object Container { get; } } }