Partager via


HtmlContentBuilderExtensions.SetHtmlContent Méthode

Définition

Surcharges

SetHtmlContent(IHtmlContentBuilder, IHtmlContent)

Définit le contenu sur la IHtmlContent valeur .

SetHtmlContent(IHtmlContentBuilder, String)

Définit le contenu sur la String valeur . La valeur est traitée comme encodée en HTML comme fournie, et aucun encodage supplémentaire n’est effectué.

SetHtmlContent(IHtmlContentBuilder, IHtmlContent)

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

Définit le contenu sur la IHtmlContent valeur .

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

Paramètres

content
IHtmlContent

Valeur IHtmlContent qui remplace le contenu.

Retours

L’IHtmlContentBuilderopérateur

S’applique à

SetHtmlContent(IHtmlContentBuilder, String)

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

Définit le contenu sur la String valeur . La valeur est traitée comme encodée en HTML comme fournie, et aucun encodage supplémentaire n’est effectué.

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

Paramètres

encoded
String

Code HTML encodé String qui remplace le contenu.

Retours

L’IHtmlContentBuilderopérateur

S’applique à