Net |
public sealed class NetStatistics
The NetStatistics type exposes the following members.
| Name | Description | |
|---|---|---|
| NetStatistics | Initializes a new instance of the NetStatistics class |
| Name | Description | |
|---|---|---|
| BytesReceived | Total number of bytes received. | |
| BytesSent | Total number of bytes sent. | |
| PacketLoss | Total number of packets lost during transmission. | |
| PacketLossPercent | Percentage of sent packets that were lost. Calculated as (PacketLoss * 100) / PacketsSent. | |
| PacketsReceived | Total number of packets received. | |
| PacketsSent | Total number of packets sent. |
| Name | Description | |
|---|---|---|
| AddBytesReceived | Adds a specific amount to the total bytes received. | |
| AddBytesSent | Adds a specific amount to the total bytes sent. | |
| AddPacketLoss | Adds a specific amount to the total packet loss count. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IncrementPacketLoss | Increments the count of lost packets by one. | |
| IncrementPacketsReceived | Increments the count of received packets by one. | |
| IncrementPacketsSent | Increments the count of sent packets by one. | |
| Reset | Resets all statistical counters to zero. | |
| ToString |
Returns a string representation of the current network statistics.
(Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |