HtmlHelperPartialExtensions Class

PartialView-related extensions for Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.

Namespace
Microsoft.AspNetCore.Mvc.Rendering
Assemblies
  • Microsoft.AspNetCore.Mvc.ViewFeatures

Syntax

public class HtmlHelperPartialExtensions
class Microsoft.AspNetCore.Mvc.Rendering.HtmlHelperPartialExtensions

Methods

Partial(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String)

Returns HTML markup for the specified partial view.

Arguments:
Return type:

Microsoft.AspNetCore.Html.IHtmlContent

Returns:

Returns a new Microsoft.AspNetCore.Html.IHtmlContent instance containing the created HTML.

public static IHtmlContent Partial(this IHtmlHelper htmlHelper, string partialViewName)
Partial(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)

Returns HTML markup for the specified partial view.

Arguments:
Return type:

Microsoft.AspNetCore.Html.IHtmlContent

Returns:

Returns a new Microsoft.AspNetCore.Html.IHtmlContent instance containing the created HTML.

public static IHtmlContent Partial(this IHtmlHelper htmlHelper, string partialViewName, ViewDataDictionary viewData)
Partial(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, System.Object)

Returns HTML markup for the specified partial view.

Arguments:
Return type:

Microsoft.AspNetCore.Html.IHtmlContent

Returns:

Returns a new Microsoft.AspNetCore.Html.IHtmlContent instance containing the created HTML.

public static IHtmlContent Partial(this IHtmlHelper htmlHelper, string partialViewName, object model)
Partial(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, System.Object, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)

Returns HTML markup for the specified partial view.

Arguments:
Return type:

Microsoft.AspNetCore.Html.IHtmlContent

Returns:

Returns a new Microsoft.AspNetCore.Html.IHtmlContent instance containing the created HTML.

public static IHtmlContent Partial(this IHtmlHelper htmlHelper, string partialViewName, object model, ViewDataDictionary viewData)
PartialAsync(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String)

Returns HTML markup for the specified partial view.

Arguments:
Return type:

System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>

Returns:

A System.Threading.Tasks.Task that on completion returns a new Microsoft.AspNetCore.Html.IHtmlContent instance containing the created HTML.

public static Task<IHtmlContent> PartialAsync(this IHtmlHelper htmlHelper, string partialViewName)
PartialAsync(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)

Returns HTML markup for the specified partial view.

Arguments:
Return type:

System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>

Returns:

A System.Threading.Tasks.Task that on completion returns a new Microsoft.AspNetCore.Html.IHtmlContent instance containing the created HTML.

public static Task<IHtmlContent> PartialAsync(this IHtmlHelper htmlHelper, string partialViewName, ViewDataDictionary viewData)
PartialAsync(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, System.Object)

Returns HTML markup for the specified partial view.

Arguments:
Return type:

System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>

Returns:

A System.Threading.Tasks.Task that on completion returns a new Microsoft.AspNetCore.Html.IHtmlContent instance containing the created HTML.

public static Task<IHtmlContent> PartialAsync(this IHtmlHelper htmlHelper, string partialViewName, object model)
RenderPartial(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String)

Renders HTML markup for the specified partial view.

Arguments:
public static void RenderPartial(this IHtmlHelper htmlHelper, string partialViewName)
RenderPartial(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)

Renders HTML markup for the specified partial view.

Arguments:
public static void RenderPartial(this IHtmlHelper htmlHelper, string partialViewName, ViewDataDictionary viewData)
RenderPartial(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, System.Object)

Renders HTML markup for the specified partial view.

Arguments:
public static void RenderPartial(this IHtmlHelper htmlHelper, string partialViewName, object model)
RenderPartialAsync(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String)

Renders HTML markup for the specified partial view.

Arguments:
Return type:

System.Threading.Tasks.Task

Returns:

A System.Threading.Tasks.Task that renders the created HTML when it executes.

public static Task RenderPartialAsync(this IHtmlHelper htmlHelper, string partialViewName)
RenderPartialAsync(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)

Renders HTML markup for the specified partial view.

Arguments:
Return type:

System.Threading.Tasks.Task

Returns:

A System.Threading.Tasks.Task that renders the created HTML when it executes.

public static Task RenderPartialAsync(this IHtmlHelper htmlHelper, string partialViewName, ViewDataDictionary viewData)
RenderPartialAsync(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper, System.String, System.Object)

Renders HTML markup for the specified partial view.

Arguments:
Return type:

System.Threading.Tasks.Task

Returns:

A System.Threading.Tasks.Task that renders the created HTML when it executes.

public static Task RenderPartialAsync(this IHtmlHelper htmlHelper, string partialViewName, object model)