Cache.Get(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the specified item from the Cache object.
public:
System::Object ^ Get(System::String ^ key);
public object Get (string key);
member this.Get : string -> obj
Public Function Get (key As String) As Object
Parameters
- key
- String
The identifier for the cache item to retrieve.
Returns
The retrieved cache item, or null
if the key is not found.
Examples
The following example demonstrates how to retrieve the value cached for an ASP.NET text box server control.
Cache.Get("MyTextBox.Value");
Cache.Get("MyTextBox.Value")
Applies to
See also
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.