HttpResponse.AddHeader(String, String) HttpResponse.AddHeader(String, String) HttpResponse.AddHeader(String, String) HttpResponse.AddHeader(String, String) Method

Definición

Agrega un encabezado HTTP al flujo de salida.Adds an HTTP header to the output stream. Se proporciona AddHeader(String, String) para ofrecer compatibilidad con versiones anteriores de ASP.AddHeader(String, String) is provided for compatibility with earlier versions of ASP.

public:
 void AddHeader(System::String ^ name, System::String ^ value);
public void AddHeader (string name, string value);
member this.AddHeader : string * string -> unit
Public Sub AddHeader (name As String, value As String)

Parámetros

name
String String String String

Nombre del encabezado HTTP al que se agregará value.The name of the HTTP header to add value to.

value
String String String String

Cadena que se agregará al encabezado.The string to add to the header.

Comentarios

AddHeaderes igual que AppendHeader y solo se proporciona para ofrecer compatibilidad con versiones anteriores de ASP.AddHeader is the same as AppendHeader and is provided only for compatibility with earlier versions of ASP. Con ASP.NET, use AppendHeader.With ASP.NET, use AppendHeader.

Se aplica a