System.Web.WebPages.WebPageBase.Write C# (CSharp) Method

Write() public method

public Write ( System.Web.WebPages.HelperResult result ) : void
result System.Web.WebPages.HelperResult
return void
        public override void Write(HelperResult result)
        {
            WriteTo(Output, result);
        }

Same methods

WebPageBase::Write ( object value ) : void

Usage Example

Beispiel #1
0
 private static void RenderSectionAsLayoutRegion(WebPageBase webPage, string partialViewHtml, string sectionName)
 {
     webPage.DefineSection(
         sectionName,
         () =>
         {
             Action<TextWriter> writerAction = tw => tw.Write(partialViewHtml);
             var result = new HelperResult(writerAction);
             webPage.Write(result);
         });
 }