QueryCollection.Item[String] Property

Definition

Gets the associated set of values from the collection.

C#
public Microsoft.Extensions.Primitives.StringValues this[string key] { get; }

Parameters

key
String

The key name.

Property Value

the associated value from the collection as a StringValues or StringValues.Empty if the key is not present.

Implements

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0