HtmlHelperPartialExtensions.RenderPartialAsync HtmlHelperPartialExtensions.RenderPartialAsync HtmlHelperPartialExtensions.RenderPartialAsync Method

Definition

Overloads

RenderPartialAsync(IHtmlHelper, String) RenderPartialAsync(IHtmlHelper, String) RenderPartialAsync(IHtmlHelper, String)

Renders HTML markup for the specified partial view.

RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary) RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary) RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary)

Renders HTML markup for the specified partial view.

RenderPartialAsync(IHtmlHelper, String, Object) RenderPartialAsync(IHtmlHelper, String, Object) RenderPartialAsync(IHtmlHelper, String, Object)

Renders HTML markup for the specified partial view.

RenderPartialAsync(IHtmlHelper, String) RenderPartialAsync(IHtmlHelper, String) RenderPartialAsync(IHtmlHelper, String)

Renders HTML markup for the specified partial view.

public static System.Threading.Tasks.Task RenderPartialAsync (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName);
static member RenderPartialAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> System.Threading.Tasks.Task
<Extension()>
Public Function RenderPartialAsync (htmlHelper As IHtmlHelper, partialViewName As String) As Task

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String String String

The name or path of the partial view used to create the HTML markup. Must not be null.

Returns

A Task that renders the created HTML when it executes.

Remarks

In this context, "renders" means the method writes its output using Writer.

RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary) RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary) RenderPartialAsync(IHtmlHelper, String, ViewDataDictionary)

Renders HTML markup for the specified partial view.

public static System.Threading.Tasks.Task RenderPartialAsync (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData);
static member RenderPartialAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary -> System.Threading.Tasks.Task
<Extension()>
Public Function RenderPartialAsync (htmlHelper As IHtmlHelper, partialViewName As String, viewData As ViewDataDictionary) As Task

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String String String

The name or path of the partial view used to create the HTML markup. Must not be null.

Returns

A Task that renders the created HTML when it executes.

Remarks

In this context, "renders" means the method writes its output using Writer.

RenderPartialAsync(IHtmlHelper, String, Object) RenderPartialAsync(IHtmlHelper, String, Object) RenderPartialAsync(IHtmlHelper, String, Object)

Renders HTML markup for the specified partial view.

public static System.Threading.Tasks.Task RenderPartialAsync (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model);
static member RenderPartialAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj -> System.Threading.Tasks.Task
<Extension()>
Public Function RenderPartialAsync (htmlHelper As IHtmlHelper, partialViewName As String, model As Object) As Task

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String String String

The name or path of the partial view used to create the HTML markup. Must not be null.

model
Object Object Object

A model to pass into the partial view.

Returns

A Task that renders the created HTML when it executes.

Remarks

In this context, "renders" means the method writes its output using Writer.

Applies to