Udostępnij za pośrednictwem


IcmpV4Statistics.AddressMaskRequestsSent Właściwość

Definicja

Pobiera liczbę wysłanych komunikatów protokołu ICMPv4 (ICMPv4).

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

Wartość właściwości

Wartość określająca Int64 łączną liczbę wysłanych komunikatów żądania maski adresów.

Przykłady

W poniższym przykładzie jest wyświetlana wartość tej właściwości.

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

Uwagi

Żądania maski adresów i komunikaty odpowiedzi służą do określania liczby bitów w masce podsieci dla podsieci lokalnej.

Dotyczy