NameValueCollectionValueProvider::GetValue Method

 

Returns a value object using the specified key.

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

NameDescription
System_CAPS_pubmethodGetValue(String^)

Returns a value object using the specified key.

System_CAPS_pubmethodGetValue(String^, Boolean)

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

Return to top

NameValueCollectionValueProvider::GetValue Method (String^)

Returns a value object using the specified 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.

Exception Condition
ArgumentNullException

The key parameter is null.

Return to top

NameValueCollectionValueProvider::GetValue Method (String^, Boolean)

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

public:
virtual ValueProviderResult^ GetValue(
	String^ key,
	bool skipValidation
)

Parameters

key
Type: System::String^

The key.

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.

Return to top
Show: