Sdílet prostřednictvím


FilePathResult(String, String) Konstruktor

Definice

Inicializuje novou instanci FilePathResult třídy pomocí zadaného názvu souboru a typu obsahu.

public FilePathResult (string fileName, string contentType);
new System.Web.Mvc.FilePathResult : string * string -> System.Web.Mvc.FilePathResult
Public Sub New (fileName As String, contentType As String)

Parametry

fileName
String

Název souboru, který se má odeslat na odpověď.

contentType
String

Typ obsahu odpovědi.

Výjimky

Parametr fileName je null nebo prázdný.

Platí pro