ValueProviderCollection.GetValue 方法

定义

使用指定的键返回一个值对象。

重载

名称 说明
GetValue(String)

使用指定的键返回一个值对象。

GetValue(String, Boolean)

使用指定的键返回值对象,并选择性地指定是否应跳过验证。

GetValue(String)

使用指定的键返回一个值对象。

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

参数

key
String

要检索的值对象的键。

返回

value 对象。

实现

注解

此方法调用GetValue(String, Boolean),为falseskipValidation参数传递。

适用于

GetValue(String, Boolean)

使用指定的键返回值对象,并选择性地指定是否应跳过验证。

public:
 virtual System::Web::ModelBinding::ValueProviderResult ^ GetValue(System::String ^ key, bool skipValidation);
public virtual 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 Overridable Function GetValue (key As String, skipValidation As Boolean) As ValueProviderResult

参数

key
String

要检索的值对象的键。

skipValidation
Boolean

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

返回

value 对象。

实现

适用于