2 implementations of
Microsoft.AspNetCore.Http (1)
FormCollection.cs (1)
66public StringValues this[string key]
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
58public StringValues this[string key] => StringValues.Empty;
37 references to
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenStore.cs (1)
73requestToken = form[_options.FormFieldName];
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\EndpointHtmlRenderer.cs (2)
232public StringValues this[string key] => _form[key]; 243result.Add(form[key]);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
MigrationsEndPointMiddleware.cs (1)
98var contextTypeName = form["context"].ToString();
Microsoft.AspNetCore.Http.Extensions.Tests (6)
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (6)
650Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 679Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 682Assert.Equal(httpContext.Request.Form["name"][0], httpContext.Items["name"]); 712Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 742Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 772Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]);
Microsoft.AspNetCore.Http.Tests (8)
Features\FormFeatureTests.cs (8)
63Assert.Equal("bar", formCollection["foo"]); 64Assert.Equal("2", formCollection["baz"]); 105Assert.Equal("bar", formCollection["foo"]); 106Assert.Equal("2", formCollection["baz"]); 259Assert.Equal("Foo", formCollection["description"]); 344Assert.Equal("Foo", formCollection["description"]); 429Assert.Equal("Foo", formCollection["description"]); 578Assert.Equal("Foo", formCollection["description"]);
Microsoft.AspNetCore.HttpOverrides (1)
HttpMethodOverrideMiddleware.cs (1)
62var methodType = form[_options.FormFieldName!];
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\FormValueProvider.cs (1)
94var values = _values[key];
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\FormCollectionModelBinderTest.cs (2)
36Assert.Equal("value1", form["field1"]); 37Assert.Equal("value2", form["field2"]);
Microsoft.AspNetCore.Routing.FunctionalTests (12)
MinimalFormTests.cs (12)
90Name = form["name"], 91IsCompleted = bool.Parse(form["isComplete"]), 92DueDate = DateTime.Parse(form["dueDate"], CultureInfo.InvariantCulture) 352Name = form["name"], 353IsCompleted = bool.Parse(form["isComplete"]), 354DueDate = DateTime.Parse(form["dueDate"], CultureInfo.InvariantCulture) 366Name = form["name"], 367IsCompleted = bool.Parse(form["isComplete"]), 368DueDate = DateTime.Parse(form["dueDate"], CultureInfo.InvariantCulture) 380Name = form["name"], 381IsCompleted = bool.Parse(form["isComplete"]), 382DueDate = DateTime.Parse(form["dueDate"], CultureInfo.InvariantCulture)
MinimalFormSample (3)
Program.cs (3)
57var name = form["name"].ToString(); 58var dueDate = DateTime.Parse(form["dueDate"].ToString(), CultureInfo.InvariantCulture); 59var isCompleted = bool.Parse(form["isCompleted"].ToString());