共用方式為


DataServiceRequestArgs.Headers 屬性

定義

取得請求訊息中的標頭。

public:
 property System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ Headers { System::Collections::Generic::Dictionary<System::String ^, System::String ^> ^ get(); };
public System.Collections.Generic.Dictionary<string,string> Headers { get; }
member this.Headers : System.Collections.Generic.Dictionary<string, string>
Public ReadOnly Property Headers As Dictionary(Of String, String)

屬性值

請求訊息中的標頭。

備註

回應是一個 Dictionary<TKey,TValue> 物件,包含請求中每個標頭的鍵值字串對。

屬性中的 Headers 標頭不會進行任何驗證。 因此,請確保不要更改 HTTP 標頭,避免改變請求的意義。

適用於