Cache.Get(String) 方法

定义

Cache 对象中检索指定的项。

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

参数

key
String

要检索的缓存项的标识符。

返回

检索到的缓存项,或者 null 找不到密钥。

示例

以下示例演示如何检索为 ASP.NET 文本框服务器控件缓存的值。

Cache.Get("MyTextBox.Value");

Cache.Get("MyTextBox.Value")

适用于

另请参阅