Condividi tramite


HtmlContentBuilderExtensions.SetHtmlContent Metodo

Definizione

Overload

SetHtmlContent(IHtmlContentBuilder, IHtmlContent)

Imposta il contenuto sul IHtmlContent valore.

SetHtmlContent(IHtmlContentBuilder, String)

Imposta il contenuto sul String valore. Il valore viene considerato come codificato html come specificato e non verrà eseguita alcuna codifica aggiuntiva.

SetHtmlContent(IHtmlContentBuilder, IHtmlContent)

Origine:
HtmlContentBuilderExtensions.cs
Origine:
HtmlContentBuilderExtensions.cs
Origine:
HtmlContentBuilderExtensions.cs

Imposta il contenuto sul IHtmlContent valore.

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

Parametri

content
IHtmlContent

Valore IHtmlContent che sostituisce il contenuto.

Restituisce

Oggetto IHtmlContentBuilder.

Si applica a

SetHtmlContent(IHtmlContentBuilder, String)

Origine:
HtmlContentBuilderExtensions.cs
Origine:
HtmlContentBuilderExtensions.cs
Origine:
HtmlContentBuilderExtensions.cs

Imposta il contenuto sul String valore. Il valore viene considerato come codificato html come specificato e non verrà eseguita alcuna codifica aggiuntiva.

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

Parametri

encoded
String

Codifica String HTML che sostituisce il contenuto.

Restituisce

Oggetto IHtmlContentBuilder.

Si applica a