Share via


BindingSourceValueProvider Class

Definition

A value provider which provides data from a specific BindingSource.

public ref class BindingSourceValueProvider abstract : Microsoft::AspNetCore::Mvc::ModelBinding::IBindingSourceValueProvider, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider
public abstract class BindingSourceValueProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceValueProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider
type BindingSourceValueProvider = class
    interface IBindingSourceValueProvider
    interface IValueProvider
Public MustInherit Class BindingSourceValueProvider
Implements IBindingSourceValueProvider, 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

BindingSourceValueProvider(BindingSource)

Creates a new BindingSourceValueProvider.

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