HttpResponseWrapper.WriteFile 메서드

정의

HTTP 응답 출력 스트림에 지정된 파일을 씁니다.

오버로드

WriteFile(IntPtr, Int64, Int64)

HTTP 응답 출력 스트림에 지정된 파일을 씁니다.

WriteFile(String, Int64, Int64)

HTTP 응답 출력 스트림에 지정된 파일을 씁니다.

WriteFile(String)

지정된 파일의 내용을 HTTP 응답 출력 스트림에 파일 블록으로 씁니다.

WriteFile(String, Boolean)

지정된 파일의 내용을 HTTP 응답 출력 스트림에 쓴 후 내용이 메모리 블록으로 기록되는지 여부를 지정합니다.

WriteFile(IntPtr, Int64, Int64)

HTTP 응답 출력 스트림에 지정된 파일을 씁니다.

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)

매개 변수

fileHandle
IntPtr

nativeint

HTTP 출력 스트림에 쓸 파일의 파일 핸들입니다.

offset
Int64

파일에서 쓰기를 시작할 위치입니다.

size
Int64

offset에서 쓰기 시작할 바이트 수입니다.

예외

fileHandle이(가) null인 경우

offset 가 0보다 작습니다.

또는

size가 파일 크기에서 offset을 뺀 값보다 큰 경우

적용 대상

WriteFile(String, Int64, Int64)

HTTP 응답 출력 스트림에 지정된 파일을 씁니다.

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)

매개 변수

filename
String

HTTP 출력 스트림에 쓸 파일의 이름입니다.

offset
Int64

파일에서 쓰기를 시작할 위치입니다.

size
Int64

offset에서 쓰기 시작할 바이트 수입니다.

예외

offset 가 0보다 작습니다.

또는

size가 파일 크기에서 offset을 뺀 값보다 큰 경우

적용 대상

WriteFile(String)

지정된 파일의 내용을 HTTP 응답 출력 스트림에 파일 블록으로 씁니다.

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)

매개 변수

filename
String

HTTP 출력 스트림에 쓸 파일의 이름입니다.

예외

filename 매개 변수가 null인 경우

적용 대상

WriteFile(String, Boolean)

지정된 파일의 내용을 HTTP 응답 출력 스트림에 쓴 후 내용이 메모리 블록으로 기록되는지 여부를 지정합니다.

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)

매개 변수

filename
String

현재 응답에 쓸 파일의 이름입니다.

readIntoMemory
Boolean

파일을 메모리 블록에 쓰려면true 입니다.

예외

filename 매개 변수가 null인 경우

적용 대상