OutputCacheProfileCollection.Clear 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
移除集合中的所有 OutputCacheProfile 物件。
public:
void Clear();
public void Clear();
member this.Clear : unit -> unit
Public Sub Clear ()
例外狀況
本合集僅為閱讀。
範例
下列程式代碼範例示範如何使用 Clear 方法。
// Execute the Clear method.
outputCacheProfiles.Clear();
' Execute the Clear method.
outputCacheProfiles.Clear()
備註
此方法會在 clear 設定檔對應區段插入指令,清除所有對高層設定檔中定義元素的引用。 目前設定檔對應區段中定義的所有元素都會被移除。