ViewExtensions.RenderAction<TController> Method
Invokes the specified action method.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub RenderAction(Of TController As Controller) ( _
helper As HtmlHelper, _
action As Expression(Of Action(Of TController)) _
)
'Usage
Dim helper As HtmlHelper
Dim action As Expression(Of Action(Of TController))
helper.RenderAction(action)
public static void RenderAction<TController>(
this HtmlHelper helper,
Expression<Action<TController>> action
)
where TController : Controller
[ExtensionAttribute]
public:
generic<typename TController>
where TController : Controller
static void RenderAction(
HtmlHelper^ helper,
Expression<Action<TController>^>^ action
)
static member RenderAction :
helper:HtmlHelper *
action:Expression<Action<'TController>> -> unit when 'TController : Controller
JScript does not support generic types and methods.
Type Parameters
- TController
Parameters
- helper
Type: System.Web.Mvc.HtmlHelper
The HTML helper instance that this method extends.
- action
Type: System.Linq.Expressions.Expression<Action<TController>>
The action method to invoke.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HtmlHelper. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.118) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.118).