Bagikan melalui


Ping Konstruktor

Definisi

Menginisialisasi instans baru kelas Ping.

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

Contoh

Contoh kode berikut menunjukkan pembuatan Ping instans. Contoh lengkap tersedia dalam gambaran Ping umum kelas.

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

Berlaku untuk