ViewComponentContextAttribute Classe

Definição

Especifica que uma propriedade de controlador deve ser definida com a atual ViewComponentContext ao criar o componente de exibição. A propriedade deve ter um método de conjunto público.

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
Herança
ViewComponentContextAttribute
Atributos

Construtores

ViewComponentContextAttribute()

Especifica que uma propriedade de controlador deve ser definida com a atual ViewComponentContext ao criar o componente de exibição. A propriedade deve ter um método de conjunto público.

Aplica-se a