IHtmlHelper.PartialAsync(String, Object, ViewDataDictionary) IHtmlHelper.PartialAsync(String, Object, ViewDataDictionary) IHtmlHelper.PartialAsync(String, Object, ViewDataDictionary) Method

Definition

Returns HTML markup for the specified partial view.

public System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> PartialAsync (string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData);
abstract member PartialAsync : string * obj * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
Public Function PartialAsync (partialViewName As String, model As Object, viewData As ViewDataDictionary) As Task(Of IHtmlContent)

Parameters

partialViewName
String String String

The name 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 on completion returns a new IHtmlContent instance containing the created HTML.

Applies to