Partilhar via


IcmpV4Statistics.AddressMaskRequestsSent Propriedade

Definição

Obtém o número de mensagens de solicitação de máscara de endereço de ICMPv4 (protocolo ICMPv4) que foram enviadas.

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

Valor da propriedade

Um Int64 valor que especifica o número total de mensagens de Solicitação de Máscara de Endereço que foram enviadas.

Exemplos

O exemplo a seguir exibe o valor dessa propriedade.

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

Comentários

As mensagens solicitação e resposta da máscara de endereço são usadas para determinar o número de bits na máscara de sub-rede para a sub-rede local.

Aplica-se a