| File: ViewDataDictionaryAttribute.cs | Web Access |
| Project: src\aspnetcore\src\Mvc\Mvc.ViewFeatures\src\Microsoft.AspNetCore.Mvc.ViewFeatures.csproj (Microsoft.AspNetCore.Mvc.ViewFeatures) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Mvc.ViewFeatures; /// <summary> /// Specifies that a controller property should be set with the current /// <see cref="ViewDataDictionary"/> when creating the controller. The property must have a public /// set method. /// </summary> [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class ViewDataDictionaryAttribute : Attribute { }