Freigeben über


NameValueCollectionValueProvider.GetValue Method

Returns a value object using the specified key.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Overridable Function GetValue ( _
    key As String _
) As ValueProviderResult
public virtual ValueProviderResult GetValue(
    string key
)
public:
virtual ValueProviderResult^ GetValue(
    String^ key
)

Parameters

  • key
    Type: System.String
    The 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 reference (Nothing in Visual Basic).

See Also

Reference

NameValueCollectionValueProvider Class

System.Web.Mvc Namespace