452 instantiations of QueryString
HttpAbstractions.SampleApp (1)
Program.cs (1)
18request.QueryString = new QueryString("?q1=1&q2=2");
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
EndpointHtmlRendererTest.cs (2)
762ctx.Request.QueryString = new QueryString("?query=value"); 793ctx.Request.QueryString = new QueryString("?query=value");
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesExtensions.cs (1)
173var newQueryString = queryFormat == null ? QueryString.Empty : new QueryString(formatedQueryString);
Microsoft.AspNetCore.Hosting.Tests (1)
Internal\HostingRequestStartLogTests.cs (1)
23mockRequest.Setup(request => request.QueryString).Returns(new QueryString("?query"));
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
81get { return new QueryString(HttpRequestFeature.QueryString); }
Microsoft.AspNetCore.Http.Abstractions (9)
QueryString.cs (9)
21public static readonly QueryString Empty = new QueryString(string.Empty); 81return new QueryString(string.Empty); 83return new QueryString(uriComponent); 100return new QueryString(queryValue); 117return new QueryString($"?{UrlEncoder.Default.Encode(name)}={value}"); 135return new QueryString(builder.ToString()); 165return new QueryString(builder.ToString()); 185return new QueryString(string.Concat(Value, "&", other.Value.AsSpan(1))); 206return new QueryString(builder.ToString());
Microsoft.AspNetCore.Http.Abstractions.Tests (12)
PathStringTests.cs (1)
100var query = new QueryString("?query");
QueryStringTests.cs (11)
15ExceptionAssert.ThrowsArgument(() => new QueryString("hello"), "value", "The leading '?' must be included for a non-empty query."); 21var query = new QueryString(); 25query = new QueryString(null); 29query = new QueryString(string.Empty); 37var query = new QueryString("?"); 45var query = new QueryString("?Hello=Wor#ld"); 103var q1 = new QueryString(query1); 104var q2 = new QueryString(query2); 125var q1 = new QueryString(query1); 145var queryString = new QueryString("?foo=1"); 155var queryString = new QueryString("?foo=1");
Microsoft.AspNetCore.Http.Connections.Tests (16)
HttpConnectionDispatcherTests.cs (16)
93context.Request.QueryString = new QueryString("?negotiateVersion=1"); 119context.Request.QueryString = new QueryString("?negotiateVersion=1"); 156context.Request.QueryString = new QueryString("?negotiateVersion=Invalid"); 184context.Request.QueryString = new QueryString(""); 271context.Request.QueryString = new QueryString("?negotiateVersion=1"); 860context.Request.QueryString = new QueryString("?negotiateVersion=1"); 936context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2035deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2078deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2128deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionToken}"); 2183deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}"); 2273context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2299context.Request.QueryString = new QueryString("?negotiateVersion=1&UseStatefulReconnect=true"); 2328context.Request.QueryString = new QueryString("?negotiateVersion=1"); 2357context.Request.QueryString = new QueryString("?negotiateVersion=1&UseStatefulReconnect=true"); 2789deleteContext.Request.QueryString = new QueryString($"?id={connection.ConnectionId}");
Microsoft.AspNetCore.Http.Extensions (4)
QueryBuilder.cs (1)
93return new QueryString(ToString());
UriHelper.cs (3)
33QueryString query = new QueryString(), 56QueryString query = new QueryString(), 116query = new QueryString();
Microsoft.AspNetCore.Http.Extensions.Tests (43)
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (19)
36httpContext.Request.QueryString = new QueryString("?p=1&p=1"); 197httpContext.Request.QueryString = new QueryString("?p=1&p=1"); 218httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 239httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 280httpContext.Request.QueryString = new QueryString("?p=&p="); 301httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 322httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 344httpContext.Request.QueryString = new QueryString("?p=a&p=b&p=c"); 387httpContext.Request.QueryString = new QueryString("?p=a&p=b&p=c"); 430httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 473httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 516httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 559httpContext.Request.QueryString = new QueryString("?p=0&p=1&p=2"); 601httpContext.Request.QueryString = new QueryString("?p=Item1&p=Item2"); 628httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 655httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 682httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 709httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString"); 736httpContext.Request.QueryString = new QueryString("?p=ValueFromQueryString");
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (3)
100httpContext.Request.QueryString = new QueryString("?p="); 121httpContext.Request.QueryString = new QueryString("?p1=Hello&p2=world!"); 178httpContext.Request.QueryString = new QueryString($"?{name}=test");
RequestDelegateGenerator\RequestDelegateCreationTests.RouteParameter.cs (3)
118httpContext.Request.QueryString = new QueryString($"?value={expectedBody}"); 136httpContext.Request.QueryString = new QueryString($"?value=fromQuery"); 153httpContext.Request.QueryString = new QueryString($"?value=fromQuery");
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (7)
78httpContext.Request.QueryString = new QueryString($"?p={UrlEncoder.Default.Encode(queryStringInput)}"); 116httpContext.Request.QueryString = new QueryString($"?time={UrlEncoder.Default.Encode(queryStringInput)}"); 148httpContext.Request.QueryString = new QueryString($"?time={UrlEncoder.Default.Encode(queryStringInput)}"); 173httpContext.Request.QueryString = new QueryString("?p=1"); 196httpContext.Request.QueryString = new QueryString("?p=1"); 212httpContext.Request.QueryString = new QueryString("?p=1"); 237httpContext.Request.QueryString = new QueryString("?p=Done");
UriHelperTests.cs (11)
20new QueryString("?name=val%23ue"), new FragmentString("#my%20value")); 37new QueryString("?name=val%23ue"), new FragmentString("#my%20value")); 77new QueryString(query), 91request.QueryString = new QueryString("?name=val%23ue"); 106request.QueryString = new QueryString("?name=val%23ue"); 138var query = new QueryString(); 145Assert.Equal(query, new QueryString(expectedQuery)); 155var query = new QueryString("?foo=1"); 162var resQuery = new QueryString(); 178var resQuery = new QueryString(); 190var resQuery = new QueryString();
Microsoft.AspNetCore.Http.Tests (5)
ApplicationBuilderTests.cs (1)
96httpContext.Request.QueryString = new QueryString("?query=true");
Internal\DefaultHttpRequestTests.cs (4)
160Assert.Equal(new QueryString("?name2=value2"), request.QueryString); 293context.Request.QueryString = new QueryString("?query=true"); 307context.Request.QueryString = new QueryString("?test=true"); 335context.Request.QueryString = new QueryString("?test=true");
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (1)
1961httpContext.Request.QueryString = new QueryString("?foo");
W3CLoggingMiddlewareTests.cs (1)
58httpContext.Request.QueryString = new QueryString("?foo");
Microsoft.AspNetCore.Mvc.Core.Test (1)
RequireHttpsAttributeTests.cs (1)
87requestContext.Request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
708outputFormatterContext.HttpContext.Request.QueryString = new QueryString("?indent=" + indent);
XmlSerializerOutputFormatterTest.cs (1)
92outputFormatterContext.HttpContext.Request.QueryString = new QueryString("?indent=" + indent);
Microsoft.AspNetCore.Mvc.IntegrationTests (313)
ArrayModelBinderIntegrationTest.cs (10)
26request.QueryString = new QueryString("?parameter[0]=10&parameter[1]=11"); 70request.QueryString = new QueryString("?prefix[0]=10&prefix[1]=11"); 110request.QueryString = new QueryString("?[0]=10&[1]=11"); 150request.QueryString = new QueryString("?"); 185request.QueryString = new QueryString("?parameter[0].Name=bill&parameter[1].Name=lang"); 230request.QueryString = new QueryString("?prefix[0].Name=bill&prefix[1].Name=lang"); 271request.QueryString = new QueryString("?[0].Name=bill&[1].Name=lang"); 312request.QueryString = new QueryString("?"); 349request.QueryString = new QueryString("?parameter.Name=James&parameter.Aliases[0]=bill&parameter.Aliases[1]=william"); 390request.QueryString = new QueryString("?a=b");
BindPropertyIntegrationTest.cs (7)
38request.QueryString = new QueryString("?parameter.Name=Joey"); 65request.QueryString = new QueryString("?parameter.Name=Joey"); 92request.QueryString = new QueryString("?parameter.Name=Joey"); 117request.QueryString = new QueryString($"?{parameter.Name}=Joey"); 156request.QueryString = new QueryString($"?{parameter.Name}={input.Value}"); 212request.QueryString = new QueryString($"?{propertyDescriptor.Name}={input.Value}"); 275request.QueryString = new QueryString($"?{parameter.Name}={input}");
CollectionModelBinderIntegrationTest.cs (20)
32request.QueryString = new QueryString("?parameter[0]=10&parameter[1]=11"); 80request.QueryString = new QueryString(queryString); 116request.QueryString = new QueryString(queryString); 148request.QueryString = new QueryString("?"); 188request.QueryString = new QueryString(queryString); 228request.QueryString = new QueryString(queryString); 261request.QueryString = new QueryString("?"); 299request.QueryString = new QueryString("?parameter[0].Id=10&parameter[1].Id=11"); 358request.QueryString = new QueryString("?prefix[0].Id=10&prefix[1].Id=11"); 409request.QueryString = new QueryString("?[0].Id=10&[1].Id=11"); 461new QueryString("?parameter.index=low&parameter.index=high&parameter[low]=10&parameter[high]=11"); 504request.QueryString = new QueryString("?index=low&index=high&[high].Id=11&[low].Id=10"); 555request.QueryString = new QueryString("?"); 702request.QueryString = new QueryString(queryString); 987request.QueryString = new QueryString("?a=b"); 1015request.QueryString = new QueryString("?Index=0&Index=1&Index=2"); 1072request.QueryString = new QueryString("?Index=0&Index=1&Index=2&Index=3"); 1111request.QueryString = new QueryString("?Successes[0]=b"); 1139request.QueryString = new QueryString("?[0]=hello&[1]="); 1188request.QueryString = new QueryString("?[0]=hello&[1]=");
ComplexRecordIntegrationTest.cs (70)
44request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 94request.QueryString = new QueryString("?Customer.Name=bill"); 144request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 198request.QueryString = new QueryString("?parameter.Customer.Name=bill&paramater.Customer.Address=not-used"); 249request.QueryString = new QueryString("?parameter.ProductId=10"); 298request.QueryString = new QueryString("?"); 347new QueryString("?parameter.Customer.Name=bill&parameter.Customer.Token=" + ByteArrayEncoded); 399request.QueryString = new QueryString("?Customer.Name=bill&Customer.Token=" + ByteArrayEncoded); 451request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 503request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 556request.QueryString = new QueryString("?Customer.Name=bill"); 609request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 660request.QueryString = new QueryString("?parameter.ProductId=10"); 717request.QueryString = new QueryString("?"); 772new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 827request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 882request.QueryString = new QueryString("?parameter.Name=bill"); 929request.QueryString = new QueryString("?"); 975new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 1030request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 1085request.QueryString = new QueryString("?parameter.Name=bill"); 1132request.QueryString = new QueryString("?"); 1178new QueryString("?parameter.Name=bill&parameter.ProductIds[0].Key=key0&parameter.ProductIds[0].Value=10"); 1233request.QueryString = new QueryString("?Name=bill&ProductIds[0].Key=key0&ProductIds[0].Value=10"); 1288request.QueryString = new QueryString("?parameter.Name=bill"); 1335request.QueryString = new QueryString("?"); 1394request.QueryString = new QueryString(queryString); 1501request.QueryString = new QueryString(queryString); 1608request.QueryString = new QueryString(queryString); 1712new QueryString("?parameter.Name=bill&parameter.ProductId.Key=key0&parameter.ProductId.Value=10"); 1767request.QueryString = new QueryString("?Name=bill&ProductId.Key=key0&ProductId.Value=10"); 1831request.QueryString = new QueryString(queryString); 1916request.QueryString = new QueryString("?"); 2071request.QueryString = new QueryString("?parameter.Customer.Id=123"); 2125request.QueryString = new QueryString("?Customer.Id=123"); 2183request.QueryString = new QueryString("?customParameter.Customer.Id=123"); 2239request.QueryString = new QueryString("?"); 2291request.QueryString = new QueryString("?"); 2339request.QueryString = new QueryString("?ProductName=abc"); 2387request.QueryString = new QueryString("?"); 2439request.QueryString = new QueryString("?"); 2486request.QueryString = new QueryString("?OrderIds[0]=123"); 2536request.QueryString = new QueryString("?parameter.ProductId="); 2590request.QueryString = new QueryString("?parameter.ProductId"); 2650request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2699request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2754request => request.QueryString = new QueryString( 2809request => request.QueryString = new QueryString("?Number=23&Street=someStreet&City=Redmond&State=WA")); 2866request.QueryString = new QueryString(queryString); 2912request.QueryString = new QueryString("?Id=1&Info.Key=location1&Info.Value.Zipcode=98052"); 2981request.QueryString = new QueryString("?a=b"); 3052request.QueryString = new QueryString( 3244request.QueryString = new QueryString("?Children[0].Name=Fred&Children[1].Name=Ginger"); 3451request.QueryString = new QueryString("?"); 3493request.QueryString = new QueryString("?name=TestName"); 3536request.QueryString = new QueryString("?age=28"); 3579request.QueryString = new QueryString("?Name=test&age=28"); 3630request.QueryString = new QueryString("?Id=not-bound&Name=test"); 3676request.QueryString = new QueryString("?Id=not-bound&Name=test"); 3728request.QueryString = new QueryString("?Id=testId&Name=test"); 3771request.QueryString = new QueryString("?Name=test"); 3816request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3859request.QueryString = new QueryString("?Id=test"); 3903request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3948request.QueryString = new QueryString("?Id=test&Tags[0]=tag1&Tags[1]=tag2"); 3992request.QueryString = new QueryString("?"); 4033request.QueryString = new QueryString("?Tags[0]=tag"); 4076request.QueryString = new QueryString("?parameter.Tags[0]=tag"); 4121request.QueryString = new QueryString("?Name=test&Age=7"); 4166request.QueryString = new QueryString("?Age=7");
ComplexTypeIntegrationTestBase.cs (54)
81request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 131request.QueryString = new QueryString("?Customer.Name=bill"); 181request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 232request.QueryString = new QueryString("?parameter.ProductId=10"); 281request.QueryString = new QueryString("?"); 340new QueryString("?parameter.Customer.Name=bill&parameter.Customer.Token=" + ByteArrayEncoded); 392request.QueryString = new QueryString("?Customer.Name=bill&Customer.Token=" + ByteArrayEncoded); 444request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 506request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 559request.QueryString = new QueryString("?Customer.Name=bill"); 612request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 663request.QueryString = new QueryString("?parameter.ProductId=10"); 720request.QueryString = new QueryString("?"); 780new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 835request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 890request.QueryString = new QueryString("?parameter.Name=bill"); 937request.QueryString = new QueryString("?"); 988new QueryString("?parameter.Name=bill&parameter.ProductIds[0]=10&parameter.ProductIds[1]=11"); 1043request.QueryString = new QueryString("?Name=bill&ProductIds[0]=10&ProductIds[1]=11"); 1098request.QueryString = new QueryString("?parameter.Name=bill"); 1145request.QueryString = new QueryString("?"); 1196new QueryString("?parameter.Name=bill&parameter.ProductIds[0].Key=key0&parameter.ProductIds[0].Value=10"); 1251request.QueryString = new QueryString("?Name=bill&ProductIds[0].Key=key0&ProductIds[0].Value=10"); 1306request.QueryString = new QueryString("?parameter.Name=bill"); 1353request.QueryString = new QueryString("?"); 1430request.QueryString = new QueryString(queryString); 1537request.QueryString = new QueryString(queryString); 1644request.QueryString = new QueryString(queryString); 1753new QueryString("?parameter.Name=bill&parameter.ProductId.Key=key0&parameter.ProductId.Value=10"); 1808request.QueryString = new QueryString("?Name=bill&ProductId.Key=key0&ProductId.Value=10"); 1863request.QueryString = new QueryString("?parameter.Name=bill"); 1912request.QueryString = new QueryString("?"); 1971request.QueryString = new QueryString(queryString); 2063request.QueryString = new QueryString("?"); 2233request.QueryString = new QueryString("?parameter.Customer.Id=123"); 2287request.QueryString = new QueryString("?Customer.Id=123"); 2345request.QueryString = new QueryString("?customParameter.Customer.Id=123"); 2405request.QueryString = new QueryString("?"); 2457request.QueryString = new QueryString("?"); 2505request.QueryString = new QueryString("?ProductName=abc"); 2557request.QueryString = new QueryString("?"); 2609request.QueryString = new QueryString("?"); 2656request.QueryString = new QueryString("?OrderIds[0]=123"); 2709request.QueryString = new QueryString("?parameter.ProductId="); 2763request.QueryString = new QueryString("?parameter.ProductId"); 2829request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2878request => request.QueryString = new QueryString("?HomeAddress.Street=someStreet")); 2945request => request.QueryString = new QueryString( 3000request => request.QueryString = new QueryString("?Number=23&Street=someStreet&City=Redmond&State=WA")); 3059request.QueryString = new QueryString(queryString); 3116request.QueryString = new QueryString("?Id=1&Info.Key=location1&Info.Value.Zipcode=98052"); 3189request.QueryString = new QueryString("?a=b"); 3267request.QueryString = new QueryString( 3473request.QueryString = new QueryString("?Children[0].Name=Fred&Children[1].Name=Ginger");
DictionaryModelBinderIntegrationTest.cs (32)
30request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 70request.QueryString = new QueryString("?parameter[key0]=10"); 108new QueryString("?parameter.index=low&parameter[low].Key=key0&parameter[low].Value=10"); 161request.QueryString = new QueryString(queryString); 198request.QueryString = new QueryString(queryString); 284request => request.QueryString = new QueryString(impliedPrefixQueryString), 285request => request.QueryString = new QueryString(noPrefixQueryString), 286request => request.QueryString = new QueryString(reversedNoPrefixQueryString), 410request.QueryString = new QueryString("?"); 446request.QueryString = new QueryString("?"); 515request.QueryString = new QueryString(queryString); 546request => request.QueryString = new QueryString(queryString), 584request => request.QueryString = new QueryString(queryString), 619request => request.QueryString = new QueryString(queryString), 654request => request.QueryString = new QueryString(queryString), 713request.QueryString = new QueryString(queryString); 740request => request.QueryString = new QueryString(queryString), 792request.QueryString = new QueryString(queryString); 832request.QueryString = new QueryString("?"); 868request.QueryString = new QueryString("?"); 918request => request.QueryString = new QueryString(queryString)); 943request => request.QueryString = new QueryString(queryString), 977request => request.QueryString = new QueryString(queryString), 1016request => request.QueryString = new QueryString(queryString), 1055request => request.QueryString = new QueryString(queryString), 1174request.QueryString = new QueryString(queryString); 1216request.QueryString = new QueryString("?a=b"); 1244request.QueryString = new QueryString("?parameter[key0]="); 1298request.QueryString = new QueryString("?parameter[key0].Age=&parameter[key0].Name=name0&parameter[key1].Age=27&parameter[key1].Name="); 1373request.QueryString = new QueryString("?parameter[Monday]=hello&parameter[Tuesday]=world&parameter[Invalid]=exclamation"); 1409request.QueryString = new QueryString("?parameter[hello]=Monday&parameter[world]=Tuesday&parameter[exclamation]=BadEnumValue"); 1451request.QueryString = new QueryString("?parameter[key0].Age=&parameter[key0].Name=name0&parameter[key1].Age=27&parameter[key1].Name=");
GenericModelBinderIntegrationTest.cs (14)
34request.QueryString = new QueryString("?parameter.index=10"); 72request.QueryString = new QueryString("?index=10"); 111request.QueryString = new QueryString("?"); 194request => request.QueryString = new QueryString("?parameter.index=0")); 237request => request.QueryString = new QueryString("?parameter.index=0")); 271request.QueryString = new QueryString("?parameter[0][0].Key=key0&parameter[0][0].Value=10"); 316request.QueryString = new QueryString("?[0][0].Key=key0&[0][0].Value=10"); 361request.QueryString = new QueryString("?"); 396request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 440request.QueryString = new QueryString("?[0].Key=key0&[0].Value=10"); 484request.QueryString = new QueryString("?"); 519request.QueryString = new QueryString( 568request.QueryString = new QueryString("?[0].Key=key0&[0].Value[0]=10&[0].Value[1]=11"); 616request.QueryString = new QueryString("?");
JQueryFormatModelBindingIntegrationTest.cs (1)
27request.QueryString = new QueryString(
KeyValuePairModelBinderIntegrationTest.cs (13)
26request.QueryString = new QueryString("?parameter.Key=key0&parameter.Value=10"); 65request.QueryString = new QueryString("?parameter.Value=10"); 107request.QueryString = new QueryString("?parameter.Value=10"); 152request.QueryString = new QueryString("?parameter.Key=10"); 194request.QueryString = new QueryString("?parameter.Key=10"); 244request.QueryString = new QueryString("?prefix.Key=key0&prefix.Value=10"); 284request.QueryString = new QueryString("?Key=key0&Value=10"); 324request.QueryString = new QueryString("?"); 362request.QueryString = new QueryString("?parameter.Key=key0&parameter.Value.Id=10"); 407request.QueryString = new QueryString("?prefix.Key=key0&prefix.Value.Id=10"); 448request.QueryString = new QueryString("?Key=key0&Value.Id=10"); 489request.QueryString = new QueryString("?"); 525request.QueryString = new QueryString("?p.Key=key1&p.Value[0]=value1&p.Value[1]=value2");
ModelPrefixSelectionIntegrationTest.cs (4)
35request.QueryString = new QueryString("?parameter="); 84request.QueryString = new QueryString("?parameter="); 129request.QueryString = new QueryString("?Name="); 172request.QueryString = new QueryString("?Name=");
SimpleTypeModelBinderIntegrationTest.cs (2)
169request.QueryString = new QueryString("?=someValue"); 331request.QueryString = new QueryString("?Parameter1=someValue&Parameter1=otherValue");
ValidationIntegrationTests.cs (42)
97request.QueryString = new QueryString("?accountId=30"); 139request.QueryString = new QueryString("?accountId=10"); 176request.QueryString = new QueryString("?parameter.CustomerName=bill"); 213request.QueryString = new QueryString("?"); 264request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 302request.QueryString = new QueryString("?"); 355request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 394request.QueryString = new QueryString("?parameter.Customer.Age=17"); 447request.QueryString = new QueryString("?Items[0].ItemId=17"); 486request.QueryString = new QueryString("?"); 534request.QueryString = new QueryString("?parameter[0].ProductId=17"); 572request.QueryString = new QueryString("?parameter[0].Name=bill"); 692request.QueryString = new QueryString("?parameter.Name=bill"); 729request.QueryString = new QueryString("?parameter.Name=billybob"); 780request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 817request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 857request.QueryString = new QueryString("?"); 915request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 952request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 1022request.QueryString = new QueryString("?parameter.Products[0].Name=bill"); 1059request.QueryString = new QueryString("?parameter.Products[0].Name=billybob"); 1110request.QueryString = new QueryString("?parameter[0].Name=bill"); 1147request.QueryString = new QueryString("?parameter[0].Name=billybob"); 1187request.QueryString = new QueryString("?"); 1227request.QueryString = new QueryString("?Id=bill"); 1267request.QueryString = new QueryString("?Zip=-123"); 1358= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseType)}.{nameof(NeverValid.NeverValidProperty)}=1")); 1407= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseAttribute)}=1")); 1446= new QueryString($"?{nameof(ValidateSomeProperties.ValidateNever)}=1")); 1509request => request.QueryString = new QueryString($"?{propertyName}=1")); 1615request => request.QueryString = new QueryString( 1736new QueryString("?HomeAddress.Country.Name=US&ShippingAddresses[0].Zip=45&HomeAddress.Zip=46"); 2036request.QueryString = new QueryString("?[0]=1&[1]=2"); 2088request.QueryString = new QueryString("?[0]=1&[1]=2"); 2158request.QueryString = new QueryString("?p[0].Id=1&p[1].Id=2"); 2220request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 2267request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value.NeverValidProperty=value0"); 2324request.QueryString = new QueryString("?Model.Id=12"); 2378request.QueryString = new QueryString("?Model.Id=12"); 2430request.QueryString = new QueryString("?Property1=8"); 2482request.QueryString = new QueryString("?Property1=8"); 2533request.QueryString = new QueryString("?Name=CoolName");
ValidationWithRecordIntegrationTests.cs (44)
89request.QueryString = new QueryString("?accountId=30"); 131request.QueryString = new QueryString("?accountId=10"); 164request.QueryString = new QueryString("?parameter.CustomerName=bill"); 201request.QueryString = new QueryString("?"); 245request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 283request.QueryString = new QueryString("?"); 327request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 366request.QueryString = new QueryString("?parameter.Customer.Age=17"); 412request.QueryString = new QueryString("?Items[0].ItemId=17"); 451request.QueryString = new QueryString("?"); 493request.QueryString = new QueryString("?parameter[0].ProductId=17"); 531request.QueryString = new QueryString("?parameter[0].Name=bill"); 575request.QueryString = new QueryString("?parameter.Name=bill"); 612request.QueryString = new QueryString("?parameter.Name=billybob"); 656request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 693request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 733request.QueryString = new QueryString("?"); 784request.QueryString = new QueryString("?parameter.Customer.Name=bill"); 821request.QueryString = new QueryString("?parameter.Customer.Name=billybob"); 884request.QueryString = new QueryString("?parameter.Products[0].Name=bill"); 921request.QueryString = new QueryString("?parameter.Products[0].Name=billybob"); 968request.QueryString = new QueryString("?parameter[0].Name=bill"); 1005request.QueryString = new QueryString("?parameter[0].Name=billybob"); 1045request.QueryString = new QueryString("?"); 1079request.QueryString = new QueryString("?Id=bill"); 1119request.QueryString = new QueryString("?Zip=-123"); 1202= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseType)}.{nameof(NeverValid.NeverValidProperty)}=1")); 1251= new QueryString($"?{nameof(ValidateSomeProperties.NeverValidBecauseAttribute)}=1")); 1290= new QueryString($"?{nameof(ValidateSomeProperties.ValidateNever)}=1")); 1423request => request.QueryString = new QueryString( 1539new QueryString("?HomeAddress.Country.Name=US&ShippingAddresses[0].Zip=45&HomeAddress.Zip=46"); 1827request.QueryString = new QueryString("?[0]=1&[1]=2"); 1879request.QueryString = new QueryString("?[0]=1&[1]=2"); 1949request.QueryString = new QueryString("?p[0].Id=1&p[1].Id=2"); 2011request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value=10"); 2058request.QueryString = new QueryString("?parameter[0].Key=key0&parameter[0].Value.NeverValidProperty=value0"); 2115request.QueryString = new QueryString("?Model.Id=12"); 2166request.QueryString = new QueryString("?Model.Id=12"); 2218request.QueryString = new QueryString("?Property1=8"); 2268request.QueryString = new QueryString("?Property1=8"); 2320request.QueryString = new QueryString("?Property1=8"); 2359request.QueryString = new QueryString("?Property1=8"); 2400request.QueryString = new QueryString("?Property1=8"); 2435request.QueryString = new QueryString("?Property1=SomeValue");
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (3)
459QueryString = new QueryString("?handler=Delete"), 510QueryString = new QueryString("?handler=Delete"), 555QueryString = new QueryString("?handler=Delete&handler=Add"),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
CacheTagHelperTest.cs (2)
105cacheTagHelper1.ViewContext.HttpContext.Request.QueryString = new QueryString( 127cacheTagHelper2.ViewContext.HttpContext.Request.QueryString = new QueryString(
CacheTagKeyTest.cs (1)
266new QueryString("?sortoption=Adorability&Category=cats&sortOrder=");
DistributedCacheTagHelperTest.cs (2)
148cacheTagHelper1.ViewContext.HttpContext.Request.QueryString = new QueryString( 173cacheTagHelper2.ViewContext.HttpContext.Request.QueryString = new QueryString(
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\HtmlHelperFormTest.cs (2)
141request.QueryString = new QueryString(queryString); 191request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.OpenApi.Tests (1)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
152context.Request.QueryString = new QueryString($"?documentName={documentName}");
Microsoft.AspNetCore.OutputCaching.Tests (14)
OutputCacheAttributeTests.cs (1)
94context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
OutputCacheKeyProviderTests.cs (12)
25context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 42context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 183context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 196context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA&queryB=ValueB"); 209context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA"); 222context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 237context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryA=ValueB"); 252context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueB&QueryA=ValueA"); 269context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 351context.HttpContext.Request.QueryString = new QueryString($"?QueryA=ValueA{KeyDelimiter}&QueryB=ValueB"); 364context.HttpContext.Request.QueryString = new QueryString($"?QueryA{KeyDelimiter}=ValueA&QueryB=ValueB"); 377context.HttpContext.Request.QueryString = new QueryString($"?QueryA=ValueA&QueryB=ValueB{KeyDelimiter}");
OutputCachePolicyBuilderTests.cs (1)
124context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
Microsoft.AspNetCore.Owin.Tests (1)
OwinEnvironmentTests.cs (1)
29context.Request.QueryString = new QueryString("?key=value");
Microsoft.AspNetCore.ResponseCaching.Tests (7)
ResponseCachingKeyProviderTests.cs (7)
23context.HttpContext.Request.QueryString = new QueryString("?query.Key=a&query.Value=b"); 115context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 131context.HttpContext.Request.QueryString = new QueryString("?queryA=ValueA&queryB=ValueB"); 147context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB"); 165context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryA=ValueB"); 183context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueB&QueryA=ValueA"); 203context.HttpContext.Request.QueryString = new QueryString("?QueryA=ValueA&QueryB=ValueB");
Microsoft.AspNetCore.Rewrite.Tests (1)
PatternSegments\QueryStringSegmentTests.cs (1)
16context.HttpContext.Request.QueryString = new QueryString("?hey=1");
Microsoft.AspNetCore.Routing (1)
UriBuildingContext.cs (1)
277return new QueryString(_query.ToString());
Microsoft.AspNetCore.SignalR.Tests (1)
HubConnectionHandlerTests.cs (1)
5093httpContext.Request.QueryString = new QueryString($"?client={client1.Connection.ConnectionId}");
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
SpaProxyTests.cs (1)
35context.Request.QueryString = new QueryString(queryString);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (1)
285context.Request.QueryString = new QueryString("?and=something");
HttpContextBuilderTests.cs (1)
27c.Request.QueryString = new QueryString("?and=query");
184 references to QueryString
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
293ctx.Request.QueryString = QueryString.Empty;
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
469var accessDeniedUri = Options.AccessDeniedPath + QueryString.Create(Options.ReturnUrlParameter, returnUrl); 483var loginUri = Options.LoginPath + QueryString.Create(Options.ReturnUrlParameter, redirectUri);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1661context.Request.QueryString = QueryString.FromUriComponent("?query=value");
Microsoft.AspNetCore.Diagnostics (3)
StatusCodePage\StatusCodePagesExtensions.cs (3)
173var newQueryString = queryFormat == null ? QueryString.Empty : new QueryString(formatedQueryString); 176var originalQueryString = context.HttpContext.Request.QueryString;
Microsoft.AspNetCore.Diagnostics.Tests (2)
StatusCodeMiddlewareTest.cs (2)
85var beforeNext = context.Request.QueryString; 87var afterNext = context.Request.QueryString;
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
452[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(QueryString))]
Microsoft.AspNetCore.Http (2)
Features\QueryFeature.cs (1)
84_original = QueryString.Create(_parsedValues).ToString();
Internal\DefaultHttpRequest.cs (1)
79public override QueryString QueryString
Microsoft.AspNetCore.Http.Abstractions (34)
HttpRequest.cs (2)
69public abstract QueryString QueryString { get; set; } 170public QueryString QueryString => _request.QueryString;
PathString.cs (2)
373public string Add(QueryString other) 489public static string operator +(PathString left, QueryString right)
QueryString.cs (30)
16public readonly struct QueryString : IEquatable<QueryString> 21public static readonly QueryString Empty = new QueryString(string.Empty); 77public static QueryString FromUriComponent(string uriComponent) 91public static QueryString FromUriComponent(Uri uri) 109public static QueryString Create(string name, string value) 125public static QueryString Create(IEnumerable<KeyValuePair<string, string?>> parameters) 143public static QueryString Create(IEnumerable<KeyValuePair<string, StringValues>> parameters) 171/// <param name="other">The <see cref="QueryString"/> to concatenate.</param> 172/// <returns>The concatenated <see cref="QueryString"/>.</returns> 173public QueryString Add(QueryString other) 194/// <returns>The concatenated <see cref="QueryString"/>.</returns> 195public QueryString Add(string name, string value) 212/// <param name="other">The <see cref="QueryString"/> to compare.</param> 214public bool Equals(QueryString other) 234return obj is QueryString query && Equals(query); 249/// <param name="left">A <see cref="QueryString"/> instance.</param> 250/// <param name="right">A <see cref="QueryString"/> instance.</param> 252public static bool operator ==(QueryString left, QueryString right) 260/// <param name="left">A <see cref="QueryString"/> instance.</param> 261/// <param name="right">A <see cref="QueryString"/> instance.</param> 263public static bool operator !=(QueryString left, QueryString right) 271/// <param name="left">A <see cref="QueryString"/> instance.</param> 272/// <param name="right">A <see cref="QueryString"/> instance.</param> 273/// <returns>The concatenated <see cref="QueryString"/>.</returns> 274public static QueryString operator +(QueryString left, QueryString right)
Microsoft.AspNetCore.Http.Abstractions.Tests (26)
PathStringTests.cs (1)
100var query = new QueryString("?query");
QueryStringTests.cs (25)
21var query = new QueryString(); 37var query = new QueryString("?"); 45var query = new QueryString("?Hello=Wor#ld"); 59var query = QueryString.Create(name, value!); 66var query = QueryString.Create(new[] 80var query = QueryString.Create(new[] 103var q1 = new QueryString(query1); 104var q2 = new QueryString(query2); 125var q1 = new QueryString(query1); 126var q2 = q1.Add(name2, value2!); 134Assert.Equal(default(QueryString), QueryString.Empty); 135Assert.Equal(default(QueryString), QueryString.Empty); 137Assert.True(QueryString.Empty == default(QueryString)); 138Assert.True(default(QueryString) == QueryString.Empty); 145var queryString = new QueryString("?foo=1"); 148Assert.NotEqual(default(QueryString), queryString); 155var queryString = new QueryString("?foo=1"); 158Assert.NotEqual(queryString, QueryString.Empty);
Microsoft.AspNetCore.Http.Extensions (9)
QueryBuilder.cs (3)
88/// Constructs a <see cref="QueryString"/> from this <see cref="QueryBuilder"/>. 90/// <returns>The <see cref="QueryString"/>.</returns> 91public QueryString ToQueryString()
UriHelper.cs (6)
33QueryString query = new QueryString(), 56QueryString query = new QueryString(), 110out QueryString query, 140query = QueryString.FromUriComponent(uri.Substring(searchIndex, limit - searchIndex)); 169query: QueryString.FromUriComponent(uri), 242/// Initializes the URI <see cref="string"/> for <see cref="BuildAbsolute(string, HostString, PathString, PathString, QueryString, FragmentString)"/>.
Microsoft.AspNetCore.Http.Extensions.Tests (7)
RequestDelegateGenerator\CompileTimeCreationTests.cs (2)
410httpContext.Request.QueryString = QueryString.Create("value", endpoint.DisplayName); 525httpContext.Request.QueryString = httpContext.Request.QueryString.Add(QueryString.Create(value, value));
UriHelperTests.cs (5)
138var query = new QueryString(); 155var query = new QueryString("?foo=1"); 162var resQuery = new QueryString(); 178var resQuery = new QueryString(); 190var resQuery = new QueryString();
Microsoft.AspNetCore.Http.Tests (1)
Internal\DefaultHttpRequestTests.cs (1)
140Assert.Equal(QueryString.Empty, request.QueryString);
Microsoft.AspNetCore.Mvc.Core.Test (1)
RequireHttpsAttributeTests.cs (1)
177requestContext.Request.QueryString = QueryString.FromUriComponent(uri);
Microsoft.AspNetCore.Mvc.IntegrationTests (72)
ActionParametersIntegrationTest.cs (19)
46request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 92request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 139request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 187request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 227request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 271request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 318request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 363request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 399request.QueryString = QueryString.Create("Name", "James").Add("Property1.City", "Seattle"); 432request.QueryString = QueryString.Create("Name", "James"); 460request.QueryString = QueryString.Create("Name", "James").Add("Property1.City", "Seattle"); 552request.QueryString = QueryString.Create("Name", "James"); 585request.QueryString = QueryString.Create("Name", "James").Add("Age", "29"); 644request.QueryString = QueryString.Create(parameter.Name, "123"); 677request.QueryString = QueryString.Create(nameof(ModelWithIValidatableObject.FirstName), "TestName"); 721request.QueryString = QueryString.Create(parameter.Name, input.Value.ToString(CultureInfo.InvariantCulture)); 774request.QueryString = QueryString.Create(parameter.Name, input); 817request.QueryString = QueryString.Create(nameof(ModelWithIValidatableObject.FirstName), "Billy"); 862request.QueryString = QueryString.Create(key, "Billy");
BindingSourceMetadataProviderIntegrationTest.cs (1)
92request.QueryString = QueryString.Create("Name", "Fred");
ByteArrayModelBinderIntegrationTest.cs (2)
40request.QueryString = QueryString.Create(queryStringKey, value); 123request.QueryString = QueryString.Create("CustomParameter", value);
FormCollectionModelBindingIntegrationTest.cs (1)
42request.QueryString = QueryString.Create("Address.Zip", "12345");
FormFileModelBindingIntegrationTest.cs (9)
42request.QueryString = QueryString.Create("Address.Zip", "12345"); 199request.QueryString = QueryString.Create("Person.Address.Zip", "98056"); 286request.QueryString = QueryString.Create("fleet.Garage.Name", "WestEnd"); 351request.QueryString = QueryString.Create("fleet.Garage.Name", "WestEnd"); 417request.QueryString = QueryString.Create("GroupName", "TestGroup"); 711request.QueryString = QueryString.Create("p.Name", "Accord"); 770request.QueryString = QueryString.Create("house.Garage.Cars[0].Name", "Accord"); 998request.QueryString = QueryString.Create("p.Name", "Accord"); 1207request.QueryString = QueryString.Create(new Dictionary<string, string>
SimpleTypeModelBinderIntegrationTest.cs (12)
36request.QueryString = QueryString.Create("CustomParameter.Address.Zip", "1"); 80request.QueryString = QueryString.Create("Address.Zip", "1"); 125request.QueryString = QueryString.Create("Parameter1", "someValue"); 202request.QueryString = QueryString.Create("Parameter1", "32,000.99"); 246request.QueryString = QueryString.Create("Parameter1", "2020-02-01"); 375request.QueryString = QueryString.Create("Parameter1", "abcd"); 427request.QueryString = QueryString.Create("Parameter1", "abcd"); 485request.QueryString = QueryString.Create("Parameter1", ""); 530request.QueryString = QueryString.Create("Parameter1", string.Empty); 582request.QueryString = QueryString.Create("Parameter1", string.Empty); 719request.QueryString = QueryString.Create("Parameter1", "someValue"); 763request.QueryString = QueryString.Create("Parameter1", "someValue");
TryUpdateModelIntegrationTest.cs (28)
26request.QueryString = QueryString.Create("Street", "SomeStreet"); 66request.QueryString = QueryString.Create("Street", "SomeStreet"); 107request.QueryString = QueryString.Create(new Dictionary<string, string> 165request.QueryString = QueryString.Create("Address.Street", "SomeStreet"); 215request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 251request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 302request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 358request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 387request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 421request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 457request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 510request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 551request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 598request.QueryString = QueryString.Create("Address[0].Street", "SomeStreet"); 633request.QueryString = QueryString.Create("prefix.Street", "SomeStreet"); 673request.QueryString = QueryString.Create("prefix.Street", "SomeStreet"); 707request.QueryString = QueryString.Create(new Dictionary<string, string> 765request.QueryString = QueryString.Create("prefix.Address.Street", "SomeStreet"); 810request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 846request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 887request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 938request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 974request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 1022request.QueryString = QueryString.Create("prefix.Address[0].Street", "SomeStreet"); 1103request.QueryString = QueryString.Create("Street", "SomeStreet"); 1148request.QueryString = QueryString.Create("Street", "SomeStreet"); 1175request.QueryString = QueryString.Create("Address.ZipCode", "98007").Add("Address.Street", "SomeStreet"); 1221request.QueryString = QueryString.Create("Address.ZipCode", "98007").Add("Address.Street", "SomeStreet");
Microsoft.AspNetCore.Rewrite (11)
RedirectRule.cs (2)
85var resolvedQuery = request.QueryString; 90resolvedQuery = request.QueryString.Add(QueryString.FromUriComponent(newPath.Substring(querySplit)));
RewriteRule.cs (2)
60QueryString query; 83QueryString.FromUriComponent(
UrlActions\RedirectAction.cs (2)
59var query = context.HttpContext.Request.QueryString.Add( 60QueryString.FromUriComponent(
UrlActions\RewriteAction.cs (5)
67QueryString query; 83request.QueryString = QueryString.Empty; 108QueryString.FromUriComponent( 113request.QueryString = QueryString.FromUriComponent( 130request.QueryString = QueryString.Empty;
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\ServerVariableTests.cs (1)
142context.Request.QueryString = QueryString.FromUriComponent("?bar=1");
Microsoft.AspNetCore.Routing (4)
DefaultLinkGenerator.cs (2)
286out (PathString path, QueryString query) result) 354public static void TemplateSucceeded(ILogger logger, RouteEndpoint endpoint, PathString path, QueryString query)
Template\TemplateBinder.cs (1)
474out (PathString path, QueryString query) result)
UriBuildingContext.cs (1)
269public QueryString ToQueryString()
Microsoft.AspNetCore.TestHost (2)
ClientHandler.cs (1)
187req.QueryString = QueryString.FromUriComponent(request.RequestUri);
WebSocketClient.cs (1)
78request.QueryString = QueryString.FromUriComponent(uri);
MyFrontend (3)
Services\CatalogServiceClient.cs (3)
10var query = (before, after) switch 13(int b, null) => QueryString.Create("before", b.ToString(CultureInfo.InvariantCulture)), 14(null, int a) => QueryString.Create("after", a.ToString(CultureInfo.InvariantCulture)),
SocialSample (1)
Startup.cs (1)
361var query = new QueryBuilder()