NameValuePairsValueProvider Constructor (Func<IEnumerable<KeyValuePair<String, String>>>, CultureInfo)
Initializes a new instance of the NameValuePairsValueProvider class, using a function delegate to provide the name/value pairs.
Namespace: System.Web.Http.ValueProviders.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
valuesFactory As Func(Of IEnumerable(Of KeyValuePair(Of String, String))), _
culture As CultureInfo _
)
'Usage
Dim valuesFactory As Func(Of IEnumerable(Of KeyValuePair(Of String, String)))
Dim culture As CultureInfo
Dim instance As New NameValuePairsValueProvider(valuesFactory, _
culture)
public NameValuePairsValueProvider(
Func<IEnumerable<KeyValuePair<string, string>>> valuesFactory,
CultureInfo culture
)
public:
NameValuePairsValueProvider(
Func<IEnumerable<KeyValuePair<String^, String^>>^>^ valuesFactory,
CultureInfo^ culture
)
new :
valuesFactory:Func<IEnumerable<KeyValuePair<string, string>>> *
culture:CultureInfo -> NameValuePairsValueProvider
public function NameValuePairsValueProvider(
valuesFactory : Func<IEnumerable<KeyValuePair<String, String>>>,
culture : CultureInfo
)
Parameters
valuesFactory
Type: System.Func<IEnumerable<KeyValuePair<String, String>>>A function delegate that returns a collection of name/value pairs.
culture
Type: System.Globalization.CultureInfoThe culture used for the name/value pairs.
See Also
Reference
NameValuePairsValueProvider Class