Ping Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy Ping.

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

Przykłady

Poniższy przykład kodu przedstawia tworzenie Ping wystąpienia. Kompletny przykład jest dostępny w przeglądzie Ping klasy.

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);

Dotyczy