HtmlHelperPartialExtensions.PartialAsync 方法

定义

重载

PartialAsync(IHtmlHelper, String)

返回指定分部视图的 HTML 标记。

PartialAsync(IHtmlHelper, String, ViewDataDictionary)

返回指定分部视图的 HTML 标记。

PartialAsync(IHtmlHelper, String, Object)

返回指定分部视图的 HTML 标记。

PartialAsync(IHtmlHelper, String)

Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs

返回指定分部视图的 HTML 标记。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ PartialAsync(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ partialViewName);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> PartialAsync (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName);
static member PartialAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function PartialAsync (htmlHelper As IHtmlHelper, partialViewName As String) As Task(Of IHtmlContent)

参数

htmlHelper
IHtmlHelper

IHtmlHelper此方法扩展的实例。

partialViewName
String

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

返回

完成后 Task 返回包含所创建 HTML 的新 IHtmlContent 实例。

适用于

PartialAsync(IHtmlHelper, String, ViewDataDictionary)

Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs

返回指定分部视图的 HTML 标记。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ PartialAsync(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ partialViewName, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> PartialAsync (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData);
static member PartialAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function PartialAsync (htmlHelper As IHtmlHelper, partialViewName As String, viewData As ViewDataDictionary) As Task(Of IHtmlContent)

参数

htmlHelper
IHtmlHelper

IHtmlHelper此方法扩展的实例。

partialViewName
String

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

viewData
ViewDataDictionary

ViewDataDictionary要传入分部视图的 。

返回

完成后 Task 返回包含所创建 HTML 的新 IHtmlContent 实例。

适用于

PartialAsync(IHtmlHelper, String, Object)

Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs

返回指定分部视图的 HTML 标记。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ PartialAsync(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ htmlHelper, System::String ^ partialViewName, System::Object ^ model);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> PartialAsync (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper, string partialViewName, object model);
static member PartialAsync : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function PartialAsync (htmlHelper As IHtmlHelper, partialViewName As String, model As Object) As Task(Of IHtmlContent)

参数

htmlHelper
IHtmlHelper

IHtmlHelper此方法扩展的实例。

partialViewName
String

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

model
Object

要传递到分部视图的模型。

返回

完成后 Task 返回包含所创建 HTML 的新 IHtmlContent 实例。

适用于