ControllerContextAttribute Класс

Определение

Указывает, что при создании контроллера свойство контроллера должно быть задано с текущим ControllerContext значением . Свойство должно иметь открытый метод set.

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 значением . Свойство должно иметь открытый метод set.

Применяется к