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 abstract void Set(
	string key,
	Object entry,
	DateTime utcExpiry
)

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.6, 4.5, 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft