MemoryResponseElement Constructor (Byte[], Int64)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the MemoryResponseElement class.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

public MemoryResponseElement(
	byte[] buffer,
	long length
)

Parameters

buffer
Type: System.Byte[]

An array of bytes that contains a part of an output-cache response.

length
Type: System.Int64

The size of the array in buffer.

Exception Condition
ArgumentNullException

buffer is null.

ArgumentOutOfRangeException

length is less than zero or greater than the size of buffer.

The value of buffer must not be null, although it can be a zero-length array.

.NET Framework
Available since 4.0
Return to top
Show: