Export (0) Print
Expand All

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)

'Declaration
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 Nothing.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft