IcmpV6Statistics.EchoRequestsSent 속성

정의

보낸 ICMPv6(Internet Control Message Protocol 버전 6) Echo Request 메시지의 수를 가져옵니다.

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

속성 값

Int64 전송된 ICMP Echo Request 메시지의 총 수를 지정하는 값입니다.

예제

다음 예제에서는이 속성의 값을 표시 합니다.

public static void ShowIcmpV6EchoData ()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV6Statistics statistics = properties.GetIcmpV6Statistics();
    Console.WriteLine ("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRequestsSent, statistics.EchoRequestsReceived);
    Console.WriteLine ("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}",
        statistics.EchoRepliesSent, statistics.EchoRepliesReceived);
}
Public Shared Sub ShowIcmpV6EchoData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV6Statistics = properties.GetIcmpV6Statistics()
    Console.WriteLine("  Echo Requests ....................... Sent: {0,-10}   Received: {1,-10}", statistics.EchoRequestsSent, statistics.EchoRequestsReceived)
    Console.WriteLine("  Echo Replies ........................ Sent: {0,-10}   Received: {1,-10}", statistics.EchoRepliesSent, statistics.EchoRepliesReceived)

End Sub

설명

Echo Request 및 Echo Reply 메시지를 사용하면 컴퓨터가 네트워크의 원격 컴퓨터에서 ICMP 응답을 요청할 수 있습니다. 이 기능은 종종 원격 주소의 유효성을 확인하는 데 사용됩니다.

적용 대상