共用方式為


ResponseExtensions 類別

定義

定義基類的 HttpResponseBase 擴充方法。

public static class ResponseExtensions
type ResponseExtensions = class
Public Module ResponseExtensions
繼承
ResponseExtensions

方法

OutputCache(HttpResponseBase, Int32, Boolean, IEnumerable<String>, IEnumerable<String>, IEnumerable<String>, HttpCacheability)

設定 HTTP 回應執行個體的快取原則。

SetStatus(HttpResponseBase, HttpStatusCode)

使用指定的 HTTP 狀態碼列舉值,設定 HTTP 回應的 HTTP 狀態碼。

SetStatus(HttpResponseBase, Int32)

使用指定的整數值,設定 HTTP 回應的 HTTP 狀態碼。

WriteBinary(HttpResponseBase, Byte[])

將表示未指定型別之二進位內容的位元組序列寫入 HTTP 回應的輸出資料流。

WriteBinary(HttpResponseBase, Byte[], String)

將表示指定 MIME 型別之二進位內容的位元組序列寫入 HTTP 回應的輸出資料流。

適用於