OutputCacheProfileCollection.RemoveAt(Int32) メソッド

定義

指定したインデックス位置にある 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要素を挿入します。 要素が現在の構成ファイルの対応するセクションで定義されている場合、そのエントリは構成ファイルから削除されます。 削除するオブジェクトはコレクション内に存在する必要があります。

適用対象

こちらもご覧ください