CacheEntryUpdateArguments 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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。
例外
key 是 null。