Cache.Get メソッド
Cache オブジェクトから指定した項目を取得します。
名前空間: System.Web.Caching
アセンブリ: System.Web (system.web.dll 内)
構文
'宣言
Public Function Get ( _
key As String _
) As Object
'使用
Dim instance As Cache
Dim key As String
Dim returnValue As Object
returnValue = instance.Get(key)
public Object Get (
string key
)
public:
Object^ Get (
String^ key
)
public Object Get (
String key
)
public function Get (
key : String
) : Object
適用できません。
パラメータ
- key
取得するキャッシュ項目の識別子。
戻り値
取得されたキャッシュ項目。キーが見つからない場合は null 参照 (Visual Basic では Nothing)。
使用例
ASP.NET テキスト ボックス サーバー コントロールに対してキャッシュされた値を取得する方法を次の例で示します。
Cache.Get("MyTextBox.Value")
Cache.Get("MyTextBox.Value");
get_Cache().Get("MyTextBox.Value");
プラットフォーム
Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition
Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。
バージョン情報
.NET Framework
サポート対象 : 3.0,2.0,1.1,1.0
参照
関連項目
Cache クラス
Cache メンバ
System.Web.Caching 名前空間