DictionaryBasedValueProvider Class¶
Summary¶
An [Microsoft.AspNet.Mvc.ModelBinding.IValueProvider]() adapter for data stored in an [System.Collections.Generic.IDictionary`2]().
Syntax¶
public class DictionaryBasedValueProvider : BindingSourceValueProvider, IBindingSourceValueProvider, IValueProvider
Constructors¶
-
DictionaryBasedValueProvider
(Microsoft.AspNet.Mvc.ModelBinding.BindingSource, System.Collections.Generic.IDictionary<System.String, System.Object>)¶ Creates a new [Microsoft.AspNet.Mvc.ModelBinding.DictionaryBasedValueProvider](Microsoft.AspNet.Mvc.ModelBinding.DictionaryBasedValueProvider.yml).
Arguments: - bindingSource (Microsoft.AspNet.Mvc.ModelBinding.BindingSource) – The [Microsoft.AspNet.Mvc.ModelBinding.BindingSource]() of the data.
- values (System.Collections.Generic.IDictionary{System.String,System.Object}) – The values.
public DictionaryBasedValueProvider(BindingSource bindingSource, IDictionary<string, object> values)
-
Methods¶
-
ContainsPrefixAsync
(System.String)¶ Arguments: - key (System.String) –
Return type: System.Threading.Tasks.Task{System.Boolean}
public override Task<bool> ContainsPrefixAsync(string key)
-
GetValueAsync
(System.String)¶ Arguments: - key (System.String) –
Return type: System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.ModelBinding.ValueProviderResult}
public override Task<ValueProviderResult> GetValueAsync(string key)
-