RazorPageBase.StartTagHelperWritingScope(HtmlEncoder) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for