OutputCacheProfileCollection.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從集合中移除 OutputCacheProfile 指定索引的物件。
public:
void RemoveAt(int index);
public void RemoveAt(int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
參數
- index
- Int32
從集合中移除元素的 OutputCacheProfile 索引。
例外狀況
集合中沒有 OutputCacheProfile 包含指定金鑰的物件,元素已被移除,或集合是唯讀。
範例
下列程式代碼範例示範如何使用 RemoveAt 方法。
// Remove the output profile with the specified index.
outputCacheProfiles.RemoveAt(0);
' Remove the output profile with the specified index.
outputCacheProfiles.RemoveAt(0)
備註
此 RemoveAt 方法會將 remove 一個元素插入設定檔對應的區塊,針對高階設定檔中定義的任意元素。 若該元素定義於目前組態檔對應區段,則其條目將從組態檔中移除。 要移除的物件必須存在於集合中。