Share via


PartialExtensions.Partial Method

Definition

Overloads

Partial(HtmlHelper, String)

Renders the specified partial view as an HTML-encoded string.

Partial(HtmlHelper, String, Object)

Renders the specified partial view as an HTML-encoded string.

Partial(HtmlHelper, String, ViewDataDictionary)

Renders the specified partial view as an HTML-encoded string.

Partial(HtmlHelper, String, Object, ViewDataDictionary)

Renders the specified partial view as an HTML-encoded string.

Partial(HtmlHelper, String)

Renders the specified partial view as an HTML-encoded string.

public static System.Web.Mvc.MvcHtmlString Partial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName);
static member Partial : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Partial (htmlHelper As HtmlHelper, partialViewName As String) As MvcHtmlString

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String

The name of the partial view to render.

Returns

The partial view that is rendered as an HTML-encoded string.

Applies to

Partial(HtmlHelper, String, Object)

Renders the specified partial view as an HTML-encoded string.

public static System.Web.Mvc.MvcHtmlString Partial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName, object model);
static member Partial : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Partial (htmlHelper As HtmlHelper, partialViewName As String, model As Object) As MvcHtmlString

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String

The name of the partial view to render.

model
Object

The model for the partial view.

Returns

The partial view that is rendered as an HTML-encoded string.

Applies to

Partial(HtmlHelper, String, ViewDataDictionary)

Renders the specified partial view as an HTML-encoded string.

public static System.Web.Mvc.MvcHtmlString Partial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName, System.Web.Mvc.ViewDataDictionary viewData);
static member Partial : System.Web.Mvc.HtmlHelper * string * System.Web.Mvc.ViewDataDictionary -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Partial (htmlHelper As HtmlHelper, partialViewName As String, viewData As ViewDataDictionary) As MvcHtmlString

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String

The name of the partial view to render.

viewData
ViewDataDictionary

The view data dictionary for the partial view.

Returns

The partial view that is rendered as an HTML-encoded string.

Applies to

Partial(HtmlHelper, String, Object, ViewDataDictionary)

Renders the specified partial view as an HTML-encoded string.

public static System.Web.Mvc.MvcHtmlString Partial (this System.Web.Mvc.HtmlHelper htmlHelper, string partialViewName, object model, System.Web.Mvc.ViewDataDictionary viewData);
static member Partial : System.Web.Mvc.HtmlHelper * string * obj * System.Web.Mvc.ViewDataDictionary -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function Partial (htmlHelper As HtmlHelper, partialViewName As String, model As Object, viewData As ViewDataDictionary) As MvcHtmlString

Parameters

htmlHelper
HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String

The name of the partial view.

model
Object

The model for the partial view.

viewData
ViewDataDictionary

The view data dictionary for the partial view.

Returns

The partial view that is rendered as an HTML-encoded string.

Applies to