PageContextAttribute 클래스

정의

모델 instance 만들 때 Razor 페이지 모델 속성을 현재 PageContext 로 설정하도록 지정합니다. 속성에는 public set 메서드가 있어야 합니다.

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()

모델 instance 만들 때 Razor 페이지 모델 속성을 현재 PageContext 로 설정하도록 지정합니다. 속성에는 public set 메서드가 있어야 합니다.

적용 대상