ResponseExtensions.WriteBinary 方法

定義

多載

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 型別。

適用於