BackgroundUploader.SetRequestHeader(String, String) Methode

Definition

Wird verwendet, um einen HTTP-Anforderungsheader festzulegen.

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)

Parameter

headerName
String

Platform::String

winrt::hstring

Der Headername.

headerValue
String

Platform::String

winrt::hstring

Der Headerwert.

Implementiert

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)

Gilt für: