FileContentResult 생성자

정의

오버로드

FileContentResult(Byte[], MediaTypeHeaderValue)

제공된 fileContentscontentType를 사용하여 새 FileContentResult instance 만듭니다.

FileContentResult(Byte[], String)

제공된 fileContentscontentType를 사용하여 새 FileContentResult instance 만듭니다.

FileContentResult(Byte[], MediaTypeHeaderValue)

Source:
FileContentResult.cs
Source:
FileContentResult.cs

제공된 fileContentscontentType를 사용하여 새 FileContentResult instance 만듭니다.

public:
 FileContentResult(cli::array <System::Byte> ^ fileContents, Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ contentType);
public FileContentResult (byte[] fileContents, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType);
new Microsoft.AspNetCore.Mvc.FileContentResult : byte[] * Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> Microsoft.AspNetCore.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As MediaTypeHeaderValue)

매개 변수

fileContents
Byte[]

파일 내용을 나타내는 바이트입니다.

contentType
MediaTypeHeaderValue

응답의 Content-Type 헤더입니다.

적용 대상

FileContentResult(Byte[], String)

Source:
FileContentResult.cs
Source:
FileContentResult.cs

제공된 fileContentscontentType를 사용하여 새 FileContentResult instance 만듭니다.

public:
 FileContentResult(cli::array <System::Byte> ^ fileContents, System::String ^ contentType);
public FileContentResult (byte[] fileContents, string contentType);
new Microsoft.AspNetCore.Mvc.FileContentResult : byte[] * string -> Microsoft.AspNetCore.Mvc.FileContentResult
Public Sub New (fileContents As Byte(), contentType As String)

매개 변수

fileContents
Byte[]

파일 내용을 나타내는 바이트입니다.

contentType
String

응답의 Content-Type 헤더입니다.

적용 대상