Share via


PageContextAttribute Class

Definition

Specifies that a Razor Page model property should be set with the current PageContext when creating the model instance. The property must have a public set method.

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
Inheritance
PageContextAttribute
Attributes

Constructors

PageContextAttribute()

Applies to