1 write to Name
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\Mapping\SupplyParameterFromFormTest.cs (1)
38
Name
= "scope-name",
14 references to Name
Microsoft.AspNetCore.Components.Web (7)
Forms\Mapping\FormMappingScope.cs (7)
42
if (string.IsNullOrEmpty(
Name
))
44
throw new InvalidOperationException($"The {nameof(FormMappingScope)} component requires a nonempty {nameof(
Name
)} parameter value.");
46
else if (
Name
.StartsWith('['))
51
throw new InvalidOperationException($"The mapping scope name '{
Name
}' starts with a disallowed character.");
54
_cascadingValueSupplier = new SupplyParameterFromFormValueProvider(FormValueModelBinder,
Name
);
56
else if (!string.Equals(
Name
, _cascadingValueSupplier.MappingScopeName))
58
throw new InvalidOperationException($"{nameof(FormMappingScope)} '{nameof(
Name
)}' can't change after initialization.");
Microsoft.AspNetCore.Components.Web.Tests (7)
Forms\EditFormTest.cs (1)
245
builder.AddComponentParameter(1, nameof(FormMappingScope.
Name
), MappingContextName);
Forms\Mapping\FormMappingScopeTest.cs (5)
33
builder.AddAttribute(1, nameof(FormMappingScope.
Name
), "named-context");
55
b.AddAttribute(1, nameof(FormMappingScope.
Name
), "child-context");
63
builder.AddAttribute(1, nameof(FormMappingScope.
Name
), "parent-context");
85
builder.AddAttribute(1, nameof(FormMappingScope.
Name
), name);
120
builder.AddAttribute(1, nameof(FormMappingScope.
Name
), contextName);
HtmlRendering\HtmlRendererTest.cs (1)
1089
rtb.AddComponentParameter(1, nameof(FormMappingScope.
Name
), "myscope");