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)
422
v.Write(v.
RenderSection
("bar"));
444
ex = Assert.Throws<InvalidOperationException>(() => v.
RenderSection
("bar"));
462
v.
RenderSection
("bar");
521
v.
RenderSection
("baz");
545
v.
RenderSection
("baz");
569
v.
RenderSection
("header");
570
v.
RenderSection
("header");
617
v.
RenderSection
("header");
766
v.
RenderSection
(sectionA);
767
v.
RenderSection
(sectionB);
796
v.Write(v.
RenderSection
("header"));
800
v.Write(v.
RenderSection
("footer"));
RazorViewTest.cs (14)
676
v.Write(v.
RenderSection
("head"));
680
v.Write(v.
RenderSection
("foot"));
789
v.
RenderSection
("foo");
854
v.
RenderSection
("sectionB");
990
v.
RenderSection
("foo");
1083
v.Write(v.
RenderSection
("foo"));
1094
v.Write(v.
RenderSection
("bar"));
1153
v.Write(v.
RenderSection
("foo"));
1166
v.Write(v.
RenderSection
("bar"));
1324
await v.Output.WriteLineAsync(htmlEncoder.Encode(v.
RenderSection
("foo").ToString()));
1334
v.Write(v.
RenderSection
("foo"));
1393
v.Write(v.
RenderSection
("foo"));
1448
v.Write(v.
RenderSection
("foo"));
1526
v.Write(v.
RenderSection
("foo"));