Partager via


ClientWebSocketOptions.SetRequestHeader(String, String) Méthode

Définition

Crée un en-tête de requête HTTP et sa valeur.

public:
 void SetRequestHeader(System::String ^ headerName, System::String ^ headerValue);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public void SetRequestHeader (string headerName, string? headerValue);
public void SetRequestHeader (string headerName, string headerValue);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.SetRequestHeader : string * string -> unit
member this.SetRequestHeader : string * string -> unit
Public Sub SetRequestHeader (headerName As String, headerValue As String)

Paramètres

headerName
String

Nom de l’en-tête HTTP.

headerValue
String

Valeur de l’en-tête HTTP.

Attributs

S’applique à