Class FormCollection
Contains the form value providers for the application.
public sealed class FormCollection : NameValueCollection, ICollection, IEnumerable, ISerializable, IDeserializationCallback, IValueProvider
- Inheritance
-
FormCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
FormCollection()
Initializes a new instance of the FormCollection class.
public FormCollection()
FormCollection(NameValueCollection)
Initializes a new instance of the FormCollection class.
public FormCollection(NameValueCollection collection)
Parameters
collection
NameValueCollectionThe collection.
Exceptions
- ArgumentNullException
The
collection
parameter is null.
Methods
GetValue(string)
Gets the specified value provider.
public ValueProviderResult GetValue(string name)
Parameters
name
stringThe name of the value provider to get.
Returns
- ValueProviderResult
The value provider.
Exceptions
- ArgumentException
The
name
parameter is null or empty.
ToValueProvider()
Returns a dictionary that contains the value providers.
public IValueProvider ToValueProvider()
Returns
- IValueProvider
A dictionary of value providers.