TcpStatistics.MaximumConnections プロパティ

定義

サポートされている伝送制御プロトコル (TCP) 接続の最大数を取得します。

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

プロパティ値

サポートされている TCP 接続の合計数を示す Int64 値。

次のコード例では、タイムアウトと最大接続情報を表示します。

void ShowTcpTimeouts()
{
   IPGlobalProperties ^ properties = IPGlobalProperties::GetIPGlobalProperties();
   TcpStatistics ^ tcpstat = properties->GetTcpIPv4Statistics();
   Console::WriteLine( "  Minimum Transmission Timeout............. : {0}", 
      tcpstat->MinimumTransmissionTimeout );
   Console::WriteLine( "  Maximum Transmission Timeout............. : {0}", 
      tcpstat->MaximumTransmissionTimeout );
   Console::WriteLine( "  Maximum connections ............. : {0}", 
      tcpstat->MaximumConnections );
}
public static void ShowTcpTimeouts()
{
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    TcpStatistics tcpstat = properties.GetTcpIPv4Statistics();

    Console.WriteLine("  Minimum Transmission Timeout............. : {0}",
        tcpstat.MinimumTransmissionTimeout);
    Console.WriteLine("  Maximum Transmission Timeout............. : {0}",
        tcpstat.MaximumTransmissionTimeout);
    Console.WriteLine("  Maximum connections ............. : {0}",
        tcpstat.MaximumConnections);
    Console.WriteLine();
}
Public Shared Sub ShowTcpTimeouts() 
    Dim properties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
    Dim tcpstat As TcpStatistics = properties.GetTcpIPv4Statistics()
    
    Console.WriteLine("  Minimum Transmission Timeout............. : {0}", tcpstat.MinimumTransmissionTimeout)
    Console.WriteLine("  Maximum Transmission Timeout............. : {0}", tcpstat.MaximumTransmissionTimeout)
    Console.WriteLine("  Maximum connections ............. : {0}", tcpstat.MaximumConnections)

End Sub

注釈

接続の最大数が動的な場合、このプロパティは -1 を返します。

適用対象