HttpWorkerRequest.SendResponseFromMemory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the contents of a memory block to the response.
Overloads
SendResponseFromMemory(Byte[], Int32) |
Adds the specified number of bytes from a byte array to the response. |
SendResponseFromMemory(IntPtr, Int32) |
Adds the specified number of bytes from a block of memory to the response. |
SendResponseFromMemory(Byte[], Int32)
Adds the specified number of bytes from a byte array to the response.
public:
abstract void SendResponseFromMemory(cli::array <System::Byte> ^ data, int length);
public abstract void SendResponseFromMemory (byte[] data, int length);
abstract member SendResponseFromMemory : byte[] * int -> unit
Public MustOverride Sub SendResponseFromMemory (data As Byte(), length As Integer)
Parameters
- data
- Byte[]
The byte array to send.
- length
- Int32
The number of bytes to send, starting at the first byte.
Applies to
SendResponseFromMemory(IntPtr, Int32)
Adds the specified number of bytes from a block of memory to the response.
public:
virtual void SendResponseFromMemory(IntPtr data, int length);
public virtual void SendResponseFromMemory (IntPtr data, int length);
abstract member SendResponseFromMemory : nativeint * int -> unit
override this.SendResponseFromMemory : nativeint * int -> unit
Public Overridable Sub SendResponseFromMemory (data As IntPtr, length As Integer)
Parameters
- data
-
IntPtr
nativeint
An unmanaged pointer to the block of memory.
- length
- Int32
The number of bytes to send.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應