Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataCache.Get Method (String, out DataCacheItemVersion)

Gets an object from the cache using the specified key. You may also provide the version to obtain a specific version of a key, if that version is still the most current in the cache.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

'Usage
Dim instance As DataCache
Dim key As String
Dim version As DataCacheItemVersion
Dim returnValue As Object

returnValue = instance.Get(key, version)

public Object Get (
	string key,
	out DataCacheItemVersion version
)
public Object Get (
	String key, 
	/** @attribute OutAttribute() */ /** @ref */ DataCacheItemVersion version
)

Parameters

key

The unique value that is used to identify the object in the cache.

version

The version of the desired object. If this parameter is null, the version of the current object is retrieved.

Return Value

The object that was cached by using the specified key. Null is returned if the key does not exist. Even if the key does exist, Null may also be returned because the object has been updated to a new version.

For more information about this method, see How to: Get an Object from Cache.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2
  https://msdn.microsoft.com/en-us/library/microsoft.applicationserver.caching.aspx 2011-08-26
Show:
© 2015 Microsoft