PageContextAttribute Clase

Definición

Especifica que se debe establecer una propiedad de modelo de página de Razor con el actual PageContext al crear la instancia del modelo. La propiedad debe tener un método de conjunto público.

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

Constructores

PageContextAttribute()

Especifica que se debe establecer una propiedad de modelo de página de Razor con el actual PageContext al crear la instancia del modelo. La propiedad debe tener un método de conjunto público.

Se aplica a