Bagikan melalui


IcmpV4Statistics.AddressMaskRequestsSent Properti

Definisi

Mendapatkan jumlah pesan Permintaan Masker Alamat Protokol Pesan Kontrol Internet versi 4 (ICMPv4) yang dikirim.

public:
 abstract property long AddressMaskRequestsSent { long get(); };
public abstract long AddressMaskRequestsSent { get; }
member this.AddressMaskRequestsSent : int64
Public MustOverride ReadOnly Property AddressMaskRequestsSent As Long

Nilai Properti

Nilai Int64 yang menentukan jumlah total pesan Permintaan Masker Alamat yang dikirim.

Contoh

Contoh berikut menampilkan nilai properti ini.

void ShowAddressMaskData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}", 
      statistics->AddressMaskRequestsSent, 
      statistics->AddressMaskRequestsReceived );
   Console::WriteLine( "  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->AddressMaskRepliesSent, 
      statistics->AddressMaskRepliesReceived );
}
public static void ShowAddressMaskData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}",
        statistics.AddressMaskRequestsSent, statistics.AddressMaskRequestsReceived);
    Console.WriteLine("  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}",
        statistics.AddressMaskRepliesSent, statistics.AddressMaskRepliesReceived);
}
Public Shared Sub ShowAddressMaskData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}", statistics.AddressMaskRequestsSent, statistics.AddressMaskRequestsReceived)
    Console.WriteLine("  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}", statistics.AddressMaskRepliesSent, statistics.AddressMaskRepliesReceived)

End Sub

Keterangan

Pesan Permintaan Masker Alamat dan Balasan digunakan untuk menentukan jumlah bit dalam subnet mask untuk subnet lokal.

Berlaku untuk