HttpResponseBase.AppendCookie(HttpCookie) 方法

定義

將 HTTP Cookie 加入至 HTTP 回應 Cookie 集合中。Adds an HTTP cookie to the HTTP response cookie collection.

public:
 virtual void AppendCookie(System::Web::HttpCookie ^ cookie);
public virtual void AppendCookie (System.Web.HttpCookie cookie);
abstract member AppendCookie : System.Web.HttpCookie -> unit
override this.AppendCookie : System.Web.HttpCookie -> unit
Public Overridable Sub AppendCookie (cookie As HttpCookie)

參數

cookie
HttpCookie

要加入至回應的 Cookie。The cookie to add to the response.

例外狀況

永遠。Always.

適用於