ControllerContext.Controller Property

 

Gets or sets the controller.

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

Syntax

public virtual ControllerBase Controller { get; set; }
public:
property ControllerBase^ Controller {
    virtual ControllerBase^ get();
    virtual void set(ControllerBase^ value);
}
abstract Controller : ControllerBase with get, set
override Controller : ControllerBase with get, set
Public Overridable Property Controller As ControllerBase

Property Value

Type: System.Web.Mvc.ControllerBase

The controller.

See Also

ControllerContext Class
System.Web.Mvc Namespace

Return to top