FileContentResultExecutor 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public ref class FileContentResultExecutor : Microsoft::AspNetCore::Mvc::Infrastructure::FileResultExecutorBase, Microsoft::AspNetCore::Mvc::Infrastructure::IActionResultExecutor<Microsoft::AspNetCore::Mvc::FileContentResult ^>
public class FileContentResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.FileResultExecutorBase, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor<Microsoft.AspNetCore.Mvc.FileContentResult>
type FileContentResultExecutor = class
inherit FileResultExecutorBase
interface IActionResultExecutor<FileContentResult>
Public Class FileContentResultExecutor
Inherits FileResultExecutorBase
Implements IActionResultExecutor(Of FileContentResult)
- 繼承
- 實作
建構函式
| 名稱 | Description |
|---|---|
| FileContentResultExecutor(ILoggerFactory) |
初始化一個新的 FileContentResultExecutor。 |
欄位
| 名稱 | Description |
|---|---|
| BufferSize |
緩衝區大小:64 × 1024。 (繼承來源 FileResultExecutorBase) |
屬性
| 名稱 | Description |
|---|---|
| Logger |
用來用的伐木機。 (繼承來源 FileResultExecutorBase) |
方法
| 名稱 | Description |
|---|---|
| ExecuteAsync(ActionContext, FileContentResult) |
非同步執行動作結果,方法是修改 HttpResponse。 |
| SetHeadersAndLog(ActionContext, FileResult, Nullable<Int64>, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue) |
設定 etag 和 Last modified 標頭。 (繼承來源 FileResultExecutorBase) |
| WriteFileAsync(ActionContext, FileContentResult, RangeItemHeaderValue, Int64) |
寫入檔案內容。 |