HttpResponse.RemoveOutputCacheItem Method
Definition
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.
Overloads
RemoveOutputCacheItem(String, String) |
Uses the specified output-cache provider to remove all output-cache items that are associated with the specified path. |
RemoveOutputCacheItem(String) |
Removes from the cache all cached items that are associated with the default output-cache provider. This method is static. |
RemoveOutputCacheItem(String, String)
Uses the specified output-cache provider to remove all output-cache items that are associated with the specified path.
public:
static void RemoveOutputCacheItem(System::String ^ path, System::String ^ providerName);
public static void RemoveOutputCacheItem (string path, string providerName);
static member RemoveOutputCacheItem : string * string -> unit
Public Shared 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
RemoveOutputCacheItem(String)
Removes from the cache all cached items that are associated with the default output-cache provider. This method is static.
public:
static void RemoveOutputCacheItem(System::String ^ path);
public static void RemoveOutputCacheItem (string path);
static member RemoveOutputCacheItem : string -> unit
Public Shared Sub RemoveOutputCacheItem (path As String)
Parameters
- path
- String
The virtual absolute path to the items that are removed from the cache.
Exceptions
path
is null
.
path
is not an absolute virtual path.
Remarks
Call this method to remove output-cache items that are associated with the default output-cache provider. Call the RemoveOutputCacheItem method to remove output-cache items that are associated with custom output-cache providers that are specified in the Web site configuration file.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기