次の方法で共有


EventMappingSettingsCollection.Clear メソッド

定義

コレクションからすべての EventMappingSettings オブジェクトを削除します。

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

Clear メソッドを使用するコード例を次に示します。 このコード例は、HealthMonitoringSection クラスのために提供されている大規模な例の一部です。

// Clear all EventMappingsSettings object from the EventMappings collection property.
healthMonitoringSection.EventMappings.Clear();
' Clear all EventMappingsSettings object from the EventMappings collection property.
healthMonitoringSection.EventMappings.Clear()

注釈

このメソッドは、 clear より高いレベルの構成ファイルで定義されている要素へのすべての参照をクリアするために、構成ファイルの適切なセクションにディレクティブを挿入します。 現在の構成ファイルの適切なセクションで定義されているすべての要素が削除されます。

適用対象

こちらもご覧ください