DataCache.Get Method (String)

Gets an object from the cache using the specified key.

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


Dim instance As DataCache
Dim key As String
Dim returnValue As Object

returnValue = instance.Get(key)


Public Function Get ( _
    key As String _
) As Object
public Object Get (
    string key
Object^ Get (
    String^ key
public Object Get (
    String key
public function Get (
    key : String
) : Object


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

Return Value

The object that was cached by using the specified key. Null is returned if the key does not exist.

Thread Safety

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

See Also


DataCache Class
DataCache Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26