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

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

AggregateCacheDependency.GetUniqueID メソッド

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

AggregateCacheDependency オブジェクトの一意の識別子を取得します。

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

Public Overrides Function
 GetUniqueID As String
Dim instance As AggregateCacheDependency
Dim returnValue As String

returnValue = instance.GetUniqueID
public override string GetUniqueID ()
public String GetUniqueID ()

戻り値
AggregateCacheDependency オブジェクトの一意の識別子。関連付けられている依存関係オブジェクトのいずれかに一意の識別子がない場合、GetUniqueId メソッドは null 参照 (Visual Basic では Nothing) を返します。

解説解説
使用例使用例

GetUniqueID メソッドを使用して、AggregateCacheDependency クラス (aggDep) のインスタンスの識別子を作成し、設定された識別子を表示するコード例を次に示します。

' 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 名前空間



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

AggregateCacheDependency.GetUniqueID メソッドのお隣キーワード
検索ランキング

   

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



AggregateCacheDependency.GetUniqueID メソッドのページの著作権

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

©2026 GRAS Group, Inc.RSS