Share via


IcmpV4Statistics.DestinationUnreachableMessagesReceived Proprietà

Definizione

Ottiene il numero di messaggi ICMPv4 ricevuti a causa di un pacchetto contenente un indirizzo di destinazione non raggiungibile.

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

Valore della proprietà

Valore Int64 che specifica il numero totale di messaggi Destination Unreachable ricevuti.

Esempio

Nell'esempio seguente viene visualizzato il valore di questa proprietà.

void ShowIcmpV4UnreachableData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}", 
      statistics->DestinationUnreachableMessagesSent, 
      statistics->DestinationUnreachableMessagesReceived );
}
public static void ShowIcmpV4UnreachableData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}",
        statistics.DestinationUnreachableMessagesSent,
        statistics.DestinationUnreachableMessagesReceived);
}
Public Shared Sub ShowIcmpV4UnreachableData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Destination Unreachables ............ Sent: {0,-10}   Received: {1,-10}", statistics.DestinationUnreachableMessagesSent, statistics.DestinationUnreachableMessagesReceived)

End Sub

Commenti

Un messaggio di destinazione non raggiungibile può essere inviato al computer che è l'origine di un pacchetto per uno dei motivi seguenti:

  • Il computer non riesce a trovare una route all'indirizzo di destinazione.

  • La comunicazione con l'indirizzo di destinazione è vietata in modo amministrativo. Ad esempio, un firewall impedisce il recapito di pacchetti alla destinazione.

  • L'indirizzo di destinazione non è raggiungibile.

  • La porta di destinazione non è raggiungibile. Ad esempio, non è disponibile alcun listener per il protocollo del pacchetto.

Si applica a