Поделиться через


IcmpV4Statistics.AddressMaskRepliesReceived Свойство

Определение

Возвращает количество полученных сообщений ICMPv4 "Ответ с маской адреса" (Address Mask Reply).

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

Значение свойства

Значение типа Int64, указывающее общее количество полученных сообщений "Ответ с маской адреса" (Address Mask Reply).

Примеры

В следующем примере отображается значение этого свойства.

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

Комментарии

Сообщения address Mask Request и Reply используются для определения количества битов в маске подсети для локальной подсети.

Применяется к