共用方式為


WebRequestInfo.Headers 屬性

取得或設定包含的標頭,將會傳送 HTTP 邀請中的名稱值組的字典。

命名空間:  Microsoft.SharePoint.Client
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public Property Headers As IDictionary(Of String, String)
    Get
    Set
'用途
Dim instance As WebRequestInfo
Dim value As IDictionary(Of String, String)

value = instance.Headers

instance.Headers = value
public IDictionary<string, string> Headers { get; set; }

屬性值

類型:System.Collections.Generic.IDictionary<String, String>
含有名稱值組字典。

請參閱

參照

WebRequestInfo 類別

WebRequestInfo 成員

Microsoft.SharePoint.Client 命名空間