語言

IcmpV4Statistics.SourceQuenchesSent 屬性

定義

取得已發送的網際網路控制訊息協定(ICMPv4)來源消滅訊息數量。

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

屬性值

一個 Int64 指定已傳送的來源淬滅訊息總數的值。

範例

以下範例展示了此性質的價值。

public static void ShowSourceQuenchData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}",
        statistics.SourceQuenchesSent, statistics.SourceQuenchesReceived);
}
Public Shared Sub ShowSourceQuenchData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Source Quenches ..................... Sent: {0,-10}   Received: {1,-10}", statistics.SourceQuenchesSent, statistics.SourceQuenchesReceived)

End Sub

備註

當封包因輸出佇列空間不足而被丟棄時,會發送來源淬滅訊息。 如果封包到達速度過快無法處理,目的電腦也可以發送來源消滅訊息。 來源淬滅訊息是向主機請求降低其向網際網路目的地傳送流量的速率。

適用於