HtmlHelper.RenderPartialAsync(String, Object, ViewDataDictionary) 方法

定义

呈现指定分部视图的 HTML 标记。

public:
 virtual 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
override this.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

参数

partialViewName
String

用于创建 HTML 标记的部分视图的名称或路径。 不得为 null

model
Object

要传入分部视图的模型。

viewData
ViewDataDictionary

ViewDataDictionary 传入分部视图的 。

返回

一个 , Task 它在执行时呈现所创建的 HTML。

实现

适用于