Partager via


BackgroundUploader.SetRequestHeader(String, String) Méthode

Définition

Utilisé pour définir un en-tête de requête 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)

Paramètres

headerName
String

Platform::String

winrt::hstring

Nom de l'en-tête.

headerValue
String

Platform::String

winrt::hstring

La valeur d’en-tête.

Implémente

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)

S’applique à