TcpStatistics.ErrorsReceived Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of Transmission Control Protocol (TCP) errors received.
public:
abstract property long ErrorsReceived { long get(); };
public abstract long ErrorsReceived { get; }
member this.ErrorsReceived : int64
Public MustOverride ReadOnly Property ErrorsReceived As Long
Property Value
An Int64 value that specifies the total number of TCP errors received.
Examples
The following code example displays connection information.
void ShowTcpConnectionStatistics()
{
IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
TcpStatistics ^ tcpstat = properties->GetTcpIPv4Statistics();
Console::WriteLine( " Connection Data:" );
Console::WriteLine( " Current ............................ : {0}",
tcpstat->CurrentConnections );
Console::WriteLine( " Cumulative .......................... : {0}",
tcpstat->CumulativeConnections );
Console::WriteLine( " Initiated ........................... : {0}",
tcpstat->ConnectionsInitiated );
Console::WriteLine( " Accepted ............................ : {0}",
tcpstat->ConnectionsAccepted );
Console::WriteLine( " Failed Attempts ..................... : {0}",
tcpstat->FailedConnectionAttempts );
Console::WriteLine( " Reset ............................... : {0}",
tcpstat->ResetConnections );
Console::WriteLine( " Errors .............................. : {0}",
tcpstat->ErrorsReceived );
}
public static void ShowTcpConnectionStatistics()
{
IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();
Console.WriteLine(" Connection Data:");
Console.WriteLine(" Current ............................ : {0}",
tcpstat.CurrentConnections);
Console.WriteLine(" Cumulative .......................... : {0}",
tcpstat.CumulativeConnections);
Console.WriteLine(" Initiated ........................... : {0}",
tcpstat.ConnectionsInitiated);
Console.WriteLine(" Accepted ............................ : {0}",
tcpstat.ConnectionsAccepted);
Console.WriteLine(" Failed Attempts ..................... : {0}",
tcpstat.FailedConnectionAttempts);
Console.WriteLine(" Reset ............................... : {0}",
tcpstat.ResetConnections);
Console.WriteLine(" Errors .............................. : {0}",
tcpstat.ErrorsReceived);
Console.WriteLine();
}
Public Shared Sub ShowTcpConnectionStatistics()
Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
Dim tcpstat As TcpStatistics = properties.GetTcpIPv4Statistics()
Console.WriteLine(" Connection Data:")
Console.WriteLine(" Current ............................ : {0}", tcpstat.CurrentConnections)
Console.WriteLine(" Cumulative .......................... : {0}", tcpstat.CumulativeConnections)
Console.WriteLine(" Initiated ........................... : {0}", tcpstat.ConnectionsInitiated)
Console.WriteLine(" Accepted ............................ : {0}", tcpstat.ConnectionsAccepted)
Console.WriteLine(" Failed Attempts ..................... : {0}", tcpstat.FailedConnectionAttempts)
Console.WriteLine(" Reset ............................... : {0}", tcpstat.ResetConnections)
Console.WriteLine(" Errors .............................. : {0}", tcpstat.ErrorsReceived)
End Sub
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.