SimpleWorkerRequest.SendResponseFromFile 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 file to the response.
Overloads
SendResponseFromFile(IntPtr, Int64, Int64) |
Adds the contents of the file with the specified handle 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 file with the specified name to the response and specifies the starting position in the file and the number of bytes to send. |
SendResponseFromFile(IntPtr, Int64, Int64)
Adds the contents of the file with the specified handle to the response and specifies the starting position in the file and the number of bytes to send.
public:
override void SendResponseFromFile(IntPtr handle, long offset, long length);
public override void SendResponseFromFile (IntPtr handle, long offset, long length);
override this.SendResponseFromFile : nativeint * int64 * int64 -> unit
Public Overrides 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
SendResponseFromFile(String, Int64, Int64)
Adds the contents of the file with the specified name to the response and specifies the starting position in the file and the number of bytes to send.
public:
override void SendResponseFromFile(System::String ^ filename, long offset, long length);
public override void SendResponseFromFile (string filename, long offset, long length);
override this.SendResponseFromFile : string * int64 * int64 -> unit
Public Overrides 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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기