HttpResponseWrapper.AppendHeader(String, String) 方法

定義

將 HTTP 標頭加入至目前回應。Adds an HTTP header to the current response.

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

參數

name
String

要加入至目前回應的 HTTP 標頭名稱。The name of the HTTP header to add to the current response.

value
String

標頭的值。The value of the header.

例外狀況

在送出 HTTP 標頭之後附加標頭。The header was appended after the HTTP headers were sent.

適用於