IcmpV4Statistics.AddressMaskRepliesSent 属性

定义

获取已发送的 Internet 控制消息协议版本 4 (ICMPv4)“地址掩码应答”消息的数目。

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

属性值

一个 Int64 值,指定已发送的“地址掩码应答”消息的总数。

示例

以下示例显示此属性的值。

void ShowAddressMaskData()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   IcmpV4Statistics ^ statistics = properties->GetIcmpV4Statistics();
   Console::WriteLine( "  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}", 
      statistics->AddressMaskRequestsSent, 
      statistics->AddressMaskRequestsReceived );
   Console::WriteLine( "  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}", 
      statistics->AddressMaskRepliesSent, 
      statistics->AddressMaskRepliesReceived );
}
public static void ShowAddressMaskData()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    IcmpV4Statistics statistics = properties.GetIcmpV4Statistics();
    Console.WriteLine("  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}",
        statistics.AddressMaskRequestsSent, statistics.AddressMaskRequestsReceived);
    Console.WriteLine("  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}",
        statistics.AddressMaskRepliesSent, statistics.AddressMaskRepliesReceived);
}
Public Shared Sub ShowAddressMaskData() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim statistics As IcmpV4Statistics = properties.GetIcmpV4Statistics()
    Console.WriteLine("  Address Mask Requests ............... Sent: {0,-10}   Received: {1,-10}", statistics.AddressMaskRequestsSent, statistics.AddressMaskRequestsReceived)
    Console.WriteLine("  Address Mask Replies ................ Sent: {0,-10}   Received: {1,-10}", statistics.AddressMaskRepliesSent, statistics.AddressMaskRepliesReceived)

End Sub

注解

地址掩码请求和回复消息用于确定本地子网的子网掩码中的位数。

适用于