Share via


IcmpV4Statistics.DestinationUnreachableMessagesSent Vlastnost

Definice

Získá počet zpráv PROTOKOLU ICMPv4 (Internet Control Message Protocol verze 4), které byly odeslány kvůli paketu s nedostupnou adresou v cíli.

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

Hodnota vlastnosti

Hodnota Int64 , která určuje celkový počet odeslaných cílových nedostupných zpráv.

Příklady

Následující příklad zobrazí hodnotu této vlastnosti.

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

Poznámky

Do počítače, který je zdrojem paketu, může být odeslána zpráva Nedostupný cíl z některého z následujících důvodů:

  • Počítač nemůže najít trasu k cílové adrese.

  • Komunikace s cílovou adresou je administrativně zakázána. Brána firewall například brání doručení paketů do cíle.

  • Cílová adresa je nedostupná.

  • Cílový port je nedostupný. Například pro protokol paketu není k dispozici žádný naslouchací proces.

Platí pro