ControllerContextAttribute クラス

定義

コントローラーの作成時に、コントローラー プロパティを現在 ControllerContext の プロパティに設定する必要があることを指定します。 プロパティにはパブリック セット メソッドが必要です。

public ref class ControllerContextAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class ControllerContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ControllerContextAttribute = class
    inherit Attribute
Public Class ControllerContextAttribute
Inherits Attribute
継承
ControllerContextAttribute
属性

コンストラクター

ControllerContextAttribute()

コントローラーの作成時に、コントローラー プロパティを現在 ControllerContext の プロパティに設定する必要があることを指定します。 プロパティにはパブリック セット メソッドが必要です。

適用対象