Class XhtmlStringExtensions
Contains extension methods related to XhtmlString for Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.
Inheritance
Namespace: EPiServer.Web.Mvc.Html
Assembly: EPiServer.Cms.AspNetCore.HtmlHelpers.dll
Version: 12.0.3Syntax
public static class XhtmlStringExtensions : Object
Methods
RenderXhtmlString(IHtmlHelper, XhtmlString)
Writes the value of the specified XhtmlString to the view context's output stream.
Declaration
public static void RenderXhtmlString(this IHtmlHelper htmlHelper, XhtmlString xhtmlString)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | htmlHelper | The HTML helper instance that this method extends. |
| XhtmlString | xhtmlString | The XHTML string whose value to write. |
Remarks
To create the return value the property's permanent links are converted to external format, dynamic content is rendered and personalized content considered.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
RenderXhtmlString(IHtmlHelper, XhtmlString, VirtualPathArguments)
Writes the value of the specified XhtmlString to the view context's output stream.
Declaration
public static void RenderXhtmlString(this IHtmlHelper htmlHelper, XhtmlString xhtmlString, VirtualPathArguments virtualPathArguments)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | htmlHelper | The HTML helper instance that this method extends. |
| XhtmlString | xhtmlString | The XHTML string whose value to write. |
| VirtualPathArguments | virtualPathArguments | Set the ForceAbsolute attribute to true if you want to force to use the absolute url. Set the ForceCanonical attribute to true if you want to force to use the canonical url. |
Remarks
To create the return value the property's permanent links are converted to external format, dynamic content is rendered and personalized content considered.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
XhtmlString(IHtmlHelper, XhtmlString)
Returns the value of the specified XhtmlString as a string.
Declaration
public static IHtmlContent XhtmlString(this IHtmlHelper htmlHelper, XhtmlString xhtmlString)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | htmlHelper | The HTML helper instance that this method extends. |
| XhtmlString | xhtmlString | The XHTML string whose value to write. |
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Html.IHtmlContent | The value of the |
Remarks
To create the return value the property's permanent links are converted to external format, dynamic content is rendered and personalized content considered.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
XhtmlString(IHtmlHelper, XhtmlString, VirtualPathArguments)
Returns the value of the specified XhtmlString as a string.
Declaration
public static IHtmlContent XhtmlString(this IHtmlHelper htmlHelper, XhtmlString xhtmlString, VirtualPathArguments virtualPathArguments)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | htmlHelper | The HTML helper instance that this method extends. |
| XhtmlString | xhtmlString | The XHTML string whose value to write. |
| VirtualPathArguments | virtualPathArguments | Set the ForceAbsolute attribute to true if you want to force the link is absolute. Set the ForceCanonical attribute to true if you want to force the link is canonical. |
Returns
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Html.IHtmlContent | The value of the |
Remarks
To create the return value the property's permanent links are converted to external format, dynamic content is rendered and personalized content considered.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|