HtmlContentBuilderExtensions.SetContent(IHtmlContentBuilder, String) Metoda

Definicja

Ustawia zawartość na String wartość. Wartość jest traktowana jako nieprzekodowana jako podana i będzie kodowana HTML przed zapisem w danych wyjściowych.

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

Parametry

unencoded
String

Wartość String zastępująca zawartość.

Zwraca

Element IHtmlContentBuilder.

Dotyczy