OutputCacheProfileCollection.Remove(String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した名前の OutputCacheProfile オブジェクトをコレクションから削除します。
public:
void Remove(System::String ^ name);
public void Remove(string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)
パラメーター
- name
- String
コレクションから削除する OutputCacheProfile 要素の名前。
例外
指定したキーを持つ OutputCacheProfile オブジェクトがコレクションに存在しないか、要素が既に削除されているか、コレクションが読み取り専用です。
例
次のコード例は、 Remove メソッドの使用方法を示しています。
// Remove the output profile with the specified name.
outputCacheProfiles.Remove("MyCacheProfile");
' Remove the output profile with the specified name.
outputCacheProfiles.Remove("MyCacheProfile")
注釈
Remove メソッドは、上位レベルの構成ファイルで定義されているすべての要素の構成ファイルの適切なセクションに、remove要素を挿入します。 要素が現在の構成ファイルの適切なセクションで定義されている場合、そのエントリは構成ファイルから削除されます。 削除するオブジェクトはコレクション内に存在する必要があります。