Share via


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 標頭。

適用於