3 namespace System.Net.NetworkInformation
5 public abstract class IPInterfaceStatistics
8 /// Gets the number of bytes received on the interface.
9 public abstract long BytesReceived { get; }
11 /// Gets the number of bytes sent on the interface.
12 public abstract long BytesSent { get; }
14 /// Gets the number of incoming packets discarded.
15 public abstract long IncomingPacketsDiscarded { get; }
17 /// Gets the number of incoming packets with errors.
18 public abstract long IncomingPacketsWithErrors { get; }
20 /// Gets the number of incoming packets with an unknown protocol.
21 public abstract long IncomingUnknownProtocolPackets { get; }
23 /// Gets the number of non-unicast packets received on the interface.
24 public abstract long NonUnicastPacketsReceived { get; }
26 /// Gets the number of non-unicast packets sent on the interface.
27 public abstract long NonUnicastPacketsSent { get; }
29 /// Gets the number of outgoing packets that were discarded.
30 public abstract long OutgoingPacketsDiscarded { get; }
32 /// Gets the number of outgoing packets with errors.
33 public abstract long OutgoingPacketsWithErrors { get; }
35 /// Gets the length of the output queue.
36 public abstract long OutputQueueLength { get; }
38 /// Gets the number of unicast packets received on the interface.
39 public abstract long UnicastPacketsReceived { get; }
41 /// Gets the number of unicast packets sent on the interface.
42 public abstract long UnicastPacketsSent { get; }
46 // Despite the naming, the results are not IPv4 specific
47 // Do not use this type. Use IPInterfaceStatistics instead.
48 public abstract class IPv4InterfaceStatistics
51 /// Gets the number of bytes received on the interface.
52 public abstract long BytesReceived{get;}
54 /// Gets the number of bytes sent on the interface.
55 public abstract long BytesSent{get;}
57 /// Gets the number of incoming packets discarded.
58 public abstract long IncomingPacketsDiscarded{get;}
60 /// Gets the number of incoming packets with errors.
61 public abstract long IncomingPacketsWithErrors{get;}
63 /// Gets the number of incoming packets with an unknown protocol.
64 public abstract long IncomingUnknownProtocolPackets{get;}
66 /// Gets the number of non-unicast packets received on the interface.
67 public abstract long NonUnicastPacketsReceived{get;}
69 /// Gets the number of non-unicast packets sent on the interface.
70 public abstract long NonUnicastPacketsSent{get;}
72 /// Gets the number of outgoing packets that were discarded.
73 public abstract long OutgoingPacketsDiscarded{get;}
75 /// Gets the number of outgoing packets with errors.
76 public abstract long OutgoingPacketsWithErrors{get;}
78 /// Gets the length of the output queue.
79 public abstract long OutputQueueLength{get;}
81 /// Gets the number of unicast packets received on the interface.
82 public abstract long UnicastPacketsReceived{get;}
84 /// Gets the number of unicast packets sent on the interface.
85 public abstract long UnicastPacketsSent{get;}