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(System::String ^ partialViewName, System::Object ^ model, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData);
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

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

model
Object

A model to pass into the partial view.

viewData
ViewDataDictionary

A ViewDataDictionary to pass into the partial view.

Returns

A Task that on completion returns a new IHtmlContent instance containing the created HTML.

Applies to