FormCollection Class

 

Contains the form value providers for the application.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.Collections.Specialized.NameObjectCollectionBase
    System.Collections.Specialized.NameValueCollection
      System.Web.Mvc.FormCollection

Syntax

public sealed class FormCollection : NameValueCollection, IValueProvider
public ref class FormCollection sealed : NameValueCollection, 
    IValueProvider
[<Sealed>]
type FormCollection = 
    class
        inherit NameValueCollection
        interface IValueProvider
    end
Public NotInheritable Class FormCollection
    Inherits NameValueCollection
    Implements IValueProvider

Constructors

Name Description
System_CAPS_pubmethod FormCollection()

Initializes a new instance of the FormCollection class.

System_CAPS_pubmethod FormCollection(NameValueCollection)

Initializes a new instance of the FormCollection class.

Properties

Name Description
System_CAPS_pubproperty AllKeys

(Inherited from NameValueCollection.)

System_CAPS_pubproperty Count

(Inherited from NameObjectCollectionBase.)

System_CAPS_pubproperty Item[Int32]

(Inherited from NameValueCollection.)

System_CAPS_pubproperty Item[String]

(Inherited from NameValueCollection.)

System_CAPS_pubproperty Keys

(Inherited from NameObjectCollectionBase.)

Methods

Name Description
System_CAPS_pubmethod Add(NameValueCollection)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod Add(String, String)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod Clear()

(Inherited from NameValueCollection.)

System_CAPS_pubmethod CopyTo(Array, Int32)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Get(Int32)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod Get(String)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod GetEnumerator()

(Inherited from NameObjectCollectionBase.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetKey(Int32)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

(Inherited from NameObjectCollectionBase.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetValue(String)

Gets the specified value provider.

System_CAPS_pubmethod GetValues(Int32)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod GetValues(String)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod HasKeys()

(Inherited from NameValueCollection.)

System_CAPS_pubmethod OnDeserialization(Object)

(Inherited from NameObjectCollectionBase.)

System_CAPS_pubmethod Remove(String)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod Set(String, String)

(Inherited from NameValueCollection.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod ToValueProvider()

Returns a dictionary that contains the value providers.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICollection.CopyTo(Array, Int32)

(Inherited from NameObjectCollectionBase.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IValueProvider.ContainsPrefix(String)

Gets a value that indicates whether the value provider contains an entry that has the specified prefix.

System_CAPS_pubinterfaceSystem_CAPS_privmethod IValueProvider.GetValue(String)

Gets a value from a value provider using the specified key.

Extension Methods

Name Description
System_CAPS_pubmethod CopyTo(IDictionary<String, Object>)

Overloaded. Copies the specified collection to the specified destination.(Defined by NameValueCollectionExtensions.)

System_CAPS_pubmethod CopyTo(IDictionary<String, Object>, Boolean)

Overloaded. Copies the specified collection to the specified destination, and optionally replaces previous entries.(Defined by NameValueCollectionExtensions.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top