ControllerContext.Controller Property

Definition

Gets or sets the controller.

C#
public virtual System.Web.Mvc.ControllerBase Controller { get; set; }

Property Value

The controller.

Applies to

Product Versions
ASP.NET MVC 5.2