HttpRequestOptions.TryGetValue<TValue> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of a specified HTTP request option.
public:
generic <typename TValue>
bool TryGetValue(System::Net::Http::HttpRequestOptionsKey<TValue> key, [Runtime::InteropServices::Out] TValue % value);
public bool TryGetValue<TValue> (System.Net.Http.HttpRequestOptionsKey<TValue> key, out TValue value);
member this.TryGetValue : System.Net.Http.HttpRequestOptionsKey<'Value> * 'Value -> bool
Public Function TryGetValue(Of TValue) (key As HttpRequestOptionsKey(Of TValue), ByRef value As TValue) As Boolean
Type Parameters
- TValue
The type of the HTTP value as defined by key
.
Parameters
The strongly typed key to get the value of an HTTP request option.
- value
- TValue
When this method returns, contains the value of the specified HTTP request option.
Returns
true
if the collection contains an element with the specified key; otherwise, false
.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.