HttpResponseBase.RemoveOutputCacheItem 方法      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用默认的输出缓存提供程序从输出缓存中删除缓存项。
重载
| RemoveOutputCacheItem(String, String) | 使用指定的输出缓存提供程序删除与指定路径关联的所有输出缓存项。 | 
| RemoveOutputCacheItem(String) | 从缓存中删除与指定路径关联的所有缓存项。 | 
RemoveOutputCacheItem(String, String)
使用指定的输出缓存提供程序删除与指定路径关联的所有输出缓存项。
public:
 virtual void RemoveOutputCacheItem(System::String ^ path, System::String ^ providerName);public virtual void RemoveOutputCacheItem (string path, string providerName);abstract member RemoveOutputCacheItem : string * string -> unit
override this.RemoveOutputCacheItem : string * string -> unitPublic Overridable Sub RemoveOutputCacheItem (path As String, providerName As String)参数
- path
- String
从缓存中删除的项的虚拟绝对路径。
- providerName
- String
用于删除与指定路径关联的输出缓存项的提供程序。
例外
注解
调用此方法可删除与网站配置文件中指定的自定义输出缓存提供程序关联的输出缓存项。 若要删除与默认输出缓存提供程序关联的输出缓存项,请调用 RemoveOutputCacheItem(String) 方法重载。
适用于
RemoveOutputCacheItem(String)
从缓存中删除与指定路径关联的所有缓存项。
public:
 virtual void RemoveOutputCacheItem(System::String ^ path);public virtual void RemoveOutputCacheItem (string path);abstract member RemoveOutputCacheItem : string -> unit
override this.RemoveOutputCacheItem : string -> unitPublic Overridable Sub RemoveOutputCacheItem (path As String)参数
- path
- String
要从缓存中移除的项的虚拟绝对路径。