This documentation is archived and is not being maintained.

CacheItem Constructor (String, Object)

Initializes a new CacheItem instance using the specified key and a value of the cache entry.

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

public CacheItem(
	string key,
	Object value
)

Parameters

key
Type: System.String
A unique identifier for a CacheItem entry.
value
Type: System.Object
The data for a CacheItem entry.

When the CacheItem(String, Object) method overload is called, the property value for RegionName is set to null.

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