Language

Cache.Get Method (String, 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 specified region by using the specified key.

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

Syntax

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

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

Parameters

  • region
    The name of the region from which to retrieve the object. Use DefaultRegion if the object is not stored in a region.
  • key
    The unique value that is used to identify the object in the region or cache.

Return Value

The object that is stored in the region by using the specified key. Null is returned if the key does not exist in the region specified.

Remarks

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

See Also

Reference

Cache Class
Cache Members
System.Data.Caching Namespace