SendFileResponseExtensions.SendFileAsync 메서드

정의

오버로드

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

SendFileAsync(HttpResponse, String, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

SendFileAsync(HttpResponse, IFileInfo, Int64, Nullable<Int64>, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

SendFileAsync(HttpResponse, String, Int64, Nullable<Int64>, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Extensions.FileProviders.IFileInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, file As IFileInfo, Optional cancellationToken As CancellationToken = Nothing) As Task

매개 변수

response
HttpResponse
file
IFileInfo

파일입니다.

반환

적용 대상

SendFileAsync(HttpResponse, String, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, fileName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

매개 변수

response
HttpResponse
fileName
String

파일의 전체 경로입니다.

반환

적용 대상

SendFileAsync(HttpResponse, IFileInfo, Int64, Nullable<Int64>, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, long offset, long? count, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Extensions.FileProviders.IFileInfo * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, file As IFileInfo, offset As Long, count As Nullable(Of Long), Optional cancellationToken As CancellationToken = Nothing) As Task

매개 변수

response
HttpResponse
file
IFileInfo

파일입니다.

offset
Int64

파일의 오프셋입니다.

count
Nullable<Int64>

보낼 바이트 수 또는 파일의 나머지를 보낼 null입니다.

cancellationToken
CancellationToken

반환

적용 대상

SendFileAsync(HttpResponse, String, Int64, Nullable<Int64>, CancellationToken)

SendFile 확장을 사용하여 지정된 파일을 보냅니다.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, long offset, long? count, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * string * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, fileName As String, offset As Long, count As Nullable(Of Long), Optional cancellationToken As CancellationToken = Nothing) As Task

매개 변수

response
HttpResponse
fileName
String

파일의 전체 경로입니다.

offset
Int64

파일의 오프셋입니다.

count
Nullable<Int64>

보낼 바이트 수 또는 파일의 나머지를 보낼 null입니다.

cancellationToken
CancellationToken

반환

적용 대상