Share via


FileContentResult Konstruktory

Definice

Přetížení

FileContentResult(Byte[], MediaTypeHeaderValue)

Vytvoří novou FileContentResult instanci se zadanými fileContents a zadanými contentType.

FileContentResult(Byte[], String)

Vytvoří novou FileContentResult instanci se zadanými fileContents a zadanými contentType.

FileContentResult(Byte[], MediaTypeHeaderValue)

Zdroj:
FileContentResult.cs
Zdroj:
FileContentResult.cs

Vytvoří novou FileContentResult instanci se zadanými fileContents a zadanými 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)

Parametry

fileContents
Byte[]

Bajty, které představují obsah souboru.

contentType
MediaTypeHeaderValue

Hlavička Content-Type odpovědi.

Platí pro

FileContentResult(Byte[], String)

Zdroj:
FileContentResult.cs
Zdroj:
FileContentResult.cs

Vytvoří novou FileContentResult instanci se zadanými fileContents a zadanými 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)

Parametry

fileContents
Byte[]

Bajty, které představují obsah souboru.

contentType
String

Hlavička Content-Type odpovědi.

Platí pro