Cache.Get(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從物件中擷取指定的項目 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")