Compartilhar via


ControllerContext.Controller Property

Gets or sets the controller.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Overridable Property Controller As ControllerBase
    Get
    Set
public virtual ControllerBase Controller { get; set; }
public:
virtual property ControllerBase^ Controller {
    ControllerBase^ get ();
    void set (ControllerBase^ value);
}

Property Value

Type: System.Web.Mvc.ControllerBase
The controller.

See Also

Reference

ControllerContext Class

System.Web.Mvc Namespace