ControllerBase.PhysicalFile Yöntem

Tanım

Aşırı Yüklemeler

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

() Tarafından belirtilen dosyayı physicalPath Status200OK , contentType içerik türü olarak belirtilen ve fileDownloadName önerilen dosya adı olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

() Tarafından belirtilen dosyayı physicalPath Status200OK , contentType içerik türü olarak belirtilen ve fileDownloadName önerilen dosya adı olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

() Tarafından belirtilen dosyayı physicalPath Status200OK ve contentType içerik türü olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

PhysicalFile(String, String, String, Boolean)

physicalPath Status200OK contentType İçerik türü olarak belirtilen ve önerilen dosya adı olarak belirtilen olan () tarafından belirtilen dosyayı döndürür fileDownloadName . Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

PhysicalFile(String, String, Boolean)

physicalPath Status200OK İçerik türü olarak belirtilen () ile belirtilen dosyayı döndürür contentType . Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

PhysicalFile(String, String, String)

physicalPath Status200OK contentType İçerik türü olarak belirtilen ve önerilen dosya adı olarak belirtilen olan () tarafından belirtilen dosyayı döndürür fileDownloadName . Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

() Tarafından belirtilen dosyayı physicalPath Status200OK ve contentType içerik türü olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

PhysicalFile(String, String)

tarafından belirtilen dosyayı physicalPath ( Status200OK ) contentType Content-Type olarak belirtilen ile döndürür. Bu, aralık isteklerini ( Status206PartialContent veya Status416RangeNotSatisfiable aralığın uygun olup olmadığını) destekler.

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

() Tarafından belirtilen dosyayı physicalPath Status200OK , contentType içerik türü olarak belirtilen ve fileDownloadName önerilen dosya adı olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol, mutlak bir yol olmalıdır.

contentType
String

Dosyanın Içerik türü.

fileDownloadName
String

Önerilen dosya adı.

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetDosyanın son değiştirilme tarihi.

entityTag
EntityTagHeaderValue

EntityTagHeaderValueDosyayla ilişkili.

enableRangeProcessing
Boolean

Aralık istekleri işlemesini etkinleştirmek için true olarak ayarlayın.

Döndürülenler

PhysicalFileResult

PhysicalFileResultYanıt için oluşturulan.

Öznitelikler

Şunlara uygulanır

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

() Tarafından belirtilen dosyayı physicalPath Status200OK , contentType içerik türü olarak belirtilen ve fileDownloadName önerilen dosya adı olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol, mutlak bir yol olmalıdır.

contentType
String

Dosyanın Içerik türü.

fileDownloadName
String

Önerilen dosya adı.

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetDosyanın son değiştirilme tarihi.

entityTag
EntityTagHeaderValue

EntityTagHeaderValueDosyayla ilişkili.

Döndürülenler

PhysicalFileResult

PhysicalFileResultYanıt için oluşturulan.

Öznitelikler

Şunlara uygulanır

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

() Tarafından belirtilen dosyayı physicalPath Status200OK ve contentType içerik türü olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol, mutlak bir yol olmalıdır.

contentType
String

Dosyanın Içerik türü.

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetDosyanın son değiştirilme tarihi.

entityTag
EntityTagHeaderValue

EntityTagHeaderValueDosyayla ilişkili.

enableRangeProcessing
Boolean

Aralık istekleri işlemesini etkinleştirmek için true olarak ayarlayın.

Döndürülenler

PhysicalFileResult

PhysicalFileResultYanıt için oluşturulan.

Öznitelikler

Şunlara uygulanır

PhysicalFile(String, String, String, Boolean)

physicalPath Status200OK contentType İçerik türü olarak belirtilen ve önerilen dosya adı olarak belirtilen olan () tarafından belirtilen dosyayı döndürür fileDownloadName . Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol, mutlak bir yol olmalıdır.

contentType
String

Dosyanın Içerik türü.

fileDownloadName
String

Önerilen dosya adı.

enableRangeProcessing
Boolean

Aralık istekleri işlemesini etkinleştirmek için true olarak ayarlayın.

Döndürülenler

PhysicalFileResult

PhysicalFileResultYanıt için oluşturulan.

Öznitelikler

Şunlara uygulanır

PhysicalFile(String, String, Boolean)

physicalPath Status200OK İçerik türü olarak belirtilen () ile belirtilen dosyayı döndürür contentType . Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol, mutlak bir yol olmalıdır.

contentType
String

Dosyanın Içerik türü.

enableRangeProcessing
Boolean

Aralık istekleri işlemesini etkinleştirmek için true olarak ayarlayın.

Döndürülenler

PhysicalFileResult

PhysicalFileResultYanıt için oluşturulan.

Öznitelikler

Şunlara uygulanır

PhysicalFile(String, String, String)

physicalPath Status200OK contentType İçerik türü olarak belirtilen ve önerilen dosya adı olarak belirtilen olan () tarafından belirtilen dosyayı döndürür fileDownloadName . Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol, mutlak bir yol olmalıdır.

contentType
String

Dosyanın Içerik türü.

fileDownloadName
String

Önerilen dosya adı.

Döndürülenler

PhysicalFileResult

PhysicalFileResultYanıt için oluşturulan.

Öznitelikler

Şunlara uygulanır

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

() Tarafından belirtilen dosyayı physicalPath Status200OK ve contentType içerik türü olarak belirtilen dosyayı döndürür. Bu, Aralık isteklerini destekler ( Status206PartialContent veya Status416RangeNotSatisfiable Aralık satisfiable değilse).

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol, mutlak bir yol olmalıdır.

contentType
String

Dosyanın Içerik türü.

lastModified
Nullable<DateTimeOffset>

DateTimeOffsetDosyanın son değiştirilme tarihi.

entityTag
EntityTagHeaderValue

EntityTagHeaderValueDosyayla ilişkili.

Döndürülenler

PhysicalFileResult

PhysicalFileResultYanıt için oluşturulan.

Öznitelikler

Şunlara uygulanır

PhysicalFile(String, String)

tarafından belirtilen dosyayı physicalPath ( Status200OK ) contentType Content-Type olarak belirtilen ile döndürür. Bu, aralık isteklerini ( Status206PartialContent veya Status416RangeNotSatisfiable aralığın uygun olup olmadığını) destekler.

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

Parametreler

physicalPath
String

Dosyanın yolu. Yol mutlak bir yol olması gerekir.

contentType
String

Dosyanın Content-Type.

Döndürülenler

PhysicalFileResult

Yanıt PhysicalFileResult için oluşturulan.

Öznitelikler

Şunlara uygulanır