OutputCacheProvider::Set Method (String^, Object^, DateTime)

.NET Framework (current version)
 

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
Available since 4.0
Return to top
Show: