CookieValueProvider.GetValue Method

Definition

Retrieves a value object using the specified key.

Overloads

GetValue(String)

Retrieves a value object using the specified key.

GetValue(String, Boolean)

Retrieves a value object using the specified key and a parameter that specifies whether validation should be skipped.

GetValue(String)

Retrieves a value object using the specified key.

public System.Web.ModelBinding.ValueProviderResult GetValue (string key);

Parameters

key
String

The key.

Returns

The value object.

Implements

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetValue(String, Boolean)

Retrieves a value object using the specified key and a parameter that specifies whether validation should be skipped.

public System.Web.ModelBinding.ValueProviderResult GetValue (string key, bool skipValidation);

Parameters

key
String

The key.

skipValidation
Boolean

true to skip validation; otherwise, false.

Returns

The value object.

Implements

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1