Επεξεργασία

Κοινή χρήση μέσω


FileResponseElement(String, Int64, Int64) Constructor

Definition

Initializes a new instance of the FileResponseElement class.

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)

Parameters

path
String

The fully qualified path for the file.

offset
Int64

The position in the file where the string starts.

length
Int64

The length of the data, starting at the offset that represents the output-cache data in the file defined by path.

Exceptions

path is null.

offset or length is less than zero.

Remarks

If the complete output-cache response is contained in a single file, a provider initializes the FileResponseElement class by using an offset of zero, and a length equal to the size of the whole file. If the complete output cache response is contained in only part of a file, a provider initializes the FileResponseElement class by using the offset in the file where the output cache response starts, and a length equal to the size of the output-cache response that is stored in that file.

Applies to