CookieValueProvider.GetValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用指定的鍵值物件擷取。
多載
| 名稱 | Description |
|---|---|
| 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
索引鍵。
傳回
價值物件。
實作
適用於
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
傳回
價值物件。