共用方式為


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。

實作

適用於