HtmlContentBuilderExtensions.SetContent(IHtmlContentBuilder, String) 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.
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
- builder
- IHtmlContentBuilder
The IHtmlContentBuilder.
Returns
The IHtmlContentBuilder.