CacheEntryRemovedArguments 类

定义

提供有关从缓存中删除的缓存项的信息。

public ref class CacheEntryRemovedArguments
public class CacheEntryRemovedArguments
type CacheEntryRemovedArguments = class
Public Class CacheEntryRemovedArguments
继承
CacheEntryRemovedArguments

注解

类的属性 CacheEntryRemovedArguments 表示缓存项本身、 ObjectCache 从中删除条目的实例以及删除原因。 类的 CacheEntryRemovedArguments 构造函数使用这些参数创建类的新实例。

通常在回调方法中创建一个 CacheEntryRemovedArguments 对象,以在从缓存中删除缓存项时将有关已删除的缓存项的信息传回应用程序。

构造函数

名称 说明
CacheEntryRemovedArguments(ObjectCache, CacheEntryRemovedReason, CacheItem)

初始化 CacheEntryRemovedArguments 类的新实例。

属性

名称 说明
CacheItem

获取从缓存中删除的缓存项的实例。

RemovedReason

获取一个值,该值指示为何删除缓存项。

Source

获取对最初包含已删除缓存项的源 ObjectCache 实例的引用。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅