OutputCacheProvider.Set Method (String, Object, DateTime)

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

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