共用方式為


IcmpV6Statistics.PacketTooBigMessagesSent 屬性

定義

取得已傳送的網際網路控制訊息通訊協定第 6 版 (ICMPv6)「封包太大」訊息數目。

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

屬性值

Int64 值,指定已傳送的 ICMP「封包太大」訊息總數。

範例

下列範例會顯示這個屬性的值。

void ShowIcmpV6BigPacketData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV6Statistics ^ statistics = properties->GetIcmpV6Statistics();
   Console::WriteLine( " Too Big Packet ........................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->PacketTooBigMessagesSent, 
      statistics->PacketTooBigMessagesReceived );
}
public static void ShowIcmpV6BigPacketData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine (" Too Big Packet ........................ Sent: {0,-10}   Received: {1,-10}",
    statistics.PacketTooBigMessagesSent, statistics.PacketTooBigMessagesReceived);
}
Public Shared Sub ShowIcmpV6BigPacketData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine(" Too Big Packet ........................ Sent: {0,-10}   Received: {1,-10}", statistics.PacketTooBigMessagesSent, statistics.PacketTooBigMessagesReceived)

End Sub

備註

路由器在封包無法轉送時傳送封包太大訊息,因為它大於傳出連結的最大傳輸單位 (MTU) 。

適用於