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