DataCache.Get Method (String)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets an object from the cache using the specified key.

Namespace: Microsoft.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)

Syntax

'Declaration
Public Function Get ( _
    key As String _
) As Object
'Usage
Dim instance As DataCache
Dim key As String
Dim returnValue As Object

returnValue = instance.Get(key)
public Object Get (
    string key
)
public:
Object^ Get (
    String^ key
)
public Object Get (
    String key
)
public function Get (
    key : String
) : Object

Parameters

  • 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.

Remarks

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

See Also

Reference

DataCache Class
DataCache Members
Microsoft.Data.Caching Namespace