HttpResponseWrapper.RemoveOutputCacheItem Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes cached items from the output cache by using the default output-cache provider.
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. |
Uses the specified output-cache provider to remove all output-cache artifacts that are associated with the specified path.
public:
override void RemoveOutputCacheItem(System::String ^ path, System::String ^ providerName);
public override void RemoveOutputCacheItem(string path, string providerName);
override this.RemoveOutputCacheItem : string * string -> unit
Public Overrides 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
path
is null
.
path
is an invalid path.
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
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Removes from the cache all cached items that are associated with the specified path.
public:
override void RemoveOutputCacheItem(System::String ^ path);
public override void RemoveOutputCacheItem(string path);
override this.RemoveOutputCacheItem : string -> unit
Public Overrides Sub RemoveOutputCacheItem (path As String)
Parameters
- path
- String
The virtual absolute path to the items to be removed from the cache.
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: