DataServiceRequestArgs.Headers 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得請求訊息中的標頭。
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 標頭,避免改變請求的意義。