HtmlHelperPartialExtensions.Partial HtmlHelperPartialExtensions.Partial HtmlHelperPartialExtensions.Partial Method

Definition

Overloads

Partial(IHtmlHelper, String) Partial(IHtmlHelper, String) Partial(IHtmlHelper, String)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, ViewDataDictionary) Partial(IHtmlHelper, String, ViewDataDictionary) Partial(IHtmlHelper, String, ViewDataDictionary)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, Object) Partial(IHtmlHelper, String, Object) Partial(IHtmlHelper, String, Object)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, Object, ViewDataDictionary) Partial(IHtmlHelper, String, Object, ViewDataDictionary) Partial(IHtmlHelper, String, Object, ViewDataDictionary)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String) Partial(IHtmlHelper, String) Partial(IHtmlHelper, String)

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String String String

The name or path of the partial view used to create the HTML markup. Must not be null.

Returns

Returns a new IHtmlContent instance containing the created HTML.

Remarks

This method synchronously calls and blocks on PartialAsync(String, Object, ViewDataDictionary)

Partial(IHtmlHelper, String, ViewDataDictionary) Partial(IHtmlHelper, String, ViewDataDictionary) Partial(IHtmlHelper, String, ViewDataDictionary)

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String String String

The name or path of the partial view used to create the HTML markup. Must not be null.

Returns

Returns a new IHtmlContent instance containing the created HTML.

Remarks

This method synchronously calls and blocks on PartialAsync(String, Object, ViewDataDictionary)

Partial(IHtmlHelper, String, Object) Partial(IHtmlHelper, String, Object) Partial(IHtmlHelper, String, Object)

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String String String

The name or path of the partial view used to create the HTML markup. Must not be null.

model
Object Object Object

A model to pass into the partial view.

Returns

Returns a new IHtmlContent instance containing the created HTML.

Remarks

This method synchronously calls and blocks on PartialAsync(String, Object, ViewDataDictionary)

Partial(IHtmlHelper, String, Object, ViewDataDictionary) Partial(IHtmlHelper, String, Object, ViewDataDictionary) Partial(IHtmlHelper, String, Object, ViewDataDictionary)

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper IHtmlHelper IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String String String

The name or path of the partial view used to create the HTML markup. Must not be null.

model
Object Object Object

A model to pass into the partial view.

Returns

Returns a new IHtmlContent instance containing the created HTML.

Remarks

This method synchronously calls and blocks on PartialAsync(String, Object, ViewDataDictionary)

Applies to