HttpResponseWrapper.RemoveOutputCacheItem 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過使用預設的輸出快取提供者,移除輸出快取中的快取項目。
多載
| 名稱 | Description |
|---|---|
| RemoveOutputCacheItem(String, String) |
使用指定的輸出快取提供者移除所有與指定路徑相關的輸出快取雜訊。 |
| RemoveOutputCacheItem(String) |
從快取中移除所有與指定路徑相關聯的快取項目。 |
RemoveOutputCacheItem(String, String)
使用指定的輸出快取提供者移除所有與指定路徑相關的輸出快取雜訊。
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)
參數
- path
- String
從快取中移除項目的虛擬絕對路徑。
- providerName
- String
用於移除與指定路徑相關的輸出快取產物的提供者。
例外狀況
path 是 null。
path 是一條無效路徑。
備註
呼叫此方法可移除與網站設定檔中指定的自訂輸出快取提供者相關的輸出快取項目。 若要移除與預設輸出快取提供者相關聯的輸出快取項目,請呼叫 RemoveOutputCacheItem(String) 方法過載。
適用於
RemoveOutputCacheItem(String)
從快取中移除所有與指定路徑相關聯的快取項目。
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)
參數
- path
- String
這是將要從快取中移除物品的虛擬絕對路徑。