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
htmlHelperHtmlHelperThe HTML helper instance that this method extends.
partialViewNamestringThe 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
htmlHelperHtmlHelperThe HTML helper instance that this method extends.
partialViewNamestringThe name of the partial view to render.
modelobjectThe 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
htmlHelperHtmlHelperThe HTML helper instance that this method extends.
partialViewNamestringThe name of the partial view.
modelobjectThe model for the partial view.
viewDataViewDataDictionaryThe 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
htmlHelperHtmlHelperThe HTML helper instance that this method extends.
partialViewNamestringThe name of the partial view to render.
viewDataViewDataDictionaryThe view data dictionary for the partial view.
Returns
- MvcHtmlString
The partial view that is rendered as an HTML-encoded string.