CacheEntryRemovedArguments 类

定义

提供有关已从缓存中移除的缓存项的信息。Provides information about a cache entry that was removed from the cache.

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

注解

类的属性 CacheEntryRemovedArguments 表示缓存项本身、从中 ObjectCache 移除项的实例以及移除的原因。The properties of CacheEntryRemovedArguments class represent the cache entry itself, the ObjectCache instance that the entry was removed from, and the reason for the removal. 类的构造函数 CacheEntryRemovedArguments 使用这些参数创建类的新实例。The constructor of the CacheEntryRemovedArguments class uses these arguments to create a new instance of the class.

CacheEntryRemovedArguments通常在回调方法中创建一个对象,用于在从缓存中移除某个缓存项时将有关已移除的缓存项的信息传递回应用程序。A CacheEntryRemovedArguments object is typically created in a callback method to pass information about a removed cache entry back to an application when a cache entry is removed from the cache.

构造函数

CacheEntryRemovedArguments(ObjectCache, CacheEntryRemovedReason, CacheItem)

初始化 CacheEntryRemovedArguments 类的新实例。Initializes a new instance of the CacheEntryRemovedArguments class.

属性

CacheItem

获取已从缓存中移除的缓存项的实例。Gets an instance of a cache entry that was removed from the cache.

RemovedReason

获取一个值,该值指示移除某个缓存项的原因。Gets a value that indicates why a cache entry was removed.

Source

获取对源 ObjectCache 实例的引用,该实例最初包含已移除的缓存项。Gets a reference to the source ObjectCache instance that originally contained the removed cache entry.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅