Compartilhar via


FileContentResult Construtores

Definição

Sobrecargas

FileContentResult(Byte[], MediaTypeHeaderValue)

Cria uma nova FileContentResult instância com o fornecido fileContents e o fornecido contentType.

FileContentResult(Byte[], String)

Cria uma nova FileContentResult instância com o fornecido fileContents e o fornecido contentType.

FileContentResult(Byte[], MediaTypeHeaderValue)

Origem:
FileContentResult.cs
Origem:
FileContentResult.cs

Cria uma nova FileContentResult instância com o fornecido fileContents e o fornecido contentType.

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)

Parâmetros

fileContents
Byte[]

Os bytes que representam o conteúdo do arquivo.

contentType
MediaTypeHeaderValue

O cabeçalho Content-Type da resposta.

Aplica-se a

FileContentResult(Byte[], String)

Origem:
FileContentResult.cs
Origem:
FileContentResult.cs

Cria uma nova FileContentResult instância com o fornecido fileContents e o fornecido contentType.

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)

Parâmetros

fileContents
Byte[]

Os bytes que representam o conteúdo do arquivo.

contentType
String

O cabeçalho Content-Type da resposta.

Aplica-se a