ResponseExtensions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義基類的 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 回應的輸出資料流。 |