PageContextAttribute 類別

定義

指定建立模型實例時,應該使用目前的 PageContext 設定 Razor Page 模型屬性。 屬性必須具有公用集合方法。

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
繼承
PageContextAttribute
屬性

建構函式

PageContextAttribute()

指定建立模型實例時,應該使用目前的 PageContext 設定 Razor Page 模型屬性。 屬性必須具有公用集合方法。

適用於