// 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. using System; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.ModelBinding.Validation; using Microsoft.AspNetCore.Mvc.ViewEngines; using Microsoft.AspNetCore.Mvc.ViewFeatures; namespace Microsoft.AspNetCore.Mvc { /// /// Provides programmatic configuration for views in the MVC framework. /// public class MvcViewOptions { private HtmlHelperOptions _htmlHelperOptions = new HtmlHelperOptions(); /// /// Gets or sets programmatic configuration for the HTML helpers and . /// public HtmlHelperOptions HtmlHelperOptions { get { return _htmlHelperOptions; } set { if (value == null) { throw new ArgumentNullException(nameof(value)); } _htmlHelperOptions = value; } } /// /// Gets a list s used by this application. /// public IList ViewEngines { get; } = new List(); /// /// Gets a list of instances. /// public IList ClientModelValidatorProviders { get; } = new List(); } }