Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Remove Method (String, DataCacheLockHandle)

DataCache.Remove Method (String, DataCacheLockHandle)

Indicates whether an object from the cache 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 lockHandle As DataCacheLockHandle
Dim returnValue As Boolean

returnValue = instance.Remove(key, lockHandle)

public bool Remove (
	string key,
	DataCacheLockHandle lockHandle
)
public boolean Remove (
	String key, 
	DataCacheLockHandle lockHandle
)
public function Remove (
	key : String, 
	lockHandle : DataCacheLockHandle
) : boolean

Parameters

key

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

lockHandle

The object that was returned when the object is removed.

Return Value

True if an object from the cache was removed; otherwise, false.

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