CacheEntryRemovedArguments Konstruktor

Definition

Initierar en ny instans av CacheEntryRemovedArguments klassen.

public:
 CacheEntryRemovedArguments(System::Runtime::Caching::ObjectCache ^ source, System::Runtime::Caching::CacheEntryRemovedReason reason, System::Runtime::Caching::CacheItem ^ cacheItem);
public CacheEntryRemovedArguments(System.Runtime.Caching.ObjectCache source, System.Runtime.Caching.CacheEntryRemovedReason reason, System.Runtime.Caching.CacheItem cacheItem);
new System.Runtime.Caching.CacheEntryRemovedArguments : System.Runtime.Caching.ObjectCache * System.Runtime.Caching.CacheEntryRemovedReason * System.Runtime.Caching.CacheItem -> System.Runtime.Caching.CacheEntryRemovedArguments
Public Sub New (source As ObjectCache, reason As CacheEntryRemovedReason, cacheItem As CacheItem)

Parametrar

source
ObjectCache

Den ObjectCache instans som cacheItem togs bort.

reason
CacheEntryRemovedReason

Ett av uppräkningsvärdena som anger varför cacheItem togs bort.

cacheItem
CacheItem

En instans av den cachelagrade posten som togs bort.

Undantag

source är null.

-eller-

cacheItem är null.

Kommentarer

Utvecklare använder CacheEntryRemovedArguments vanligtvis klassen när de vill meddelas när en cachepost har tagits bort från cacheminnet.

När en cacheimplementering håller på att ta bort en eller flera cacheposter från cachen anropar cacheimplementeringen det CacheEntryRemovedCallback ombud som registrerades i programmet. När en cacheimplementering anropar ombudet CacheEntryRemovedArguments anropas vanligtvis konstruktorn för att skicka en ny CacheEntryRemovedArguments instans som innehåller information om cacheposten som tas bort till återanropet. Återanropet meddelar programmet som registrerade återanropet om cacheposten som tas bort. När konstruktorn har returnerats innehåller instansen CacheEntryRemovedArguments information om borttagningen av cacheposten.

Gäller för