WebCache.Remove Method
Removes the specified item from the WebCache object.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Shared Function Remove ( _
key As String _
) As Object
'Usage
Dim key As String
Dim returnValue As Object
returnValue = WebCache.Remove(key)
public static Object Remove(
string key
)
public:
static Object^ Remove(
String^ key
)
static member Remove :
key:string -> Object
public static function Remove(
key : String
) : Object
Parameters
- key
Type: System.String
The identifier for the cache item to remove.
Return Value
Type: System.Object
The item removed from the WebCache object. If the item is not found, returns null reference (Nothing in Visual Basic).
Remarks
Use the Remove method when you must immediately delete an item from the cache instead of letting it expire or be removed for another reason.