Table of Contents

Interface IValueProvider

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

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 string

The 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 string

The key of the value object to retrieve.

Returns

ValueProviderResult

The value object for the specified key, or null if the key is not found.