AggregateCacheDependency コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > AggregateCacheDependency コンストラクタの意味・解説 

AggregateCacheDependency コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

AggregateCacheDependency クラス新しインスタンス初期化します。

名前空間: System.Web.Caching
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As New AggregateCacheDependency
public AggregateCacheDependency ()
public:
AggregateCacheDependency ()
public AggregateCacheDependency ()
public function AggregateCacheDependency ()
解説解説

これは、AggregateCacheDependency クラス既定コンストラクタです。

使用例使用例

引数受け取らないコンストラクタ使用してAggregateCacheDependency クラスインスタンス作成するコード例次に示します2 つの CacheDependency オブジェクト作成されCacheDependency 配列 (myDepArray) に追加されます。このコンストラクタAdd メソッド組み合わせて使用しCache格納されている項目を両方CacheDependency オブジェクト依存させます

' Create two CacheDependency objects, one to a
' text file and the other to an XML file. 
' Create a CacheDependency array with these 
' two objects as items in the array.
 txtDep = New CacheDependency(Server.MapPath("Storage.txt"))
 xmlDep = New CacheDependency(Server.MapPath("authors.xml"))
 Dim DepArray() As CacheDependency = {txtDep,
 xmlDep}

 ' Create an AggregateCacheDependency object and 
 ' use the Add method to add the array to it.   
 aggDep = New AggregateCacheDependency()
 aggDep.Add(DepArray)
    
 ' Call the GetUniqueId method to generate
 ' an ID for each dependency in the array.
 msg1.Text = aggDep.GetUniqueId()
 
 ' Add the new data set to the cache with 
 ' dependencies on both files in the array.
 Cache.Insert("XMLDataSet", Source, aggDep)
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AggregateCacheDependency クラス
AggregateCacheDependency メンバ
System.Web.Caching 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「AggregateCacheDependency コンストラクタ」の関連用語

AggregateCacheDependency コンストラクタのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



AggregateCacheDependency コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS