HtmlContentBuilderExtensions.SetHtmlContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetHtmlContent(IHtmlContentBuilder, IHtmlContent) |
Sets the content to the IHtmlContent value. |
SetHtmlContent(IHtmlContentBuilder, String) |
Sets the content to the String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed. |
SetHtmlContent(IHtmlContentBuilder, IHtmlContent)
Sets the content to the IHtmlContent value.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ SetHtmlContent(Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ builder, Microsoft::AspNetCore::Html::IHtmlContent ^ content);
public static Microsoft.AspNetCore.Html.IHtmlContentBuilder SetHtmlContent (this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, Microsoft.AspNetCore.Html.IHtmlContent content);
static member SetHtmlContent : Microsoft.AspNetCore.Html.IHtmlContentBuilder * Microsoft.AspNetCore.Html.IHtmlContent -> Microsoft.AspNetCore.Html.IHtmlContentBuilder
<Extension()>
Public Function SetHtmlContent (builder As IHtmlContentBuilder, content As IHtmlContent) As IHtmlContentBuilder
Parameters
- builder
- IHtmlContentBuilder
The IHtmlContentBuilder.
- content
- IHtmlContent
The IHtmlContent value that replaces the content.
Returns
The IHtmlContentBuilder.
Applies to
SetHtmlContent(IHtmlContentBuilder, String)
Sets the content to the String value. The value is treated as HTML encoded as-provided, and no further encoding will be performed.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ SetHtmlContent(Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ builder, System::String ^ encoded);
public static Microsoft.AspNetCore.Html.IHtmlContentBuilder SetHtmlContent (this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string encoded);
static member SetHtmlContent : Microsoft.AspNetCore.Html.IHtmlContentBuilder * string -> Microsoft.AspNetCore.Html.IHtmlContentBuilder
<Extension()>
Public Function SetHtmlContent (builder As IHtmlContentBuilder, encoded As String) As IHtmlContentBuilder
Parameters
- builder
- IHtmlContentBuilder
The IHtmlContentBuilder.
Returns
The IHtmlContentBuilder.