다음을 통해 공유


IcmpV4Statistics.MessagesSent 속성

정의

보낸 ICMPv4(Internet Control Message Protocol 버전 4) 메시지의 수를 가져옵니다.

public:
 abstract property long MessagesSent { long get(); };
public abstract long MessagesSent { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("osx")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public abstract long MessagesSent { get; }
member this.MessagesSent : int64
[<System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("osx")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.MessagesSent : int64
Public MustOverride ReadOnly Property MessagesSent As Long

속성 값

보낸 ICMPv4 메시지의 총 수를 나타내는 Int64 값입니다.

특성

예제

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

void ShowIcmpV4MessageData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Messages ............................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->MessagesSent, statistics->MessagesReceived );
}
public static void ShowIcmpV4MessageData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Messages ............................ Sent: {0,-10}   Received: {1,-10}",
        statistics.MessagesSent, statistics.MessagesReceived);
}
Public Shared Sub ShowIcmpV4MessageData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Messages ............................ Sent: {0,-10}   Received: {1,-10}", statistics.MessagesSent, statistics.MessagesReceived)

End Sub

설명

ICMPV4 메시지는 IPv4(인터넷 프로토콜 버전 4)를 사용하여 전송된 패킷에 대한 오류 및 정보를 전달하기 위해 전송됩니다.

적용 대상