PartialExtensions.Partial PartialExtensions.Partial Method

Definition

Overloads

Partial(HtmlHelper, String) Partial(HtmlHelper, String)

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

Partial(HtmlHelper, String, Object) Partial(HtmlHelper, String, Object)

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

Partial(HtmlHelper, String, ViewDataDictionary) Partial(HtmlHelper, String, ViewDataDictionary)

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

Partial(HtmlHelper, String, Object, ViewDataDictionary) Partial(HtmlHelper, String, Object, ViewDataDictionary)

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

Partial(HtmlHelper, 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

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String String

The name of the partial view to render.

Returns

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

Partial(HtmlHelper, String, Object) 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

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String String

The name of the partial view to render.

model
Object Object

The model for the partial view.

Returns

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

Partial(HtmlHelper, String, ViewDataDictionary) 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

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String String

The name of the partial view to render.

viewData
ViewDataDictionary ViewDataDictionary

The view data dictionary for the partial view.

Returns

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

Partial(HtmlHelper, String, Object, ViewDataDictionary) 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

Parameters

htmlHelper
HtmlHelper HtmlHelper

The HTML helper instance that this method extends.

partialViewName
String String

The name of the partial view.

model
Object Object

The model for the partial view.

viewData
ViewDataDictionary ViewDataDictionary

The view data dictionary for the partial view.

Returns

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

Applies to