Sdílet prostřednictvím


IcmpV4Statistics.AddressMaskRequestsReceived Vlastnost

Definice

Získá počet zpráv IP Control Message Protocol verze 4 (ICMPv4) požadavek masky adresy, které byly přijaty.

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

Hodnota vlastnosti

Hodnota Int64 , která určuje celkový počet přijatých zpráv s požadavkem na masku adresy.

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