NameValueCollectionValueProvider.GetValue Method (String, Boolean)

Returns a value object using the specified key and validation directive.

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

Syntax

'Declaration
Public Overridable Function GetValue ( _
    key As String, _
    skipValidation As Boolean _
) As ValueProviderResult
'Usage
Dim instance As NameValueCollectionValueProvider
Dim key As String
Dim skipValidation As Boolean
Dim returnValue As ValueProviderResult

returnValue = instance.GetValue(key, skipValidation)
public virtual ValueProviderResult GetValue(
    string key,
    bool skipValidation
)
public:
virtual ValueProviderResult^ GetValue(
    String^ key, 
    bool skipValidation
)
public function GetValue(
    key : String, 
    skipValidation : boolean
) : ValueProviderResult

Parameters

  • skipValidation
    Type: System.Boolean
    true if validation should be skipped; otherwise, false.

Return Value

Type: System.Web.Mvc.ValueProviderResult
The value object for the specified key.

Implements

IUnvalidatedValueProvider.GetValue(String, Boolean)

See Also

Reference

NameValueCollectionValueProvider Class

GetValue Overload

System.Web.Mvc Namespace