This documentation is archived and is not being maintained.

Cache.Remove Method

Removes the specified item from the application's Cache object.

[Visual Basic]
Public Function Remove( _
   ByVal key As String _
) As Object
public object Remove(
 string key
public: Object* Remove(
 String* key
public function Remove(
   key : String
) : Object;


A String identifier for the cache item to remove.

Return Value

The item removed from the Cache. If the value in the key parameter is not found, returns a null reference (Nothing in Visual Basic).


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Cache Class | Cache Members | System.Web.Caching Namespace | Caching Application Data