SendFileResponseExtensions.SendFileAsync Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
SendFileAsync(HttpResponse, IFileInfo, CancellationToken) |
Verilen dosyayı SendFile uzantısını kullanarak gönderir. |
SendFileAsync(HttpResponse, String, CancellationToken) |
Verilen dosyayı SendFile uzantısını kullanarak gönderir. |
SendFileAsync(HttpResponse, IFileInfo, Int64, Nullable<Int64>, CancellationToken) |
Verilen dosyayı SendFile uzantısını kullanarak gönderir. |
SendFileAsync(HttpResponse, String, Int64, Nullable<Int64>, CancellationToken) |
Verilen dosyayı SendFile uzantısını kullanarak gönderir. |
SendFileAsync(HttpResponse, IFileInfo, CancellationToken)
Verilen dosyayı SendFile uzantısını kullanarak gönderir.
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
Parametreler
- response
- HttpResponse
- file
- IFileInfo
Dosya.
- cancellationToken
- CancellationToken
Döndürülenler
Şunlara uygulanır
SendFileAsync(HttpResponse, String, CancellationToken)
Verilen dosyayı SendFile uzantısını kullanarak gönderir.
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
Parametreler
- response
- HttpResponse
- fileName
- String
Dosyanın tam yolu.
- cancellationToken
- CancellationToken
Döndürülenler
Şunlara uygulanır
SendFileAsync(HttpResponse, IFileInfo, Int64, Nullable<Int64>, CancellationToken)
Verilen dosyayı SendFile uzantısını kullanarak gönderir.
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
Parametreler
- response
- HttpResponse
- file
- IFileInfo
Dosya.
- offset
- Int64
Dosyadaki uzaklık.
- cancellationToken
- CancellationToken
Döndürülenler
Şunlara uygulanır
SendFileAsync(HttpResponse, String, Int64, Nullable<Int64>, CancellationToken)
Verilen dosyayı SendFile uzantısını kullanarak gönderir.
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
Parametreler
- response
- HttpResponse
- fileName
- String
Dosyanın tam yolu.
- offset
- Int64
Dosyadaki uzaklık.
- cancellationToken
- CancellationToken
Döndürülenler
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin