CacheEntryUpdateArguments 建構函式

定義

初始化 CacheEntryUpdateArguments 類別的新執行個體。

public:
 CacheEntryUpdateArguments(System::Runtime::Caching::ObjectCache ^ source, System::Runtime::Caching::CacheEntryRemovedReason reason, System::String ^ key, System::String ^ regionName);
public CacheEntryUpdateArguments(System.Runtime.Caching.ObjectCache source, System.Runtime.Caching.CacheEntryRemovedReason reason, string key, string regionName);
new System.Runtime.Caching.CacheEntryUpdateArguments : System.Runtime.Caching.ObjectCache * System.Runtime.Caching.CacheEntryRemovedReason * string * string -> System.Runtime.Caching.CacheEntryUpdateArguments
Public Sub New (source As ObjectCache, reason As CacheEntryRemovedReason, key As String, regionName As String)

參數

source
ObjectCache

ObjectCache所參考key的快取項目的實例將會被移除。

reason
CacheEntryRemovedReason

這是列舉值之一,指示快取條目將被移除的原因。

key
String

快取項目的金鑰會被移除。

regionName
String

快取中要移除快取條目的區域名稱。 這是選擇性參數。 若快取區域未定義,則 regionName 必須為 null

例外狀況

keynull

適用於