共用方式為


DataServiceStreamResponse.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 DataServiceStreamResponse
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> 物件。

備註

回應是 Dictionary<TKey, TValue> 物件,它包含回應中每個標頭的索引鍵值組字串。

請參閱

參考

DataServiceStreamResponse 類別

System.Data.Services.Client 命名空間