HttpResponseWrapper.AddHeader(String, String) 方法

定義

將 HTTP 標頭加入至目前回應。Adds an HTTP header to the current response. 提供這個方法的目的,是為了與 ASP 的舊版本相容。This method is provided for compatibility with earlier versions of ASP.

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

參數

name
String

要加入 value 之 HTTP 標頭的名稱。The name of the HTTP header to add value to.

value
String

要加入標頭的字串。The string to add to the header.

適用於