FileResponseElement.Length 属性

定义

获取数据的大小,该数据从包含 FileResponseElement 实例数据的偏移位置开始。Gets the size of the data, starting at the offset that contains the data for a FileResponseElement instance.

public:
 property long Length { long get(); };
public long Length { get; }
member this.Length : int64
Public ReadOnly Property Length As Long

属性值

Int64

数据的大小。The size of the data.

注解

如果完整的输出缓存响应包含在单个文件中,则输出缓存提供程序将 FileResponseElement 使用与整个文件大小相等的长度来初始化类。If the complete output-cache response is contained in a single file, an output cache provider initializes the FileResponseElement class by using a length equal to the size of the whole file. 如果完整的输出缓存响应仅包含在文件的部分中,则提供程序将 FileResponseElement 使用与存储在该文件中的输出缓存响应大小相等的长度来初始化类。If the complete output cache response is contained in only part of a file, a provider initializes the FileResponseElement class by using a length equal to the size of the output-cache response that is stored in that file.

适用于