This documentation is archived and is not being maintained.

MemoryResponseElement Constructor

Initializes a new instance of the MemoryResponseElement class.

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

public:
MemoryResponseElement(
	array<unsigned char>^ buffer, 
	long long length
)

Parameters

buffer
Type: array<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.

ExceptionCondition
ArgumentNullException

buffer is nullptr.

ArgumentOutOfRangeException

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

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

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: