共用方式為


AsyncHttpWebRequest.AddHeaders 方法

定義

新增 HTTP 標頭。

public:
 virtual void AddHeaders(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ headers);
public void AddHeaders (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> headers);
abstract member AddHeaders : seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
override this.AddHeaders : seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
Public Sub AddHeaders (headers As IEnumerable(Of KeyValuePair(Of String, String)))

參數

headers
IEnumerable<KeyValuePair<String,String>>

要新增的標頭

實作

適用於