语言

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文件定义的输出缓存数据的偏移量开始。

例外

path 是 null。

offset 或 length 小于零。

注解

如果单个文件中包含完整的输出缓存响应,则提供程序使用零偏移量初始化 FileResponseElement 类,长度等于整个文件的大小。 如果完整的输出缓存响应仅包含在文件的一部分,则提供程序将使用输出缓存响应开始的文件中的偏移量初始化 FileResponseElement 类,长度等于存储在该文件中的输出缓存响应的大小。

适用于