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 設定控制器屬性。 屬性必須具有公用集合方法。

適用於