HtmlHelperPartialExtensions.Partial Method

Definition

Overloads

Partial(IHtmlHelper, String)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, ViewDataDictionary)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, Object)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String, Object, ViewDataDictionary)

Returns HTML markup for the specified partial view.

Partial(IHtmlHelper, String)

Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
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)

Applies to

Partial(IHtmlHelper, String, ViewDataDictionary)

Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String

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

viewData
ViewDataDictionary

A ViewDataDictionary 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

Partial(IHtmlHelper, String, Object)

Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String

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

model
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

Partial(IHtmlHelper, String, Object, ViewDataDictionary)

Source:
HtmlHelperPartialExtensions.cs
Source:
HtmlHelperPartialExtensions.cs

Returns HTML markup for the specified partial view.

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

Parameters

htmlHelper
IHtmlHelper

The IHtmlHelper instance this method extends.

partialViewName
String

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

model
Object

A model to pass into the partial view.

viewData
ViewDataDictionary

A ViewDataDictionary 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