FileResult(String) コンストラクター
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定contentType
した を使用して新しいFileResultインスタンスを作成します。
protected:
FileResult(System::String ^ contentType);
C#
protected FileResult (string contentType);
new Microsoft.AspNetCore.Mvc.FileResult : string -> Microsoft.AspNetCore.Mvc.FileResult
Protected Sub New (contentType As String)
- 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 |