ViewDataDictionaryAttribute Class

Specifies that a controller property should be set with the current Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary when creating the controller. The property must have a public set method.

Namespace
Microsoft.AspNetCore.Mvc.ViewFeatures
Assemblies
  • Microsoft.AspNetCore.Mvc.ViewFeatures

Syntax

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class ViewDataDictionaryAttribute : Attribute, _Attribute
class Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionaryAttribute