PageContextAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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() |