9 references to SectionId
Microsoft.AspNetCore.Components (6)
Sections\SectionOutlet.cs (6)
9
/// Renders content provided by <see cref="SectionContent"/> components with matching <see cref="
SectionId
"/>s.
45
if (SectionName is not null &&
SectionId
is not null)
47
throw new InvalidOperationException($"{nameof(SectionOutlet)} requires that '{nameof(SectionName)}' and '{nameof(
SectionId
)}' cannot both have non-null values.");
53
else if (
SectionId
is not null)
55
identifier =
SectionId
;
59
throw new InvalidOperationException($"{nameof(SectionOutlet)} requires a non-null value either for '{nameof(SectionName)}' or '{nameof(
SectionId
)}'.");
Microsoft.AspNetCore.Components.Web (2)
Head\HeadOutlet.cs (2)
40
builder.AddComponentParameter(1, nameof(SectionOutlet.
SectionId
), TitleSectionId);
55
builder.AddComponentParameter(7, nameof(SectionOutlet.
SectionId
), HeadSectionId);
Microsoft.AspNetCore.Components.Web.Tests (1)
HtmlRendering\HtmlRendererTest.cs (1)
813
{ nameof(SectionOutlet.
SectionId
), "testsection" }