HttpRequestOptions.Set<TValue> Metoda

Definicja

Ustawia wartość określonej opcji żądania HTTP.

public:
generic <typename TValue>
 void Set(System::Net::Http::HttpRequestOptionsKey<TValue> key, TValue value);
public void Set<TValue> (System.Net.Http.HttpRequestOptionsKey<TValue> key, TValue value);
member this.Set : System.Net.Http.HttpRequestOptionsKey<'Value> * 'Value -> unit
Public Sub Set(Of TValue) (key As HttpRequestOptionsKey(Of TValue), value As TValue)

Parametry typu

TValue

Typ wartości HTTP zdefiniowanej przez key.

Parametry

key
HttpRequestOptionsKey<TValue>

Silnie wpisany klucz dla opcji żądania HTTP.

value
TValue

Wartość opcji żądania HTTP.

Dotyczy