WebCache.Get Method
Retrieves 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 Get ( _
key As String _
) As Object
'Usage
Dim key As String
Dim returnValue As Object
returnValue = WebCache.Get(key)
public static Object Get(
string key
)
public:
static Object^ Get(
String^ key
)
static member Get :
key:string -> Object
public static function Get(
key : String
) : Object
Parameters
- key
Type: System.String
The identifier for the cache item to retrieve.
Return Value
Type: System.Object
The item retrieved from the cache, or null reference (Nothing in Visual Basic) if the item is not found.
Remarks
You create a cache item by calling the Set(String, Object, Int32, Boolean) method, and then use Get to retrieve the item by specifying the key that was used to create the item.