BindingSourceValueProvider Class

Definition

A value provider which provides data from a specific BindingSource.

C#
public abstract class BindingSourceValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider
Inheritance
BindingSourceValueProvider
Derived
Implements

Remarks

A BindingSourceValueProvider is an IValueProvider base-implementation which can provide data for all parameters and model properties which specify the corresponding BindingSource.

BindingSourceValueProvider implements IBindingSourceValueProvider and will include or exclude itself from the set of value providers based on the model's associated BindingSource. Value providers are by-default included; if a model does not specify a BindingSource then all value providers are valid.

Constructors

Properties

BindingSource

Gets the corresponding BindingSource.

Methods

ContainsPrefix(String)

Determines whether the collection contains the specified prefix.

Filter(BindingSource)

Filters the value provider based on bindingSource.

GetValue(String)

Retrieves a value object using the specified key.

Applies to

Produkt Verzie
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0