Share via


ViewComponentContextAttribute Class

Definition

Specifies that a controller property should be set with the current ViewComponentContext when creating the view component. The property must have a public set method.

public ref class ViewComponentContextAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class ViewComponentContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ViewComponentContextAttribute = class
    inherit Attribute
Public Class ViewComponentContextAttribute
Inherits Attribute
Inheritance
ViewComponentContextAttribute
Attributes

Constructors

ViewComponentContextAttribute()

Applies to