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.Object
System.Attribute
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContextAttribute