Results.Bytes 메서드

정의

오버로드

Bytes(Byte[], String, String, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue)

바이트 배열 콘텐츠를 응답에 씁니다.

범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

이 API는 의 File(Byte[], String, String, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue)별칭입니다.

Bytes(ReadOnlyMemory<Byte>, String, String, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue)

바이트 배열 콘텐츠를 응답에 씁니다.

범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

Bytes(Byte[], String, String, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue)

바이트 배열 콘텐츠를 응답에 씁니다.

범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

이 API는 의 File(Byte[], String, String, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue)별칭입니다.

public static Microsoft.AspNetCore.Http.IResult Bytes (byte[] contents, string? contentType = default, string? fileDownloadName = default, bool enableRangeProcessing = false, DateTimeOffset? lastModified = default, Microsoft.Net.Http.Headers.EntityTagHeaderValue? entityTag = default);
static member Bytes : byte[] * string * string * bool * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Bytes (contents As Byte(), Optional contentType As String = Nothing, Optional fileDownloadName As String = Nothing, Optional enableRangeProcessing As Boolean = false, Optional lastModified As Nullable(Of DateTimeOffset) = Nothing, Optional entityTag As EntityTagHeaderValue = Nothing) As IResult

매개 변수

contents
Byte[]

파일 내용입니다.

contentType
String

파일의 Content-Type입니다.

fileDownloadName
String

제안된 파일 이름입니다.

enableRangeProcessing
Boolean

범위 요청 처리를 사용하도록 설정하려면 로 true 설정합니다.

lastModified
Nullable<DateTimeOffset>

DateTimeOffset 파일이 마지막으로 수정된 시기의 입니다.

entityTag
EntityTagHeaderValue

EntityTagHeaderValue 파일과 연결된 입니다.

반환

응답에 대해 만들어진 IResult 입니다.

적용 대상

Bytes(ReadOnlyMemory<Byte>, String, String, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue)

바이트 배열 콘텐츠를 응답에 씁니다.

범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public static Microsoft.AspNetCore.Http.IResult Bytes (ReadOnlyMemory<byte> contents, string? contentType = default, string? fileDownloadName = default, bool enableRangeProcessing = false, DateTimeOffset? lastModified = default, Microsoft.Net.Http.Headers.EntityTagHeaderValue? entityTag = default);
static member Bytes : ReadOnlyMemory<byte> * string * string * bool * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Bytes (contents As ReadOnlyMemory(Of Byte), Optional contentType As String = Nothing, Optional fileDownloadName As String = Nothing, Optional enableRangeProcessing As Boolean = false, Optional lastModified As Nullable(Of DateTimeOffset) = Nothing, Optional entityTag As EntityTagHeaderValue = Nothing) As IResult

매개 변수

contents
ReadOnlyMemory<Byte>

파일 내용입니다.

contentType
String

파일의 Content-Type입니다.

fileDownloadName
String

제안된 파일 이름입니다.

enableRangeProcessing
Boolean

범위 요청 처리를 사용하도록 설정하려면 로 true 설정합니다.

lastModified
Nullable<DateTimeOffset>

DateTimeOffset 파일이 마지막으로 수정된 시기의 입니다.

entityTag
EntityTagHeaderValue

EntityTagHeaderValue 파일과 연결된 입니다.

반환

응답에 대해 만들어진 IResult 입니다.

적용 대상