DataCache.Remove Method (String, DataCacheLockHandle, String)
Indicates whether an object from the specified region is removed.
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 lockHandle As DataCacheLockHandle
Dim region As String
Dim returnValue As Boolean
returnValue = instance.Remove(key, lockHandle, region)
Syntax
'Declaration
Public Function Remove ( _
key As String, _
lockHandle As DataCacheLockHandle, _
region As String _
) As Boolean
public bool Remove (
string key,
DataCacheLockHandle lockHandle,
string region
)
public:
bool Remove (
String^ key,
DataCacheLockHandle^ lockHandle,
String^ region
)
public boolean Remove (
String key,
DataCacheLockHandle lockHandle,
String region
)
public function Remove (
key : String,
lockHandle : DataCacheLockHandle,
region : String
) : boolean
Parameters
- key
The unique value that is used to identify the object in the region.
- lockHandle
The object that was returned when the object was removed.
- region
The name of the region the object resides in.
Return Value
True if the object is removed; otherwise, false.
Remarks
For more information about how to use this method, see How to: Remove 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