Op Englesch liesen

Deelen iwwer


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.

C#
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class PageContextAttribute : Attribute
Inheritance
PageContextAttribute
Attributes

Constructors

Applies to

Produkt Versiounen
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0