.NET Framework Class Library
FormCollection Class
Contains the form value providers for the application.
Inheritance Hierarchy
System.Object
System.Collections.Specialized.NameObjectCollectionBase
System.Collections.Specialized.NameValueCollection
System.Web.Mvc.FormCollection
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic (Declaration)
Public NotInheritable Class FormCollection _ Inherits NameValueCollection _ Implements IValueProvider
Visual Basic (Usage)
Dim instance As FormCollection
C#
public sealed class FormCollection : NameValueCollection, IValueProvider
Visual C++
public ref class FormCollection sealed : public NameValueCollection, IValueProvider
JScript
public final class FormCollection extends NameValueCollection implements IValueProvider
The FormCollection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
FormCollection() | Initializes a new instance of the FormCollection class. |
|
FormCollection(NameValueCollection) | Initializes a new instance of the FormCollection class. |
Properties
| Name | Description | |
|---|---|---|
|
AllKeys | (Inherited from NameValueCollection.) |
|
Count | (Inherited from NameObjectCollectionBase.) |
|
IsReadOnly | (Inherited from NameObjectCollectionBase.) |
|
Item[String] | (Inherited from NameValueCollection.) |
|
Item[Int32] | (Inherited from NameValueCollection.) |
|
Keys | (Inherited from NameObjectCollectionBase.) |
Methods
TopExtension Methods
| Name | Description | |
|---|---|---|
|
CopyTo(IDictionary<String, Object>) | Overloaded. Copies the specified collection to the specified destination. (Defined by NameValueCollectionExtensions.) |
|
CopyTo(IDictionary<String, Object>, Boolean) | Overloaded. Copies the specified collection to the specified destination, and optionally replaces previous entries. (Defined by NameValueCollectionExtensions.) |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
|
ICollection.CopyTo | (Inherited from NameObjectCollectionBase.) |
|
ICollection.IsSynchronized | (Inherited from NameObjectCollectionBase.) |
|
IValueProvider.ContainsPrefix | Gets a value that indicates whether the value provider contains an entry that has the specified prefix. |
|
IValueProvider.GetValue | Gets a value from a value provider using the specified key. |
|
ICollection.SyncRoot | (Inherited from NameObjectCollectionBase.) |
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