VirtualFileResult Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
VirtualFileResult(String, MediaTypeHeaderValue) |
Creates a new VirtualFileResult instance with
the provided |
VirtualFileResult(String, String) |
Creates a new VirtualFileResult instance with the provided |
VirtualFileResult(String, MediaTypeHeaderValue)
- Source:
- VirtualFileResult.cs
- Source:
- VirtualFileResult.cs
- Source:
- VirtualFileResult.cs
Creates a new VirtualFileResult instance with
the provided fileName
and the
provided contentType
.
public:
VirtualFileResult(System::String ^ fileName, Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ contentType);
public VirtualFileResult (string fileName, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType);
new Microsoft.AspNetCore.Mvc.VirtualFileResult : string * Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> Microsoft.AspNetCore.Mvc.VirtualFileResult
Public Sub New (fileName As String, contentType As MediaTypeHeaderValue)
Parameters
- fileName
- String
The path to the file. The path must be relative/virtual.
- contentType
- MediaTypeHeaderValue
The Content-Type header of the response.
Applies to
VirtualFileResult(String, String)
- Source:
- VirtualFileResult.cs
- Source:
- VirtualFileResult.cs
- Source:
- VirtualFileResult.cs
Creates a new VirtualFileResult instance with the provided fileName
and the provided contentType
.
public:
VirtualFileResult(System::String ^ fileName, System::String ^ contentType);
public VirtualFileResult (string fileName, string contentType);
new Microsoft.AspNetCore.Mvc.VirtualFileResult : string * string -> Microsoft.AspNetCore.Mvc.VirtualFileResult
Public Sub New (fileName As String, contentType As String)
Parameters
- fileName
- String
The path to the file. The path must be relative/virtual.
- contentType
- String
The Content-Type header of the response.