Class PartialExtensions
Represents the functionality to render a partial view as an HTML-encoded string.
public static class PartialExtensions
- Inheritance
-
PartialExtensions
- Inherited Members
Methods
Partial(HtmlHelper, string)
Renders the specified partial view as an HTML-encoded string.
public static MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName)
Parameters
htmlHelper
HtmlHelperThe HTML helper instance that this method extends.
partialViewName
stringThe name of the partial view to render.
Returns
- MvcHtmlString
The partial view that is rendered as an HTML-encoded string.
Partial(HtmlHelper, string, object)
Renders the specified partial view as an HTML-encoded string.
public static MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName, object model)
Parameters
htmlHelper
HtmlHelperThe HTML helper instance that this method extends.
partialViewName
stringThe name of the partial view to render.
model
objectThe model for the partial view.
Returns
- MvcHtmlString
The partial view that is rendered as an HTML-encoded string.
Partial(HtmlHelper, string, object, ViewDataDictionary)
Renders the specified partial view as an HTML-encoded string.
public static MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName, object model, ViewDataDictionary viewData)
Parameters
htmlHelper
HtmlHelperThe HTML helper instance that this method extends.
partialViewName
stringThe name of the partial view.
model
objectThe model for the partial view.
viewData
ViewDataDictionaryThe view data dictionary for the partial view.
Returns
- MvcHtmlString
The partial view that is rendered as an HTML-encoded string.
Partial(HtmlHelper, string, ViewDataDictionary)
Renders the specified partial view as an HTML-encoded string.
public static MvcHtmlString Partial(this HtmlHelper htmlHelper, string partialViewName, ViewDataDictionary viewData)
Parameters
htmlHelper
HtmlHelperThe HTML helper instance that this method extends.
partialViewName
stringThe name of the partial view to render.
viewData
ViewDataDictionaryThe view data dictionary for the partial view.
Returns
- MvcHtmlString
The partial view that is rendered as an HTML-encoded string.