共用方式為


BackgroundUploader.SetRequestHeader(String, String) 方法

定義

用來設定 HTTP 要求標頭。

public:
 virtual void SetRequestHeader(Platform::String ^ headerName, Platform::String ^ headerValue) = SetRequestHeader;
void SetRequestHeader(winrt::hstring const& headerName, winrt::hstring const& headerValue);
public void SetRequestHeader(string headerName, string headerValue);
function setRequestHeader(headerName, headerValue)
Public Sub SetRequestHeader (headerName As String, headerValue As String)

參數

headerName
String

Platform::String

winrt::hstring

標頭名稱。

headerValue
String

Platform::String

winrt::hstring

標頭值。

實作

M:Windows.Networking.BackgroundTransfer.IBackgroundTransferBase.SetRequestHeader(System.String,System.String) M:Windows.Networking.BackgroundTransfer.IBackgroundTransferBase.SetRequestHeader(Platform::String,Platform::String) M:Windows.Networking.BackgroundTransfer.IBackgroundTransferBase.SetRequestHeader(winrt::hstring,winrt::hstring)

適用於