ServicePoint.ConnectionLimit プロパティ
アセンブリ: System (system.dll 内)

Dim instance As ServicePoint Dim value As Integer value = instance.ConnectionLimit instance.ConnectionLimit = value
/** @property */ public int get_ConnectionLimit () /** @property */ public void set_ConnectionLimit (int value)
ServicePoint オブジェクトで許可される接続の最大数。


ConnectionLimit プロパティは、ServicePoint オブジェクトがインターネット リソースに対して確立できる接続の最大数を設定します。ConnectionLimit プロパティの値は ServicePoint オブジェクトの作成時に ServicePointManager.DefaultConnectionLimit プロパティの値に設定されます。後で DefaultConnectionLimit を変更しても、既存の ServicePoint オブジェクトには影響を与えません。

ConnectionLimit プロパティを使用して、指定した URI (Uniform Resource Identifier) に対して ServicePoint オブジェクトが確立できる接続の最大数をチェックするコード例を次に示します。
Console.WriteLine(("ConnectionName = " + sp.ConnectionName)) ' Display the maximum number of connections allowed on this ' ServicePoint instance. Console.WriteLine(("ConnectionLimit = " + sp.ConnectionLimit.ToString())) ' Display the number of connections associated with this ' ServicePoint instance. Console.WriteLine(("CurrentConnections = " + sp.CurrentConnections.ToString()))
Console.WriteLine ("ConnectionName = " + sp.ConnectionName); // Display the maximum number of connections allowed on this // ServicePoint instance. Console.WriteLine ("ConnectionLimit = " + sp.ConnectionLimit); // Display the number of connections associated with this // ServicePoint instance. Console.WriteLine ("CurrentConnections = " + sp.CurrentConnections);
Console::WriteLine( "ConnectionName = {0}", sp->ConnectionName ); // Display the maximum number of connections allowed on this // ServicePoint instance. Console::WriteLine( "ConnectionLimit = {0}", sp->ConnectionLimit ); // Display the number of connections associated with this // ServicePoint instance. Console::WriteLine( "CurrentConnections = {0}", sp->CurrentConnections );
Console.WriteLine(("ConnectionName = " + sp.get_ConnectionName())); // Display the maximum number of connections allowed on this // ServicePoint instance. Console.WriteLine(("ConnectionLimit = " + sp.get_ConnectionLimit())); // Display the number of connections associated with this // ServicePoint instance. Console.WriteLine(("CurrentConnections = " + sp.get_CurrentConnections()));

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からServicePoint.ConnectionLimit プロパティを検索する場合は、下記のリンクをクリックしてください。

- ServicePoint.ConnectionLimit プロパティのページへのリンク