Compartir a través de


HtmlContentBuilderExtensions.SetHtmlContent Método

Definición

Sobrecargas

SetHtmlContent(IHtmlContentBuilder, IHtmlContent)

Establece el contenido en el IHtmlContent valor .

SetHtmlContent(IHtmlContentBuilder, String)

Establece el contenido en el String valor . El valor se trata como HTML codificado como proporcionado y no se realizará ninguna codificación adicional.

SetHtmlContent(IHtmlContentBuilder, IHtmlContent)

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

Establece el contenido en el IHtmlContent valor .

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

Parámetros

content
IHtmlContent

Valor IHtmlContent que reemplaza el contenido.

Devoluciones

IHtmlContentBuilder.

Se aplica a

SetHtmlContent(IHtmlContentBuilder, String)

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

Establece el contenido en el String valor . El valor se trata como HTML codificado como proporcionado y no se realizará ninguna codificación adicional.

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

Parámetros

encoded
String

Código HTML codificado String que reemplaza el contenido.

Devoluciones

IHtmlContentBuilder.

Se aplica a