AggregateCacheDependency.Add メソッドとは? わかりやすく解説

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

AggregateCacheDependency.Add メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

AggregateCacheDependency オブジェクトCacheDependency オブジェクト配列追加します

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

Public Sub Add ( _
    ParamArray dependencies As CacheDependency()
 _
)
Dim instance As AggregateCacheDependency
Dim dependencies As CacheDependency()

instance.Add(dependencies)
public void Add (
    params CacheDependency[] dependencies
)
public:
void Add (
    ... array<CacheDependency^>^ dependencies
)
public void Add (
    CacheDependency[] dependencies
)
public function Add (
    ... dependencies : CacheDependency[]
)

パラメータ

dependencies

追加する CacheDependency オブジェクト配列

使用例使用例

Add メソッドと AggregateCacheDependency コンストラクタ組み合わせて使用して 2 つCacheDependency オブジェクト作成し、それらを CacheDependency 配列 (myDepArray) に追加してから、キャッシュ内の項目をこの 2 つ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.Add メソッドのお隣キーワード
検索ランキング

   

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



AggregateCacheDependency.Add メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS