DataCache.Get Method (String, String)
Gets an object from the specified region by using the specified key.
Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)
Usage
'Usage
Dim instance As DataCache
Dim key As String
Dim region As String
Dim returnValue As Object
returnValue = instance.Get(key, region)
Syntax
'Declaration
Public Function Get ( _
key As String, _
region As String _
) As Object
public Object Get (
string key,
string region
)
public:
Object^ Get (
String^ key,
String^ region
)
public Object Get (
String key,
String region
)
public function Get (
key : String,
region : String
) : Object
Parameters
- key
The unique value that is used to identify the object in the region.
- region
The name of the region where the object resides.
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.
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.
Platforms
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
Reference
DataCache Class
DataCache Members
Microsoft.ApplicationServer.Caching Namespace
ff425062(v=azure.10).md 2011-08-26