IcmpV6Statistics.MessagesSent Свойство

Определение

Возвращает количество отправленных сообщений ICMPv6.

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

Значение свойства

Значение типа Int64, указывающее общее количество отправленных сообщений ICMPv6.

Атрибуты

Примеры

В следующем примере отображается значение этого свойства.

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

End Sub

Комментарии

Сообщения ICMPv6 отправляются для передачи ошибок и сведений о пакетах, отправляемых с помощью протокола IPv6.

Применяется к