Modifier

Partager via


HttpResponseBase.RemoveOutputCacheItem Method

Definition

Removes cached items from the output cache by using the default output-cache provider.

Overloads

RemoveOutputCacheItem(String, String)

Uses the specified output-cache provider to remove all output-cache artifacts that are associated with the specified path.

RemoveOutputCacheItem(String)

Removes from the cache all cached items that are associated with the specified path.

RemoveOutputCacheItem(String, String)

Uses the specified output-cache provider to remove all output-cache artifacts that are associated with the specified path.

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 -> unit
Public Overridable Sub RemoveOutputCacheItem (path As String, providerName As String)

Parameters

path
String

The virtual absolute path of the items that are removed from the cache.

providerName
String

The provider that is used to remove the output-cache artifacts that are associated with the specified path.

Exceptions

Remarks

Call this method to remove output-cache items that are associated with the custom output-cache providers that are specified in the Web site configuration file. To remove output-cache items that are associated with the default output-cache provider, call the RemoveOutputCacheItem(String) method overload.

Applies to

RemoveOutputCacheItem(String)

Removes from the cache all cached items that are associated with the specified path.

public:
 virtual void RemoveOutputCacheItem(System::String ^ path);
public virtual void RemoveOutputCacheItem (string path);
abstract member RemoveOutputCacheItem : string -> unit
override this.RemoveOutputCacheItem : string -> unit
Public Overridable Sub RemoveOutputCacheItem (path As String)

Parameters

path
String

The virtual absolute path to the items to be removed from the cache.

Exceptions

Applies to