Lue englanniksi

Jaa


FormCollection Class

Definition

Contains the parsed HTTP form values.

C#
public class FormCollection : Microsoft.AspNetCore.Http.IFormCollection, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>>
Inheritance
FormCollection
Implements

Constructors

Fields

Empty

An empty FormCollection.

Properties

Count

Gets the number of elements contained in the HeaderDictionary;.

Files

Gets the files associated with the HTTP form.

Item[String]

Get or sets the associated value from the collection as a single string.

Keys

Gets an ICollection<T> containing the keys of the IFormCollection.

Methods

ContainsKey(String)

Determines whether the HeaderDictionary contains a specific key.

GetEnumerator()

Returns an struct enumerator that iterates through a collection without boxing and is also used via the IFormCollection interface.

TryGetValue(String, StringValues)

Retrieves a value from the dictionary.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection, boxes in non-empty path.

IEnumerable<KeyValuePair<String,StringValues>>.GetEnumerator()

Returns an enumerator that iterates through a collection, boxes in non-empty path.

Applies to

Tuote Versiot
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