DictionaryValueProvider<TValue>.GetValue Method (String)
Returns a value object using the specified key and controller context.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public virtual ValueProviderResult GetValue(
string key
)
public:
virtual ValueProviderResult^ GetValue(
String^ key
)
abstract GetValue :
key:string -> ValueProviderResult
override GetValue :
key:string -> ValueProviderResult
Public Overridable Function GetValue (
key As String
) As ValueProviderResult
Parameters
key
Type: System.StringThe key of the value object to retrieve.
Return Value
Type: System.Web.Mvc.ValueProviderResult
The value object for the specified key.
Implements
IValueProvider.GetValue(String)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The key parameter is null. |
See Also
DictionaryValueProvider<TValue> Class
System.Web.Mvc Namespace
Return to top