ViewComponentContextAttribute Class

Summary

Specifies that a controller property should be set with the current [Microsoft.AspNet.Mvc.ViewComponentContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml) when creating the view component. The property must have a public set method.

Syntax

public class ViewComponentContextAttribute : Attribute, _Attribute

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.ViewComponents.ViewComponentContextAttribute