Ping Ping Ping Constructor

Definición

Inicializa una nueva instancia de la clase Ping.Initializes a new instance of the Ping class.

public:
 Ping();
public Ping ();
Public Sub New ()

Ejemplos

En el ejemplo de código siguiente se Ping muestra cómo crear una instancia de.The following code example demonstrates creating a Ping instance. El ejemplo completo está disponible en la Ping información general de la clase.The complete example is available in the Ping class overview.

Ping ^ pingSender = gcnew Ping;

// When the PingCompleted event is raised,
// the PingCompletedCallback method is called.
pingSender->PingCompleted += gcnew PingCompletedEventHandler( PingCompletedCallback );

Ping pingSender = new Ping ();

// When the PingCompleted event is raised,
// the PingCompletedCallback method is called.
pingSender.PingCompleted += new PingCompletedEventHandler (PingCompletedCallback);

Se aplica a