ResponseExtensions.WriteBinary 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
WriteBinary(HttpResponseBase, Byte[]) |
將表示未指定型別之二進位內容的位元組序列寫入 HTTP 回應的輸出資料流。 |
WriteBinary(HttpResponseBase, Byte[], String) |
將表示指定 MIME 型別之二進位內容的位元組序列寫入 HTTP 回應的輸出資料流。 |
WriteBinary(HttpResponseBase, Byte[])
將表示未指定型別之二進位內容的位元組序列寫入 HTTP 回應的輸出資料流。
public static void WriteBinary (this System.Web.HttpResponseBase response, byte[] data);
static member WriteBinary : System.Web.HttpResponseBase * byte[] -> unit
<Extension()>
Public Sub WriteBinary (response As HttpResponseBase, data As Byte())
參數
- response
- HttpResponseBase
HTTP 回應執行個體。
- data
- Byte[]
包含要寫入之位元組的陣列。
適用於
WriteBinary(HttpResponseBase, Byte[], String)
將表示指定 MIME 型別之二進位內容的位元組序列寫入 HTTP 回應的輸出資料流。
public static void WriteBinary (this System.Web.HttpResponseBase response, byte[] data, string mimeType);
static member WriteBinary : System.Web.HttpResponseBase * byte[] * string -> unit
<Extension()>
Public Sub WriteBinary (response As HttpResponseBase, data As Byte(), mimeType As String)
參數
- response
- HttpResponseBase
收到的 HTTP 回應執行個體。
- data
- Byte[]
包含要寫入之位元組的陣列。
- mimeType
- String
二進位內容的 MIME 型別。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應