HtmlContentBuilderExtensions.SetContent(IHtmlContentBuilder, String) 메서드

정의

콘텐츠를 값으로 String 설정합니다. 값은 제공된 대로 인코딩되지 않은 것으로 처리되며 출력에 쓰기 전에 HTML 인코딩됩니다.

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

매개 변수

unencoded
String

String 콘텐츠를 대체하는 값입니다.

반환

IHtmlContentBuilder

적용 대상