NameValueCollectionValueProvider.GetValue Method

Definition

Overloads

GetValue(String)

Returns a value object using the specified key.

GetValue(String, Boolean)

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

GetValue(String)

Returns a value object using the specified key.

public virtual System.Web.Mvc.ValueProviderResult GetValue (string key);
abstract member GetValue : string -> System.Web.Mvc.ValueProviderResult
override this.GetValue : string -> System.Web.Mvc.ValueProviderResult
Public Overridable Function GetValue (key As String) As ValueProviderResult

Parameters

key
String

The key of the value object to retrieve.

Returns

The value object for the specified key.

Implements

Exceptions

The key parameter is null.

Applies to

GetValue(String, Boolean)

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

public virtual System.Web.Mvc.ValueProviderResult GetValue (string key, bool skipValidation);
abstract member GetValue : string * bool -> System.Web.Mvc.ValueProviderResult
override this.GetValue : string * bool -> System.Web.Mvc.ValueProviderResult
Public Overridable Function GetValue (key As String, skipValidation As Boolean) As ValueProviderResult

Parameters

key
String

The key.

skipValidation
Boolean

true if validation should be skipped; otherwise, false.

Returns

The value object for the specified key.

Implements

Applies to