DataCacheRemove Method (String, DataCacheItemVersion, String)Windows Server AppFabric Caching Compatibility Library
Removes an object with a specific version from the cache in a region.

Namespace: Soss.Compat.WSAF
Assembly: soss_wsaf_compat (in soss_wsaf_compat.dll) Version: 1.1.0.100 (1.1.0.100)
Syntax

public bool Remove(
	string key,
	DataCacheItemVersion version,
	string region
)

Parameters

key
Type: SystemString
The unique identifier used to access the object in the cache.
version
Type: Soss.Compat.WSAFDataCacheItemVersion
DataCacheItemVersion of the object to be removed.
region
Type: SystemString
The name of the region where the object is stored.

Return Value

Type: Boolean
true if the object is removed successfully - otherwise, false.
Remarks

This method's signature supports optimistic concurrency: the object is only removed if the specified version matches the object's current version within the data grid. If another process updates this object before the method call, the object is not removed.
See Also

Reference