Lenguaje

PropertyCollection.IDictionary.Clear Método

Definición

Quita todos los elementos del IDictionary objeto .

 virtual void System.Collections.IDictionary.Clear() = System::Collections::IDictionary::Clear;
void IDictionary.Clear();
abstract member System.Collections.IDictionary.Clear : unit -> unit
override this.System.Collections.IDictionary.Clear : unit -> unit
Sub Clear () Implements IDictionary.Clear

Implementaciones

Excepciones

El IDictionary objeto es de solo lectura.

Ejemplos

En el ejemplo siguiente se muestra cómo implementar el Clear método . Este ejemplo forma parte de un ejemplo más grande proporcionado para la IDictionary clase .

public void Clear() { ItemsInUse = 0; }
Public Sub Clear() Implements IDictionary.Clear
    ItemsInUse = 0
End Sub

Se aplica a