共用方式為


IcmpV4Statistics.SourceQuenchesSent 屬性

定義

取得已傳送的網際網路控制訊息通訊協定第 4 版 (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 值,指定已傳送的「來源抑制」訊息總數。

範例

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

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 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

備註

來源 Quench 訊息會在因為輸出佇列中的空間不足而捨棄封包時傳送。 如果封包太快而無法處理,目的地計算機也可以傳送來源 Quench 訊息。 來源快取訊息是主機的要求,可截斷傳送流量至因特網目的地的速率。

適用於