Dela via


FormCollection Class

Definition

Contains the parsed HTTP form values.

public ref class FormCollection : Microsoft::AspNetCore::Http::IFormCollection, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Microsoft::Extensions::Primitives::StringValues>>
public class FormCollection : Microsoft.AspNetCore.Http.IFormCollection, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Extensions.Primitives.StringValues>>
type FormCollection = class
    interface IFormCollection
    interface seq<KeyValuePair<string, StringValues>>
    interface IEnumerable
Public Class FormCollection
Implements IEnumerable(Of KeyValuePair(Of String, StringValues)), IFormCollection
Inheritance
FormCollection
Implements

Constructors

FormCollection(Dictionary<String,StringValues>, IFormFileCollection)

Initializes a new instance of FormCollection.

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