HttpWorkerRequest.SendResponseFromFile Method
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 file to the response.
SendResponseFromFile(IntPtr, Int64, Int64) |
Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send. |
SendResponseFromFile(String, Int64, Int64) |
Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send. |
Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.
public:
abstract void SendResponseFromFile(IntPtr handle, long offset, long length);
public abstract void SendResponseFromFile (IntPtr handle, long offset, long length);
abstract member SendResponseFromFile : nativeint * int64 * int64 -> unit
Public MustOverride Sub SendResponseFromFile (handle As IntPtr, offset As Long, length As Long)
Parameters
- handle
-
IntPtr
nativeint
The handle of the file to send.
- offset
- Int64
The starting position in the file.
- length
- Int64
The number of bytes to send.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Adds the contents of the specified file to the response and specifies the starting position in the file and the number of bytes to send.
public:
abstract void SendResponseFromFile(System::String ^ filename, long offset, long length);
public abstract void SendResponseFromFile (string filename, long offset, long length);
abstract member SendResponseFromFile : string * int64 * int64 -> unit
Public MustOverride Sub SendResponseFromFile (filename As String, offset As Long, length As Long)
Parameters
- filename
- String
The name of the file to send.
- offset
- Int64
The starting position in the file.
- length
- Int64
The number of bytes to send.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: