HtmlHelperPartialExtensions.Partial 方法

定义

重载

Partial(IHtmlHelper, String)

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

Partial(IHtmlHelper, String, ViewDataDictionary)

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

Partial(IHtmlHelper, String, Object)

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

Partial(IHtmlHelper, String, Object, ViewDataDictionary)

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

Partial(IHtmlHelper, String)

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

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

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

参数

htmlHelper
IHtmlHelper

IHtmlHelper此方法扩展的实例。

partialViewName
String

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

返回

返回包含创建的 HTML 的新 IHtmlContent 实例。

注解

此方法同步调用 并阻止 PartialAsync(String, Object, ViewDataDictionary)

适用于

Partial(IHtmlHelper, String, ViewDataDictionary)

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

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

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

参数

htmlHelper
IHtmlHelper

IHtmlHelper此方法扩展的实例。

partialViewName
String

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

viewData
ViewDataDictionary

ViewDataDictionary要传入分部视图的 。

返回

返回包含创建的 HTML 的新 IHtmlContent 实例。

注解

此方法同步调用 并阻止 PartialAsync(String, Object, ViewDataDictionary)

适用于

Partial(IHtmlHelper, String, Object)

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

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

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

参数

htmlHelper
IHtmlHelper

IHtmlHelper此方法扩展的实例。

partialViewName
String

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

model
Object

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

返回

返回包含创建的 HTML 的新 IHtmlContent 实例。

注解

此方法同步调用 并阻止 PartialAsync(String, Object, ViewDataDictionary)

适用于

Partial(IHtmlHelper, String, Object, ViewDataDictionary)

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

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

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

参数

htmlHelper
IHtmlHelper

IHtmlHelper此方法扩展的实例。

partialViewName
String

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

model
Object

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

viewData
ViewDataDictionary

ViewDataDictionary要传入分部视图的 。

返回

返回包含创建的 HTML 的新 IHtmlContent 实例。

注解

此方法同步调用 并阻止 PartialAsync(String, Object, ViewDataDictionary)

适用于