ControllerBase.PhysicalFile Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String, String, Boolean) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String, String) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String, Boolean) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue) |
Mengembalikan file yang ditentukan oleh |
PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK), yang ditentukan contentType
sebagai Jenis Konten, dan yang ditentukan fileDownloadName
sebagai nama file yang disarankan.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue, enableRangeProcessing As Boolean) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
- fileDownloadName
- String
Nama file yang disarankan.
- lastModified
- Nullable<DateTimeOffset>
Saat DateTimeOffset file terakhir dimodifikasi.
- entityTag
- EntityTagHeaderValue
Yang EntityTagHeaderValue terkait dengan file.
- enableRangeProcessing
- Boolean
Atur ke true
untuk mengaktifkan pemrosesan permintaan rentang.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK), yang ditentukan contentType
sebagai Jenis Konten, dan yang ditentukan fileDownloadName
sebagai nama file yang disarankan.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
- fileDownloadName
- String
Nama file yang disarankan.
- lastModified
- Nullable<DateTimeOffset>
Saat DateTimeOffset file terakhir dimodifikasi.
- entityTag
- EntityTagHeaderValue
Yang EntityTagHeaderValue terkait dengan file.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK), dan yang ditentukan contentType
sebagai Tipe Konten.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue, enableRangeProcessing As Boolean) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
- lastModified
- Nullable<DateTimeOffset>
Saat DateTimeOffset file terakhir dimodifikasi.
- entityTag
- EntityTagHeaderValue
Yang EntityTagHeaderValue terkait dengan file.
- enableRangeProcessing
- Boolean
Atur ke true
untuk mengaktifkan pemrosesan permintaan rentang.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
PhysicalFile(String, String, String, Boolean)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK) dengan yang ditentukan contentType
sebagai Tipe Konten dan yang ditentukan fileDownloadName
sebagai nama file yang disarankan.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, enableRangeProcessing As Boolean) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
- fileDownloadName
- String
Nama file yang disarankan.
- enableRangeProcessing
- Boolean
Atur ke true
untuk mengaktifkan pemrosesan permintaan rentang.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
PhysicalFile(String, String)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK) dengan yang ditentukan contentType
sebagai Tipe Konten.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
PhysicalFile(String, String, String)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK) dengan yang ditentukan contentType
sebagai Tipe Konten dan yang ditentukan fileDownloadName
sebagai nama file yang disarankan.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
- fileDownloadName
- String
Nama file yang disarankan.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
PhysicalFile(String, String, Boolean)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK) dengan yang ditentukan contentType
sebagai Tipe Konten.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, enableRangeProcessing As Boolean) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
- enableRangeProcessing
- Boolean
Atur ke true
untuk mengaktifkan pemrosesan permintaan rentang.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
- Sumber:
- ControllerBase.cs
Mengembalikan file yang ditentukan oleh physicalPath
(Status200OK), dan yang ditentukan contentType
sebagai Tipe Konten.
Ini mendukung permintaan rentang (Status206PartialContent atau Status416RangeNotSatisfiable jika rentang tidak terpenuhi).
public:
virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue) As PhysicalFileResult
Parameter
- physicalPath
- String
Jalur ke file. Jalur harus merupakan jalur absolut.
- contentType
- String
Tipe Konten file.
- lastModified
- Nullable<DateTimeOffset>
Saat DateTimeOffset file terakhir dimodifikasi.
- entityTag
- EntityTagHeaderValue
Yang EntityTagHeaderValue terkait dengan file.
Mengembalikan
yang dibuat PhysicalFileResult untuk respons.
- Atribut
Berlaku untuk
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk