Share via


HtmlContentBuilderExtensions.SetContent(IHtmlContentBuilder, String) Method

Definition

Sets the content to the String value. The value is treated as unencoded as-provided, and will be HTML encoded before writing to output.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ SetContent(Microsoft::AspNetCore::Html::IHtmlContentBuilder ^ builder, System::String ^ unencoded);
public static Microsoft.AspNetCore.Html.IHtmlContentBuilder SetContent (this Microsoft.AspNetCore.Html.IHtmlContentBuilder builder, string unencoded);
static member SetContent : Microsoft.AspNetCore.Html.IHtmlContentBuilder * string -> Microsoft.AspNetCore.Html.IHtmlContentBuilder
<Extension()>
Public Function SetContent (builder As IHtmlContentBuilder, unencoded As String) As IHtmlContentBuilder

Parameters

unencoded
String

The String value that replaces the content.

Returns

The IHtmlContentBuilder.

Applies to