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")

適用於

另請參閱