英語で読む

次の方法で共有


FileResult(String) コンストラクター

定義

指定contentTypeした を使用して新しいFileResultインスタンスを作成します。

C#
protected FileResult (string contentType);

パラメーター

contentType
String

応答の Content-Type ヘッダー。

適用対象

製品 バージョン
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0