Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


IHttpSendFileFeature Interface

Definition

Caution

Use IHttpResponseBodyFeature instead.

Provides an efficient mechanism for transferring files from disk to the network.

C#
public interface IHttpSendFileFeature
C#
[System.Obsolete("Use IHttpResponseBodyFeature instead.", true)]
public interface IHttpSendFileFeature
Derived
Attributes

Methods

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

Sends the requested file in the response body. This may bypass the IHttpResponseFeature.Body Stream. A response may include multiple writes.

Applies to

Προϊόν Εκδόσεις (Καταργήθηκε)
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2 (3.0, 3.1, 5.0)