IcmpV6Statistics.MessagesReceived 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得已收到的網際網路控制訊息通訊協定第 6 版 (ICMPv6) 訊息數目。
public:
abstract property long MessagesReceived { long get(); };
C#
[System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("osx")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public abstract long MessagesReceived { get; }
C#
public abstract long MessagesReceived { get; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("freebsd")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("osx")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
member this.MessagesReceived : int64
member this.MessagesReceived : int64
Public MustOverride ReadOnly Property MessagesReceived 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 );
}
C#
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 訊息會傳送來傳達使用因特網通訊協定第 6 版傳送之封包的錯誤和資訊, (IPv6) 。
產品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |