ViewComponentContextAttribute Class¶
Specifies that a controller property should be set with the current
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext when creating the view component. The property must have a public
set method.
- Namespace
Microsoft.AspNetCore.Mvc.ViewComponents- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Inheritance Hierarchy¶
System.ObjectSystem.AttributeMicrosoft.AspNetCore.Mvc.ViewComponents.ViewComponentContextAttribute