DataServiceRequestArgs.Headers Property

Gets the headers in the request message.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public ReadOnly Property Headers As Dictionary(Of String, String)
    Get
'Usage
Dim instance As DataServiceRequestArgs 
Dim value As Dictionary(Of String, String)

value = instance.Headers
public Dictionary<string, string> Headers { get; }
public:
property Dictionary<String^, String^>^ Headers {
    Dictionary<String^, String^>^ get ();
}
member Headers : Dictionary<string, string>
function get Headers () : Dictionary<String, String>

Property Value

Type: System.Collections.Generic.Dictionary<String, String>
The headers in the request message.

Remarks

The response is a Dictionary<TKey, TValue> object that contains key-value pairs of strings for each header in the request.

No validation is performed on the headers in the Headers property. Therefore, make sure that you do not change an HTTP header in a way that changes the meaning of the request.

See Also

Reference

DataServiceRequestArgs Class

System.Data.Services.Client Namespace