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
[C#]
public object Remove(
 string key
);
[C++]
public: Object* Remove(
 String* key
);
[JScript]
public function Remove(
   key : String
) : Object;

Parameters

key
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).

Requirements

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

See Also

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

Show: