共用方式為


FileResponseElement(String, Int64, Int64) 建構函式

定義

初始化 FileResponseElement 類別的新執行個體。

public:
 FileResponseElement(System::String ^ path, long offset, long length);
public FileResponseElement (string path, long offset, long length);
new System.Web.Caching.FileResponseElement : string * int64 * int64 -> System.Web.Caching.FileResponseElement
Public Sub New (path As String, offset As Long, length As Long)

參數

path
String

完整的檔案路徑。

offset
Int64

檔案中字串開始的位置。

length
Int64

於位移處開始的資料長度,此位移表示檔案中 path 定義的輸出快取區資料。

例外狀況

pathnull

offsetlength 小於零。

備註

如果完整輸出快取回應包含在單一檔案中,提供者會使用零的位移來初始化 FileResponseElement 類別,而長度等於整個檔案的大小。 如果完整的輸出快取回應只包含在檔案的一部分,提供者會使用輸出快取回應開始的檔案中的位移來初始化 FileResponseElement 類別,長度等於儲存在該檔案中的輸出快取回應大小。

適用於