IcmpV4Statistics.AddressMaskRepliesReceived Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nombre de messages Réponse à masque d'adresse ICMPv4 (Internet Control Message Protocol version 4) qui ont été reçus.
public:
abstract property long AddressMaskRepliesReceived { long get(); };
public abstract long AddressMaskRepliesReceived { get; }
member this.AddressMaskRepliesReceived : int64
Public MustOverride ReadOnly Property AddressMaskRepliesReceived As Long
Valeur de propriété
Valeur Int64 qui spécifie le nombre total de messages Réponse à masque d'adresse qui ont été reçus.
Exemples
L’exemple suivant affiche la valeur de cette propriété.
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
Remarques
Les messages de demande et de réponse du masque d’adresse sont utilisés pour déterminer le nombre de bits dans le masque de sous-réseau pour le sous-réseau local.