DataServiceRequestArgs.Headers 属性

获取请求信息中的标头。

命名空间:  System.Data.Services.Client
程序集:  Microsoft.Data.Services.Client(在 Microsoft.Data.Services.Client.dll 中)

语法

声明
Public ReadOnly Property Headers As Dictionary(Of String, String)
    Get
用法
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>

属性值

类型:System.Collections.Generic.Dictionary<String, String>
请求信息中的标头。

注释

响应是包含请求中各标头的字符串的关键值对的 Dictionary<TKey, TValue> 对象。

未验证 Headers 中的标头。 因此,请确保不要以更改请求含义的方式来更改 HTTP 标头。

请参阅

参考

DataServiceRequestArgs 类

System.Data.Services.Client 命名空间