Sdílet prostřednictvím


IcmpV4Statistics.AddressMaskRepliesSent Vlastnost

Definice

Získá počet ip control message protocol verze 4 (ICMPv4) adresa maska odpověď zprávy, které byly odeslány.

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

Hodnota vlastnosti

Hodnota Int64 , která určuje celkový počet zpráv s odpovědí masky adresy, které byly odeslány.

Příklady

Následující příklad zobrazí hodnotu této vlastnosti.

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

Poznámky

Zprávy požadavku a odpovědi masky adresy slouží k určení počtu bitů v masce podsítě pro místní podsíť.

Platí pro