NameValueConfigurationCollection.Clear Método
Definição
Limpa o NameValueConfigurationCollection.Clears the NameValueConfigurationCollection.
public:
void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()
Exemplos
O exemplo de código a seguir demonstra como usar o Clear método.The following code example demonstrates how to use the Clear method. Este exemplo de código faz parte de um exemplo maior fornecido para a NameValueConfigurationCollection classe.This code example is part of a larger example provided for the NameValueConfigurationCollection class.
// Clear the collection.
myNameValConfigCollection.Clear();
' Clear the collection.
Comentários
Quando o Clear método é chamado, ele remove todos os NameValueConfigurationElement objetos da coleção.When the Clear method is called, it removes all NameValueConfigurationElement objects from the collection.