Remove Method (String, String)

Removes an object from the cache in a region. Applies only to the server versions of AppFabric.

Namespace:  Microsoft.ApplicationServer.Caching
Assembly:  Microsoft.ApplicationServer.Caching.Client (in Microsoft.ApplicationServer.Caching.Client.dll)

public bool Remove(
	string key,
	string region
)

Parameters

key
Type: System..::..String
The unique value that is used to identify the object in the region.
region
Type: System..::..String
The name of the region the object resides in.

Return Value

Type: System..::..Boolean
True if the object is removed; otherwise, false.

For more information about how to use this method, see <maml:externalLink><maml:linkText>Remove an Object from a Cache</maml:linkText><maml:linkUri>http://go.microsoft.com/fwlink/?LinkID=214987</maml:linkUri></maml:externalLink>.

Show: