DataServiceRequestArgs.Headers Property

Gets the headers in the request message.

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

public Dictionary<string, string> Headers { get; }

Property Value

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

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.


Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions