IHtmlHelper.RenderPartialAsync(String, Object, ViewDataDictionary) Method

Definition

Renders HTML markup for the specified partial view.

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

Parameters

partialViewName
String

The name or path 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 renders the created HTML when it executes.

Remarks

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

Applies to