This documentation is archived and is not being maintained.

OutputCacheProvider::Set Method

Inserts the specified entry into the output cache, overwriting the entry if it is already cached.

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

public:
virtual void Set(
	String^ key, 
	Object^ entry, 
	DateTime utcExpiry
) abstract

Parameters

key
Type: System::String
A unique identifier for entry.
entry
Type: System::Object
The content to add to the output cache.
utcExpiry
Type: System::DateTime
The time and date on which the cached entry expires.

The expiration date specified in utcExpiry is always an absolute expiration date.

.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: