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

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

CacheDependency.GetUniqueID メソッド

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

CacheDependency オブジェクト一意識別子取得します

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

Public Overridable Function
 GetUniqueID As String
Dim instance As CacheDependency
Dim returnValue As String

returnValue = instance.GetUniqueID
public virtual string GetUniqueID ()
public:
virtual String^ GetUniqueID ()
public String GetUniqueID ()

戻り値
CacheDependency オブジェクト一意識別子

解説解説
使用例使用例

配列内に 2 つCacheDependency オブジェクトを持つ、aggDep という名前の AggregateCacheDependency オブジェクト作成するコード例次に示しますaggDepインスタンス化されたら、このコードGetUniqueID メソッド呼び出しaggDep含まれている 2 つ依存関係に対して一意識別子生成し、その識別子格納ページ表示します次に、Cache.Insert メソッド使用してaggDep依存関係を持つ Cache に項目が追加されます。

' 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)
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CacheDependency クラス
CacheDependency メンバ
System.Web.Caching 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からCacheDependency.GetUniqueID メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCacheDependency.GetUniqueID メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCacheDependency.GetUniqueID メソッド を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS