NameValueCollectionValueProvider Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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(NameValueCollection, CultureInfo)
Initializes a new instance of the NameValueCollectionValueProvider class.
public NameValueCollectionValueProvider (System.Collections.Specialized.NameValueCollection collection, System.Globalization.CultureInfo culture);
new System.Web.Mvc.NameValueCollectionValueProvider : System.Collections.Specialized.NameValueCollection * System.Globalization.CultureInfo -> System.Web.Mvc.NameValueCollectionValueProvider
Public Sub New (collection As NameValueCollection, culture As CultureInfo)
Parameters
- collection
- NameValueCollection
A collection that contains the values that are used to initialize the provider.
- culture
- CultureInfo
An object that contains information about the target culture.
Exceptions
The collection
parameter is null.
Applies to
NameValueCollectionValueProvider(NameValueCollection, NameValueCollection, CultureInfo)
Initializes a new instance of the NameValueCollectionValueProvider class using the specified unvalidated collection.
public NameValueCollectionValueProvider (System.Collections.Specialized.NameValueCollection collection, System.Collections.Specialized.NameValueCollection unvalidatedCollection, System.Globalization.CultureInfo culture);
new System.Web.Mvc.NameValueCollectionValueProvider : System.Collections.Specialized.NameValueCollection * System.Collections.Specialized.NameValueCollection * System.Globalization.CultureInfo -> System.Web.Mvc.NameValueCollectionValueProvider
Public Sub New (collection As NameValueCollection, unvalidatedCollection As NameValueCollection, culture As CultureInfo)
Parameters
- collection
- NameValueCollection
A collection that contains the values that are used to initialize the provider.
- unvalidatedCollection
- NameValueCollection
A collection that contains the values that are used to initialize the provider. This collection will not be validated.
- culture
- CultureInfo
An object that contains information about the target culture.
Applies to
NameValueCollectionValueProvider(NameValueCollection, NameValueCollection, CultureInfo, Boolean)
Initializes Name Value collection provider.
public NameValueCollectionValueProvider (System.Collections.Specialized.NameValueCollection collection, System.Collections.Specialized.NameValueCollection unvalidatedCollection, System.Globalization.CultureInfo culture, bool jQueryToMvcRequestNormalizationRequired);
new System.Web.Mvc.NameValueCollectionValueProvider : System.Collections.Specialized.NameValueCollection * System.Collections.Specialized.NameValueCollection * System.Globalization.CultureInfo * bool -> System.Web.Mvc.NameValueCollectionValueProvider
Public Sub New (collection As NameValueCollection, unvalidatedCollection As NameValueCollection, culture As CultureInfo, jQueryToMvcRequestNormalizationRequired As Boolean)
Parameters
- collection
- NameValueCollection
Key value collection from request.
- unvalidatedCollection
- NameValueCollection
Unvalidated key value collection from the request.
- culture
- CultureInfo
Culture with which the values are to be used.
- jQueryToMvcRequestNormalizationRequired
- 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.