Get Method (String, DataCacheItemVersion, String)

Gets an object from the specified region by using the specified key. You may also provide the version to obtain the specific version of a key, if that version is still the most current in the region. Applies only to the server versions of AppFabric.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

public Object Get(
	string key,
	out DataCacheItemVersion version,
	string region


Type: System..::..String
The unique value that is used to identify the object in the region.
Type: Microsoft.ApplicationServer.Caching..::..DataCacheItemVersion%
The version of the desired object. If this parameter is null, the version of the current object is retrieved.
Type: System..::..String
The name of the region where the object resides.

Return Value

Type: System..::..Object
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 <maml:externalLink><maml:linkText>Get an Object from a Cache</maml:linkText><maml:linkUri></maml:linkUri></maml:externalLink>.