Share via


HttpWebRequestMessage.SetHeader(String, String) Method

Definition

Sets the value of the header with the given name.

public override void SetHeader (string headerName, string headerValue);
override this.SetHeader : string * string -> unit
Public Overrides Sub SetHeader (headerName As String, headerValue As String)

Parameters

headerName
String

Name of the header.

headerValue
String

Value of the header.

Applies to