HttpResponseWrapper.WriteFile Método
Definição
Grava o arquivo especificado no fluxo de saída de resposta HTTP.Writes the specified file to the HTTP response output stream.
Sobrecargas
| WriteFile(IntPtr, Int64, Int64) |
Grava o arquivo especificado no fluxo de saída de resposta HTTP.Writes the specified file to the HTTP response output stream. |
| WriteFile(String, Int64, Int64) |
Grava o arquivo especificado no fluxo de saída de resposta HTTP.Writes the specified file to the HTTP response output stream. |
| WriteFile(String) |
Grava o conteúdo do arquivo especificado no fluxo de saída de resposta HTTP como um bloco de arquivo.Writes the contents of the specified file to the HTTP response output stream as a file block. |
| WriteFile(String, Boolean) |
Grava o conteúdo do arquivo especificado no fluxo de saída de resposta HTTP e especifica se o conteúdo é gravado como um bloco de memória.Writes the contents of the specified file to the HTTP response output stream and specifies whether the content is written as a memory block. |
WriteFile(IntPtr, Int64, Int64)
Grava o arquivo especificado no fluxo de saída de resposta HTTP.Writes the specified file to the HTTP response output stream.
public:
override void WriteFile(IntPtr fileHandle, long offset, long size);
public override void WriteFile (IntPtr fileHandle, long offset, long size);
override this.WriteFile : nativeint * int64 * int64 -> unit
Public Overrides Sub WriteFile (fileHandle As IntPtr, offset As Long, size As Long)
Parâmetros
- fileHandle
- IntPtr
O identificador de arquivo do arquivo a ser gravado no fluxo de saída HTTP.The file handle of the file to write to the HTTP output stream.
- offset
- Int64
A posição do arquivo em que a gravação começa.The position in the file where writing starts.
- size
- Int64
O número de bytes a serem gravados, começando em offset.The number of bytes to write, starting at offset.
Exceções
fileHandle é null.fileHandle is null.
offset é menor que 0.offset is less than 0.
- ou --or-
size é maior que o tamanho do arquivo menos offset.size is greater than the file size minus offset.
Aplica-se a
WriteFile(String, Int64, Int64)
Grava o arquivo especificado no fluxo de saída de resposta HTTP.Writes the specified file to the HTTP response output stream.
public:
override void WriteFile(System::String ^ filename, long offset, long size);
public override void WriteFile (string filename, long offset, long size);
override this.WriteFile : string * int64 * int64 -> unit
Public Overrides Sub WriteFile (filename As String, offset As Long, size As Long)
Parâmetros
- filename
- String
O nome do arquivo a ser gravado no fluxo de saída HTTP.The name of the file to write to the HTTP output stream.
- offset
- Int64
A posição do arquivo em que a gravação começa.The position in the file where writing starts.
- size
- Int64
O número de bytes a serem gravados, começando em offset.The number of bytes to write, starting at offset.
Exceções
offset é menor que 0.offset is less than 0.
- ou --or-
size é maior que o tamanho do arquivo menos offset.size is greater than the file size minus offset.
Aplica-se a
WriteFile(String)
Grava o conteúdo do arquivo especificado no fluxo de saída de resposta HTTP como um bloco de arquivo.Writes the contents of the specified file to the HTTP response output stream as a file block.
public:
override void WriteFile(System::String ^ filename);
public override void WriteFile (string filename);
override this.WriteFile : string -> unit
Public Overrides Sub WriteFile (filename As String)
Parâmetros
- filename
- String
O nome do arquivo a ser gravado no fluxo de saída HTTP.The name of the file to write to the HTTP output stream.
Exceções
O parâmetro filename é null.The filename parameter is null.
Aplica-se a
WriteFile(String, Boolean)
Grava o conteúdo do arquivo especificado no fluxo de saída de resposta HTTP e especifica se o conteúdo é gravado como um bloco de memória.Writes the contents of the specified file to the HTTP response output stream and specifies whether the content is written as a memory block.
public:
override void WriteFile(System::String ^ filename, bool readIntoMemory);
public override void WriteFile (string filename, bool readIntoMemory);
override this.WriteFile : string * bool -> unit
Public Overrides Sub WriteFile (filename As String, readIntoMemory As Boolean)
Parâmetros
- filename
- String
O nome do arquivo a gravar na resposta atual.The name of the file to write to the current response.
- readIntoMemory
- Boolean
true para gravar o arquivo em um bloco de memória.true to write the file into a memory block.
Exceções
O parâmetro filename é null.The filename parameter is null.