IValueProvider Interface

Defines the methods that are required for a value provider.

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding
Assemblies
  • Microsoft.AspNetCore.Mvc.Abstractions

Syntax

public interface IValueProvider
interface Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider

Methods

ContainsPrefix(System.String)

Determines whether the collection contains the specified prefix.

Arguments:prefix (System.String) – The prefix to search for.
Return type:System.Boolean
Returns:true if the collection contains the specified prefix; otherwise, false.
bool ContainsPrefix(string prefix)
GetValue(System.String)

Retrieves a value object using the specified key.

Arguments:key (System.String) – The key of the value object to retrieve.
Return type:Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResult
Returns:The value object for the specified key. If the exact key is not found, null.
ValueProviderResult GetValue(string key)