IValueProvider Interface

Summary

Defines the methods that are required for a value provider.

Syntax

public interface IValueProvider

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.ModelBinding.IValueProvider

Methods

ContainsPrefixAsync(System.String)

Determines whether the collection contains the specified prefix.

Arguments:
  • prefix (System.String) – The prefix to search for.
Return type:

System.Threading.Tasks.Task{System.Boolean}

Returns:

true if the collection contains the specified prefix; otherwise, false.

Task<bool> ContainsPrefixAsync(string prefix)
GetValueAsync(System.String)

Retrieves a value object using the specified key.

Arguments:
  • key (System.String) – The key of the value object to retrieve.
Return type:

System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.ModelBinding.ValueProviderResult}

Returns:

The value object for the specified key. If the exact key is not found, null.

Task<ValueProviderResult> GetValueAsync(string key)