CookieValueProvider.GetValue 方法

定义

使用指定的键检索值对象。

重载

名称 说明
GetValue(String)

使用指定的键检索值对象。

GetValue(String, Boolean)

使用指定的键和指定是否应跳过验证的参数检索值对象。

GetValue(String)

使用指定的键检索值对象。

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

参数

key
String

键。

返回

value 对象。

实现

适用于

GetValue(String, Boolean)

使用指定的键和指定是否应跳过验证的参数检索值对象。

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

参数

key
String

键。

skipValidation
Boolean

true 若要跳过验证,则为 ;否则,为 false.

返回

value 对象。

实现

适用于