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

Dim value As Integer value = ServicePointManager.MaxServicePoints ServicePointManager.MaxServicePoints = value
/** @property */ public static int get_MaxServicePoints () /** @property */ public static void set_MaxServicePoints (int value)
public static function get MaxServicePoints () : int public static function set MaxServicePoints (value : int)
維持される ServicePoint オブジェクトの最大数。既定値は 0 です。これは ServicePoint オブジェクトの数に制限がないことを示します。


MaxServicePoints プロパティを現在の ServicePoint オブジェクト数未満に設定すると、ServicePointManager はアイドル時間が最も長い ServicePoint オブジェクトを削除します。アクティブな接続を持つ ServicePoint オブジェクトの数が MaxServicePoints の値を超える場合、ServicePointManager オブジェクトはアイドル状態になった ServicePoint オブジェクトを削除します。

' Set the maximum number of ServicePoint instances to maintain. ' Note that, if a ServicePoint instance for that host already ' exists when your application requests a connection to ' an Internet resource, the ServicePointManager object ' returns this existing ServicePoint. If none exists ' for that host, it creates a new ServicePoint instance. ServicePointManager.MaxServicePoints = 4 ' Set the maximum idle time of a ServicePoint instance to 10 seconds. ' After the idle time expires, the ServicePoint object is eligible for ' garbage collection and cannot be used by the ServicePointManager. ServicePointManager.MaxServicePointIdleTime = 10000
// Set the maximum number of ServicePoint instances to // maintain. If a ServicePoint instance for that host already // exists when your application requests a connection to // an Internet resource, the ServicePointManager object // returns this existing ServicePoint instance. If none exists // for that host, it creates a new ServicePoint instance. ServicePointManager.MaxServicePoints = 4; // Set the maximum idle time of a ServicePoint instance to 10 seconds. // After the idle time expires, the ServicePoint object is eligible for // garbage collection and cannot be used by the ServicePointManager object. ServicePointManager.MaxServicePointIdleTime = 10000;
// Set the maximum number of ServicePoint instances to // maintain. If a ServicePoint instance for that host already // exists when your application requests a connection to // an Internet resource, the ServicePointManager object // returns this existing ServicePoint instance. If none exists // for that host, it creates a new ServicePoint instance. ServicePointManager::MaxServicePoints = 4; // Set the maximum idle time of a ServicePoint instance to 10 seconds. // After the idle time expires, the ServicePoint object is eligible for // garbage collection and cannot be used by the ServicePointManager. ServicePointManager::MaxServicePointIdleTime = 10000;
// Set the maximum number of ServicePoint instances to // maintain. If a ServicePoint instance for that host already // exists when your application requests a connection to // an Internet resource, the ServicePointManager object // returns this existing ServicePoint instance. If none exists // for that host, it creates a new ServicePoint instance. ServicePointManager.set_MaxServicePoints(4); // Set the maximum idle time of a ServicePoint instance to 10 seconds. // After the idle time expires, the ServicePoint object is eligible // for garbage collection and cannot be used by the ServicePointManager // object. ServicePointManager.set_MaxServicePointIdleTime(10000);


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に収録されているすべての辞書からServicePointManager.MaxServicePoints プロパティを検索する場合は、下記のリンクをクリックしてください。

- ServicePointManager.MaxServicePoints プロパティのページへのリンク