RazorPage.StartTagHelperWritingScope(HtmlEncoder) Method

Definition

Starts a new writing scope and optionally overrides HtmlEncoder within that scope.

public:
 void StartTagHelperWritingScope(System::Text::Encodings::Web::HtmlEncoder ^ encoder);
public void StartTagHelperWritingScope (System.Text.Encodings.Web.HtmlEncoder encoder);
member this.StartTagHelperWritingScope : System.Text.Encodings.Web.HtmlEncoder -> unit
Public Sub StartTagHelperWritingScope (encoder As HtmlEncoder)

Parameters

encoder
HtmlEncoder

The HtmlEncoder to use when this RazorPage handles non-IHtmlContent C# expressions. If null, does not change HtmlEncoder.

Remarks

All writes to the Output or Writer after calling this method will be buffered until EndTagHelperWritingScope() is called.

Applies to