IPGlobalProperties.GetIcmpV6Statistics 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
로컬 컴퓨터에 대한 ICMP(Internet Control Message Protocol) 버전 6 통계 데이터를 제공합니다.
public:
abstract System::Net::NetworkInformation::IcmpV6Statistics ^ GetIcmpV6Statistics();
public abstract System.Net.NetworkInformation.IcmpV6Statistics GetIcmpV6Statistics ();
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract System.Net.NetworkInformation.IcmpV6Statistics GetIcmpV6Statistics ();
abstract member GetIcmpV6Statistics : unit -> System.Net.NetworkInformation.IcmpV6Statistics
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
abstract member GetIcmpV6Statistics : unit -> System.Net.NetworkInformation.IcmpV6Statistics
Public MustOverride Function GetIcmpV6Statistics () As IcmpV6Statistics
반환
로컬 컴퓨터에 대한 ICMP 버전 6 트래픽 통계를 제공하는 IcmpV6Statistics 개체입니다.
- 특성
예외
Win32 함수 GetIcmpStatisticsEx
에 실패한 경우
로컬 컴퓨터의 운영 체제가 Windows XP 이상이 아닌 경우
예제
다음 예에서는 현재는 ICMPv6 통계를 표시합니다.
void ShowIcmpV6Statistics()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
IcmpV6Statistics ^ stat = properties->GetIcmpV6Statistics();
Console::WriteLine( "ICMP V6 Statistics:" );
Console::WriteLine( " Messages ............................ Sent: {0,-10} Received: {1,-10}", stat->MessagesSent, stat->MessagesReceived );
Console::WriteLine( " Errors .............................. Sent: {0,-10} Received: {1,-10}", stat->ErrorsSent, stat->ErrorsReceived );
Console::WriteLine( " Echo Requests ....................... Sent: {0,-10} Received: {1,-10}", stat->EchoRequestsSent, stat->EchoRequestsReceived );
Console::WriteLine( " Echo Replies ........................ Sent: {0,-10} Received: {1,-10}", stat->EchoRepliesSent, stat->EchoRepliesReceived );
Console::WriteLine( " Destination Unreachables ............ Sent: {0,-10} Received: {1,-10}", stat->DestinationUnreachableMessagesSent, stat->DestinationUnreachableMessagesReceived );
Console::WriteLine( " Parameter Problems .................. Sent: {0,-10} Received: {1,-10}", stat->ParameterProblemsSent, stat->ParameterProblemsReceived );
Console::WriteLine( " Packets Too Big ..................... Sent: {0,-10} Received: {1,-10}", stat->PacketTooBigMessagesSent, stat->PacketTooBigMessagesReceived );
Console::WriteLine( " Redirects ........................... Sent: {0,-10} Received: {1,-10}", stat->RedirectsSent, stat->RedirectsReceived );
Console::WriteLine( " Router Advertisements ............... Sent: {0,-10} Received: {1,-10}", stat->RouterAdvertisementsSent, stat->RouterAdvertisementsReceived );
Console::WriteLine( " Router Solicitations ................ Sent: {0,-10} Received: {1,-10}", stat->RouterSolicitsSent, stat->RouterSolicitsReceived );
Console::WriteLine( " Time Exceeded ....................... Sent: {0,-10} Received: {1,-10}", stat->TimeExceededMessagesSent, stat->TimeExceededMessagesReceived );
Console::WriteLine( " Neighbor Advertisements ............. Sent: {0,-10} Received: {1,-10}", stat->NeighborAdvertisementsSent, stat->NeighborAdvertisementsReceived );
Console::WriteLine( " Neighbor Solicitations .............. Sent: {0,-10} Received: {1,-10}", stat->NeighborSolicitsSent, stat->NeighborSolicitsReceived );
Console::WriteLine( " Membership Queries .................. Sent: {0,-10} Received: {1,-10}", stat->MembershipQueriesSent, stat->MembershipQueriesReceived );
Console::WriteLine( " Membership Reports .................. Sent: {0,-10} Received: {1,-10}", stat->MembershipReportsSent, stat->MembershipReportsReceived );
Console::WriteLine( " Membership Reductions ............... Sent: {0,-10} Received: {1,-10}", stat->MembershipReductionsSent, stat->MembershipReductionsReceived );
Console::WriteLine( "" );
}
public static void ShowIcmpV6Statistics()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
IcmpV6Statistics stat = properties.GetIcmpV6Statistics();
Console.WriteLine("ICMP V6 Statistics:");
Console.WriteLine(" Messages ............................ Sent: {0,-10} Received: {1,-10}",
stat.MessagesSent, stat.MessagesReceived);
Console.WriteLine(" Errors .............................. Sent: {0,-10} Received: {1,-10}",
stat.ErrorsSent, stat.ErrorsReceived);
Console.WriteLine(" Echo Requests ....................... Sent: {0,-10} Received: {1,-10}",
stat.EchoRequestsSent, stat.EchoRequestsReceived);
Console.WriteLine(" Echo Replies ........................ Sent: {0,-10} Received: {1,-10}",
stat.EchoRepliesSent, stat.EchoRepliesReceived);
Console.WriteLine(" Destination Unreachables ............ Sent: {0,-10} Received: {1,-10}",
stat.DestinationUnreachableMessagesSent, stat.DestinationUnreachableMessagesReceived);
Console.WriteLine(" Parameter Problems .................. Sent: {0,-10} Received: {1,-10}",
stat.ParameterProblemsSent, stat.ParameterProblemsReceived);
Console.WriteLine(" Packets Too Big ..................... Sent: {0,-10} Received: {1,-10}",
stat.PacketTooBigMessagesSent, stat.PacketTooBigMessagesReceived);
Console.WriteLine(" Redirects ........................... Sent: {0,-10} Received: {1,-10}",
stat.RedirectsSent, stat.RedirectsReceived);
Console.WriteLine(" Router Advertisements ............... Sent: {0,-10} Received: {1,-10}",
stat.RouterAdvertisementsSent, stat.RouterAdvertisementsReceived);
Console.WriteLine(" Router Solicitations ................ Sent: {0,-10} Received: {1,-10}",
stat.RouterSolicitsSent, stat.RouterSolicitsReceived);
Console.WriteLine(" Time Exceeded ....................... Sent: {0,-10} Received: {1,-10}",
stat.TimeExceededMessagesSent, stat.TimeExceededMessagesReceived);
Console.WriteLine(" Neighbor Advertisements ............. Sent: {0,-10} Received: {1,-10}",
stat.NeighborAdvertisementsSent, stat.NeighborAdvertisementsReceived);
Console.WriteLine(" Neighbor Solicitations .............. Sent: {0,-10} Received: {1,-10}",
stat.NeighborSolicitsSent, stat.NeighborSolicitsReceived);
Console.WriteLine(" Membership Queries .................. Sent: {0,-10} Received: {1,-10}",
stat.MembershipQueriesSent, stat.MembershipQueriesReceived);
Console.WriteLine(" Membership Reports .................. Sent: {0,-10} Received: {1,-10}",
stat.MembershipReportsSent, stat.MembershipReportsReceived);
Console.WriteLine(" Membership Reductions ............... Sent: {0,-10} Received: {1,-10}",
stat.MembershipReductionsSent, stat.MembershipReductionsReceived);
Console.WriteLine("");
}
설명
ICMP 버전 6은 IPv6(인터넷 프로토콜 버전 6)에서 사용할 메시지 집합입니다. ICMP는 IPv6 노드에서 데이터 패킷 처리 시 발생한 오류를 보고하고 다른 인터넷 계층 함수를 수행하는 데 사용됩니다. ICMP 버전 6은 IETF RFC 1885에 정의되어 있습니다.
IPv6 프로토콜은 Windows 2000 또는 이전 운영 체제가 있는 컴퓨터에서 지원되지 않습니다.
애플리케이션에서 사용할 ICMP 버전 6 트래픽 통계에 대 한 내용은 참조는 IcmpV6Statistics 클래스 설명서. 이 메서드에서 IcmpV6Statistics 반환된 개체는 개체가 만들어진 시점의 통계를 반영합니다. 이 정보는 동적으로 업데이트되지 않습니다.
적용 대상
.NET