次の方法で共有


FileResultExecutorBase.SetHeadersAndLog メソッド

定義

etag ヘッダーと最後に変更されたヘッダーを設定します。

protected virtual (Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength, bool serveBody) SetHeadersAndLog (Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileResult result, long? fileLength, bool enableRangeProcessing, DateTimeOffset? lastModified = default, Microsoft.Net.Http.Headers.EntityTagHeaderValue etag = default);
protected virtual (Microsoft.Net.Http.Headers.RangeItemHeaderValue? range, long rangeLength, bool serveBody) SetHeadersAndLog (Microsoft.AspNetCore.Mvc.ActionContext context, Microsoft.AspNetCore.Mvc.FileResult result, long? fileLength, bool enableRangeProcessing, DateTimeOffset? lastModified = default, Microsoft.Net.Http.Headers.EntityTagHeaderValue? etag = default);
abstract member SetHeadersAndLog : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.FileResult * Nullable<int64> * bool * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> ValueTuple<Microsoft.Net.Http.Headers.RangeItemHeaderValue, int64, bool>
override this.SetHeadersAndLog : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.FileResult * Nullable<int64> * bool * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> ValueTuple<Microsoft.Net.Http.Headers.RangeItemHeaderValue, int64, bool>
Protected Overridable Function SetHeadersAndLog (context As ActionContext, result As FileResult, fileLength As Nullable(Of Long), enableRangeProcessing As Boolean, Optional lastModified As Nullable(Of DateTimeOffset) = Nothing, Optional etag As EntityTagHeaderValue = Nothing) As ValueTuple(Of RangeItemHeaderValue, Long, Boolean)

パラメーター

fileLength
Nullable<Int64>

null 許容ファイルの長さ。

enableRangeProcessing
Boolean

範囲処理が有効になっているかどうか。

lastModified
Nullable<DateTimeOffset>

null 許容の lastModified 日付。

戻り値

範囲、長さ、本文が提供されたかどうかを示すタプル RangeItemHeaderValue

適用対象