Dela via


HtmlContentBuilderExtensions.SetHtmlContent Method

Definition

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)

Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs

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

content
IHtmlContent

The IHtmlContent value that replaces the content.

Returns

The IHtmlContentBuilder.

Applies to

SetHtmlContent(IHtmlContentBuilder, String)

Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs
Source:
HtmlContentBuilderExtensions.cs

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

encoded
String

The HTML encoded String that replaces the content.

Returns

The IHtmlContentBuilder.

Applies to