PropertyCollection.IDictionary.Clear Método

Definição

Remove todos os elementos do 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

Implementações

Exceções

O IDictionary objeto é só de leitura.

Exemplos

O exemplo seguinte demonstra como implementar o Clear método. Este exemplo faz parte de um exemplo mais amplo fornecido à IDictionary turma.

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

Aplica-se a