Interface IValueProvider
Defines the methods that are required for a value provider in ASP.NET MVC.
public interface IValueProvider
Methods
ContainsPrefix(string)
Determines whether the collection contains the specified prefix.
bool ContainsPrefix(string prefix)
Parameters
prefix
stringThe prefix to search for.
Returns
- bool
true if the collection contains the specified prefix; otherwise, false.
GetValue(string)
Retrieves a value object using the specified key.
ValueProviderResult GetValue(string key)
Parameters
key
stringThe key of the value object to retrieve.
Returns
- ValueProviderResult
The value object for the specified key, or null if the key is not found.