NameValueCollectionValueProvider Constructor
Initializes a new instance of the NameValueCollectionValueProvider class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | NameValueCollectionValueProvider(NameValueCollection, CultureInfo) | Initializes a new instance of the NameValueCollectionValueProvider class. |
![]() | NameValueCollectionValueProvider(NameValueCollection, NameValueCollection, CultureInfo) | Initializes a new instance of the NameValueCollectionValueProvider class using the specified unvalidated collection. |
![]() | NameValueCollectionValueProvider(NameValueCollection, NameValueCollection, CultureInfo, Boolean) | Initializes Name Value collection provider. |
NameValueCollectionValueProvider Constructor (NameValueCollection, CultureInfo)
Initializes a new instance of the NameValueCollectionValueProvider class.
Parameters
- collection
-
Type:
System.Collections.Specialized.NameValueCollection
A collection that contains the values that are used to initialize the provider.
- culture
-
Type:
System.Globalization.CultureInfo
An object that contains information about the target culture.
| Exception | Condition |
|---|---|
| ArgumentNullException | The collection parameter is null. |
NameValueCollectionValueProvider Constructor (NameValueCollection, NameValueCollection, CultureInfo)
Initializes a new instance of the NameValueCollectionValueProvider class using the specified unvalidated collection.
Parameters
- collection
-
Type:
System.Collections.Specialized.NameValueCollection
A collection that contains the values that are used to initialize the provider.
- unvalidatedCollection
-
Type:
System.Collections.Specialized.NameValueCollection
A collection that contains the values that are used to initialize the provider. This collection will not be validated.
- culture
-
Type:
System.Globalization.CultureInfo
An object that contains information about the target culture.
NameValueCollectionValueProvider Constructor (NameValueCollection, NameValueCollection, CultureInfo, Boolean)
Initializes Name Value collection provider.
Parameters
- collection
-
Type:
System.Collections.Specialized.NameValueCollection
Key value collection from request.
- unvalidatedCollection
-
Type:
System.Collections.Specialized.NameValueCollection
Unvalidated key value collection from the request.
- culture
-
Type:
System.Globalization.CultureInfo
Culture with which the values are to be used.
- jQueryToMvcRequestNormalizationRequired
-
Type:
System.Boolean
jQuery POST when sending complex Javascript objects to server does not encode in the way understandable by MVC. This flag should be set if the request should be normalized to MVC form - https://aspnetwebstack.codeplex.com/workitem/1564.
