Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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. 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.
Namespace: System.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)
Syntax
'Declaration
Public Function Get ( _
region As String, _
key As String, _
ByRef version As CacheItemVersion _
) As Object
'Usage
Dim instance As Cache
Dim region As String
Dim key As String
Dim version As CacheItemVersion
Dim returnValue As Object
returnValue = instance.Get(region, key, version)
public Object Get (
string region,
string key,
ref CacheItemVersion version
)
public:
Object^ Get (
String^ region,
String^ key,
CacheItemVersion^% version
)
public Object Get (
String region,
String key,
/** @ref */ CacheItemVersion version
)
JScript does not support passing value-type arguments by reference.
Parameters
- region
The name of the region where the cached object is located. Use DefaultRegion if the object is not stored in a region.
- key
The unique value that is used to identify the object in the cache.
- version
The version of the desired object, passed by reference. 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 object has been updated to a new version.
Remarks
For more information about this method, see How to: Get an Object from Cache (Velocity).