Export (0) Print
Expand All

DataCache.Remove Method (String, DataCacheItemVersion, 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
Dim instance As DataCache
Dim key As String
Dim version As DataCacheItemVersion
Dim region As String
Dim returnValue As Boolean

returnValue = instance.Remove(key, version, region)

public bool Remove (
	string key,
	DataCacheItemVersion version,
	string region
)
public boolean Remove (
	String key, 
	DataCacheItemVersion version, 
	String region
)
public function Remove (
	key : String, 
	version : DataCacheItemVersion, 
	region : String
) : boolean

Parameters

key

The unique value that is used to identify the object in the region.

version

The DataCacheItemVersion object that represents the version of the cached object that is to be removed.

region

The name of the region the object resides in.

Return Value

True if the object is removed; otherwise, false.

This method supports optimistic concurrency by only removing the object having the DataCacheItemVersion value specified with the version parameter. If another process updates this object before the method call, the object is not removed. For more information about how to use this method, see How to: Remove an Object from Cache.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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
  http://msdn.microsoft.com/en-us/library/microsoft.applicationserver.caching.aspx 2011-08-26
Show:
© 2014 Microsoft