IFormCollection.Item[String] IFormCollection.Item[String] IFormCollection.Item[String] Property

Definition

Gets the value with the specified key.

public Microsoft.Extensions.Primitives.StringValues this[string key] { get; }
member this.Item(string) : Microsoft.Extensions.Primitives.StringValues
Default Public ReadOnly Property Item(key As String) As StringValues

Parameters

key
String String String

The key of the value to get.

Property Value

The element with the specified key, or StringValues.Empty if the key is not present.

Exceptions

Remarks

IFormCollection has a different indexer contract than IDictionary<TKey,TValue>, as it will return StringValues.Empty for missing entries rather than throwing an Exception.

Applies to