Share via


MvcControl.ViewContext Property

 

Gets the viewing context of the control.

Namespace:   Microsoft.Web.Mvc.Controls
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Syntax

public ViewContext ViewContext { get; }
public:
property ViewContext^ ViewContext {
    ViewContext^ get();
}
member ViewContext : ViewContext with get
Public ReadOnly Property ViewContext As ViewContext

Property Value

Type: System.Web.Mvc.ViewContext

The viewing context of the control.

See Also

MvcControl Class
Microsoft.Web.Mvc.Controls Namespace

Return to top