FileResult(String) 建構函式

定義

使用提供的 contentType 建立新的 FileResult 實例。

protected:
 FileResult(System::String ^ contentType);
protected FileResult (string contentType);
new Microsoft.AspNetCore.Mvc.FileResult : string -> Microsoft.AspNetCore.Mvc.FileResult
Protected Sub New (contentType As String)

參數

contentType
String

回應的 Content-Type 標頭。

適用於