Freigeben über


ClientWebSocketOptions.SetRequestHeader(String, String) Methode

Definition

Erstellt einen HTTP-Anforderungsheader und seinen Wert.

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)

Parameter

headerName
String

Der Name des HTTP-Headers.

headerValue
String

Der Wert des HTTP-Headers.

Attribute

Gilt für: