CacheEntryRemovedArguments 생성자

정의

CacheEntryRemovedArguments 클래스의 새 인스턴스를 초기화합니다.

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)

매개 변수

source
ObjectCache

ObjectCache 제거된 cacheItem 인스턴스입니다.

reason
CacheEntryRemovedReason

제거된 이유를 cacheItem 나타내는 열거형 값 중 하나입니다.

cacheItem
CacheItem

제거된 캐시된 항목의 인스턴스입니다.

예외

sourcenull입니다.

-또는-

cacheItemnull입니다.

설명

개발자는 일반적으로 캐시 항목이 CacheEntryRemovedArguments 캐시에서 제거된 후 알림을 받을 때 클래스를 사용합니다.

캐시 구현이 캐시에서 하나 이상의 캐시 항목을 제거하려고 하는 경우 캐시 구현은 애플리케이션에 등록된 대리자를 호출 CacheEntryRemovedCallback 합니다. 캐시 구현에서 대리자를 호출하는 경우 일반적으로 생성자를 호출 CacheEntryRemovedArguments 하여 제거되는 캐시 항목에 대한 정보가 포함된 새 CacheEntryRemovedArguments 인스턴스를 콜백에 전달합니다. 콜백은 제거 중인 캐시 항목에 대한 콜백을 등록한 애플리케이션에 알깁니다. 생성자가 반환 CacheEntryRemovedArguments 된 후 인스턴스에는 캐시 항목 제거에 대한 세부 정보가 포함됩니다.

적용 대상