27 references to RenderSection
Microsoft.AspNetCore.Mvc.Razor (1)
RazorPage.cs (1)
51/// <see cref="RenderSection(string)"/> or <see cref="RenderSectionAsync(string, bool)"/>.
Microsoft.AspNetCore.Mvc.Razor.Test (26)
RazorPageTest.cs (12)
422v.Write(v.RenderSection("bar")); 444ex = Assert.Throws<InvalidOperationException>(() => v.RenderSection("bar")); 462v.RenderSection("bar"); 521v.RenderSection("baz"); 545v.RenderSection("baz"); 569v.RenderSection("header"); 570v.RenderSection("header"); 617v.RenderSection("header"); 766v.RenderSection(sectionA); 767v.RenderSection(sectionB); 796v.Write(v.RenderSection("header")); 800v.Write(v.RenderSection("footer"));
RazorViewTest.cs (14)
676v.Write(v.RenderSection("head")); 680v.Write(v.RenderSection("foot")); 789v.RenderSection("foo"); 854v.RenderSection("sectionB"); 990v.RenderSection("foo"); 1083v.Write(v.RenderSection("foo")); 1094v.Write(v.RenderSection("bar")); 1153v.Write(v.RenderSection("foo")); 1166v.Write(v.RenderSection("bar")); 1324await v.Output.WriteLineAsync(htmlEncoder.Encode(v.RenderSection("foo").ToString())); 1334v.Write(v.RenderSection("foo")); 1393v.Write(v.RenderSection("foo")); 1448v.Write(v.RenderSection("foo")); 1526v.Write(v.RenderSection("foo"));