HttpResponseBase.AppendHeader(String, String) 方法

定義

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

public:
 virtual void AppendHeader(System::String ^ name, System::String ^ value);
public virtual void AppendHeader (string name, string value);
abstract member AppendHeader : string * string -> unit
override this.AppendHeader : string * string -> unit
Public Overridable 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.

例外狀況

永遠。Always.

適用於