CacheItem Constructor (String, Object)

.NET Framework (current version)
 

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 Sub New (
	key As String,
	value As Object
)

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