IHeaderDictionary.Item[String] Property

Definition

IHeaderDictionary has a different indexer contract than IDictionary, where it will return StringValues.Empty for missing entries.

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

Parameters

key
String

Property Value

The stored value, or StringValues.Empty if the key is not present.

Implements

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0